@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
|
@@ -29,145 +29,125 @@ declare const AuctionResponseSchema: z.ZodObject<{
|
|
|
29
29
|
}>;
|
|
30
30
|
type AuctionResponse = z.output<typeof AuctionResponseSchema>;
|
|
31
31
|
declare const auctionContract: {
|
|
32
|
-
listAuctions: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
listAuctions: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
33
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
chainId: number;
|
|
36
|
+
}, {
|
|
37
|
+
chainId?: number | undefined;
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
result: z.ZodArray<z.ZodObject<{
|
|
40
|
+
auction_pool_address: z.ZodString;
|
|
41
|
+
auction_pool_id: z.ZodString;
|
|
42
|
+
auction_base_token_name: z.ZodString;
|
|
43
|
+
auction_base_token_symbol: z.ZodString;
|
|
44
|
+
auction_base_token_address: z.ZodString;
|
|
45
|
+
auction_quote_token_name: z.ZodString;
|
|
46
|
+
auction_quote_token_symbol: z.ZodString;
|
|
47
|
+
auction_quote_token_address: z.ZodString;
|
|
36
48
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
49
|
+
auction_pool_address: string;
|
|
50
|
+
auction_pool_id: string;
|
|
51
|
+
auction_base_token_name: string;
|
|
52
|
+
auction_base_token_symbol: string;
|
|
53
|
+
auction_base_token_address: string;
|
|
54
|
+
auction_quote_token_name: string;
|
|
55
|
+
auction_quote_token_symbol: string;
|
|
56
|
+
auction_quote_token_address: string;
|
|
38
57
|
}, {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
auction_base_token_address: string;
|
|
91
|
-
auction_quote_token_name: string;
|
|
92
|
-
auction_quote_token_symbol: string;
|
|
93
|
-
auction_quote_token_address: string;
|
|
94
|
-
}[];
|
|
95
|
-
}>;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
getAuctionByPoolAddress: {
|
|
99
|
-
description: "Get an auction by its pool address";
|
|
100
|
-
pathParams: z.ZodObject<{
|
|
101
|
-
poolAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
102
|
-
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
poolAddress: `0x${string}`;
|
|
104
|
-
}, {
|
|
105
|
-
poolAddress: string;
|
|
106
|
-
}>;
|
|
107
|
-
query: z.ZodObject<{
|
|
108
|
-
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
58
|
+
auction_pool_address: string;
|
|
59
|
+
auction_pool_id: string;
|
|
60
|
+
auction_base_token_name: string;
|
|
61
|
+
auction_base_token_symbol: string;
|
|
62
|
+
auction_base_token_address: string;
|
|
63
|
+
auction_quote_token_name: string;
|
|
64
|
+
auction_quote_token_symbol: string;
|
|
65
|
+
auction_quote_token_address: string;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
result: {
|
|
69
|
+
auction_pool_address: string;
|
|
70
|
+
auction_pool_id: string;
|
|
71
|
+
auction_base_token_name: string;
|
|
72
|
+
auction_base_token_symbol: string;
|
|
73
|
+
auction_base_token_address: string;
|
|
74
|
+
auction_quote_token_name: string;
|
|
75
|
+
auction_quote_token_symbol: string;
|
|
76
|
+
auction_quote_token_address: string;
|
|
77
|
+
}[];
|
|
78
|
+
}, {
|
|
79
|
+
result: {
|
|
80
|
+
auction_pool_address: string;
|
|
81
|
+
auction_pool_id: string;
|
|
82
|
+
auction_base_token_name: string;
|
|
83
|
+
auction_base_token_symbol: string;
|
|
84
|
+
auction_base_token_address: string;
|
|
85
|
+
auction_quote_token_name: string;
|
|
86
|
+
auction_quote_token_symbol: string;
|
|
87
|
+
auction_quote_token_address: string;
|
|
88
|
+
}[];
|
|
89
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
90
|
+
getAuctionByPoolAddress: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
91
|
+
poolAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
92
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
chainId: number;
|
|
95
|
+
poolAddress: `0x${string}`;
|
|
96
|
+
}, {
|
|
97
|
+
poolAddress: string;
|
|
98
|
+
chainId?: number | undefined;
|
|
99
|
+
}>, z.ZodObject<{
|
|
100
|
+
result: z.ZodObject<{
|
|
101
|
+
auction_pool_address: z.ZodString;
|
|
102
|
+
auction_pool_id: z.ZodString;
|
|
103
|
+
auction_base_token_name: z.ZodString;
|
|
104
|
+
auction_base_token_symbol: z.ZodString;
|
|
105
|
+
auction_base_token_address: z.ZodString;
|
|
106
|
+
auction_quote_token_name: z.ZodString;
|
|
107
|
+
auction_quote_token_symbol: z.ZodString;
|
|
108
|
+
auction_quote_token_address: z.ZodString;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
110
|
+
auction_pool_address: string;
|
|
111
|
+
auction_pool_id: string;
|
|
112
|
+
auction_base_token_name: string;
|
|
113
|
+
auction_base_token_symbol: string;
|
|
114
|
+
auction_base_token_address: string;
|
|
115
|
+
auction_quote_token_name: string;
|
|
116
|
+
auction_quote_token_symbol: string;
|
|
117
|
+
auction_quote_token_address: string;
|
|
111
118
|
}, {
|
|
112
|
-
|
|
119
|
+
auction_pool_address: string;
|
|
120
|
+
auction_pool_id: string;
|
|
121
|
+
auction_base_token_name: string;
|
|
122
|
+
auction_base_token_symbol: string;
|
|
123
|
+
auction_base_token_address: string;
|
|
124
|
+
auction_quote_token_name: string;
|
|
125
|
+
auction_quote_token_symbol: string;
|
|
126
|
+
auction_quote_token_address: string;
|
|
113
127
|
}>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
auction_quote_token_address: string;
|
|
136
|
-
}, {
|
|
137
|
-
auction_pool_address: string;
|
|
138
|
-
auction_pool_id: string;
|
|
139
|
-
auction_base_token_name: string;
|
|
140
|
-
auction_base_token_symbol: string;
|
|
141
|
-
auction_base_token_address: string;
|
|
142
|
-
auction_quote_token_name: string;
|
|
143
|
-
auction_quote_token_symbol: string;
|
|
144
|
-
auction_quote_token_address: string;
|
|
145
|
-
}>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
result: {
|
|
148
|
-
auction_pool_address: string;
|
|
149
|
-
auction_pool_id: string;
|
|
150
|
-
auction_base_token_name: string;
|
|
151
|
-
auction_base_token_symbol: string;
|
|
152
|
-
auction_base_token_address: string;
|
|
153
|
-
auction_quote_token_name: string;
|
|
154
|
-
auction_quote_token_symbol: string;
|
|
155
|
-
auction_quote_token_address: string;
|
|
156
|
-
};
|
|
157
|
-
}, {
|
|
158
|
-
result: {
|
|
159
|
-
auction_pool_address: string;
|
|
160
|
-
auction_pool_id: string;
|
|
161
|
-
auction_base_token_name: string;
|
|
162
|
-
auction_base_token_symbol: string;
|
|
163
|
-
auction_base_token_address: string;
|
|
164
|
-
auction_quote_token_name: string;
|
|
165
|
-
auction_quote_token_symbol: string;
|
|
166
|
-
auction_quote_token_address: string;
|
|
167
|
-
};
|
|
168
|
-
}>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
result: {
|
|
130
|
+
auction_pool_address: string;
|
|
131
|
+
auction_pool_id: string;
|
|
132
|
+
auction_base_token_name: string;
|
|
133
|
+
auction_base_token_symbol: string;
|
|
134
|
+
auction_base_token_address: string;
|
|
135
|
+
auction_quote_token_name: string;
|
|
136
|
+
auction_quote_token_symbol: string;
|
|
137
|
+
auction_quote_token_address: string;
|
|
138
|
+
};
|
|
139
|
+
}, {
|
|
140
|
+
result: {
|
|
141
|
+
auction_pool_address: string;
|
|
142
|
+
auction_pool_id: string;
|
|
143
|
+
auction_base_token_name: string;
|
|
144
|
+
auction_base_token_symbol: string;
|
|
145
|
+
auction_base_token_address: string;
|
|
146
|
+
auction_quote_token_name: string;
|
|
147
|
+
auction_quote_token_symbol: string;
|
|
148
|
+
auction_quote_token_address: string;
|
|
169
149
|
};
|
|
170
|
-
}
|
|
150
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
171
151
|
};
|
|
172
152
|
export { auctionContract, AuctionResponseSchema };
|
|
173
153
|
export type { AuctionResponse };
|
|
@@ -4,10 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AuctionResponseSchema = exports.auctionContract = void 0;
|
|
7
|
-
const
|
|
7
|
+
const contract_1 = require("@orpc/contract");
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
9
|
const types_1 = require("../types");
|
|
10
|
-
const contract = (0, core_1.initContract)();
|
|
11
10
|
const AuctionResponseSchema = zod_1.default.object({
|
|
12
11
|
auction_pool_address: zod_1.default.string(),
|
|
13
12
|
auction_pool_id: zod_1.default.string(),
|
|
@@ -19,54 +18,35 @@ const AuctionResponseSchema = zod_1.default.object({
|
|
|
19
18
|
auction_quote_token_address: zod_1.default.string(),
|
|
20
19
|
});
|
|
21
20
|
exports.AuctionResponseSchema = AuctionResponseSchema;
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
message: "Invalid chain ID",
|
|
53
|
-
})
|
|
54
|
-
.optional()
|
|
55
|
-
.default(types_1.ChainID.BASE_MAINNET)
|
|
56
|
-
.describe("The chain ID of the auction to get"),
|
|
57
|
-
}),
|
|
58
|
-
pathParams: zod_1.default.object({
|
|
59
|
-
poolAddress: types_1.hex,
|
|
60
|
-
}),
|
|
61
|
-
responses: {
|
|
62
|
-
200: zod_1.default.object({
|
|
63
|
-
result: AuctionResponseSchema,
|
|
64
|
-
}),
|
|
65
|
-
},
|
|
66
|
-
description: "Get an auction by its pool address",
|
|
67
|
-
},
|
|
68
|
-
}, {
|
|
69
|
-
pathPrefix: "/auctions",
|
|
70
|
-
});
|
|
21
|
+
const listAuctions = contract_1.oc
|
|
22
|
+
.route({ method: "GET", path: "/auctions", description: "List all auctions for an integrator", tags: ["auctions"] })
|
|
23
|
+
.input(zod_1.default.object({
|
|
24
|
+
chainId: zod_1.default.coerce
|
|
25
|
+
.number()
|
|
26
|
+
.int()
|
|
27
|
+
.refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
28
|
+
message: "Invalid chain ID",
|
|
29
|
+
})
|
|
30
|
+
.optional()
|
|
31
|
+
.default(types_1.ChainID.BASE_MAINNET)
|
|
32
|
+
.describe("The chain ID of the auctions to list"),
|
|
33
|
+
}))
|
|
34
|
+
.output(zod_1.default.object({ result: zod_1.default.array(AuctionResponseSchema) }));
|
|
35
|
+
const getAuctionByPoolAddress = contract_1.oc
|
|
36
|
+
.route({ method: "GET", path: "/auctions/{poolAddress}", description: "Get an auction by its pool address", tags: ["auctions"] })
|
|
37
|
+
.input(zod_1.default.object({
|
|
38
|
+
poolAddress: types_1.hex,
|
|
39
|
+
chainId: zod_1.default.coerce
|
|
40
|
+
.number()
|
|
41
|
+
.int()
|
|
42
|
+
.refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
43
|
+
message: "Invalid chain ID",
|
|
44
|
+
})
|
|
45
|
+
.optional()
|
|
46
|
+
.default(types_1.ChainID.BASE_MAINNET)
|
|
47
|
+
.describe("The chain ID of the auction to get"),
|
|
48
|
+
}))
|
|
49
|
+
.output(zod_1.default.object({ result: AuctionResponseSchema }));
|
|
50
|
+
const auctionContract = { listAuctions, getAuctionByPoolAddress };
|
|
71
51
|
exports.auctionContract = auctionContract;
|
|
72
52
|
//# sourceMappingURL=auction.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAEpB,oCAAwC;AAExC,MAAM,qBAAqB,GAAG,aAAC,CAAC,MAAM,CAAC;IACnC,oBAAoB,EAAE,aAAC,CAAC,MAAM,EAAE;IAChC,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE;IAC3B,uBAAuB,EAAE,aAAC,CAAC,MAAM,EAAE;IACnC,yBAAyB,EAAE,aAAC,CAAC,MAAM,EAAE;IACrC,0BAA0B,EAAE,aAAC,CAAC,MAAM,EAAE;IACtC,wBAAwB,EAAE,aAAC,CAAC,MAAM,EAAE;IACpC,0BAA0B,EAAE,aAAC,CAAC,MAAM,EAAE;IACtC,2BAA2B,EAAE,aAAC,CAAC,MAAM,EAAE;CAC1C,CAAC,CAAC;AAyCuB,sDAAqB;AArC/C,MAAM,YAAY,GAAG,aAAE;KAClB,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,qCAAqC,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACnH,KAAK,CACF,aAAC,CAAC,MAAM,CAAC;IACL,OAAO,EAAE,aAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACnD,OAAO,EAAE,kBAAkB;KAC9B,CAAC;SACD,QAAQ,EAAE;SACV,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC;SAC7B,QAAQ,CAAC,sCAAsC,CAAC;CACxD,CAAC,CACL;KACA,MAAM,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC;AAElE,MAAM,uBAAuB,GAAG,aAAE;KAC7B,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,oCAAoC,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KAChI,KAAK,CACF,aAAC,CAAC,MAAM,CAAC;IACL,WAAW,EAAE,WAAG;IAChB,OAAO,EAAE,aAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACnD,OAAO,EAAE,kBAAkB;KAC9B,CAAC;SACD,QAAQ,EAAE;SACV,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC;SAC7B,QAAQ,CAAC,oCAAoC,CAAC;CACtD,CAAC,CACL;KACA,MAAM,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAEzD,MAAM,eAAe,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEzD,0CAAe"}
|
|
@@ -79,136 +79,108 @@ declare const ChartBarsResponseSchema: z.ZodObject<{
|
|
|
79
79
|
}>;
|
|
80
80
|
type ChartBarsResponse = z.infer<typeof ChartBarsResponseSchema>;
|
|
81
81
|
declare const chartsContract: {
|
|
82
|
-
getBars: {
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
getBars: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
83
|
+
symbol: z.ZodString;
|
|
84
|
+
from: z.ZodNumber;
|
|
85
|
+
to: z.ZodNumber;
|
|
86
|
+
resolution: z.ZodEnum<["1S", "5S", "15S", "30S", "1", "5", "15", "30", "60", "240", "720", "1D", "7D"]>;
|
|
87
|
+
currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<["USD", "TOKEN"]>>>;
|
|
88
|
+
countback: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
symbol: string;
|
|
91
|
+
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
92
|
+
currency: "USD" | "TOKEN";
|
|
93
|
+
from: number;
|
|
94
|
+
to: number;
|
|
95
|
+
countback?: number | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
symbol: string;
|
|
98
|
+
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
99
|
+
from: number;
|
|
100
|
+
to: number;
|
|
101
|
+
currency?: "USD" | "TOKEN" | undefined;
|
|
102
|
+
countback?: number | undefined;
|
|
103
|
+
}>, z.ZodObject<{
|
|
104
|
+
result: z.ZodObject<{
|
|
105
|
+
bars: z.ZodArray<z.ZodObject<{
|
|
106
|
+
timestamp: z.ZodNumber;
|
|
107
|
+
open: z.ZodNumber;
|
|
108
|
+
high: z.ZodNumber;
|
|
109
|
+
low: z.ZodNumber;
|
|
110
|
+
close: z.ZodNumber;
|
|
111
|
+
volume: z.ZodNumber;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
timestamp: number;
|
|
114
|
+
open: number;
|
|
115
|
+
high: number;
|
|
116
|
+
low: number;
|
|
117
|
+
close: number;
|
|
118
|
+
volume: number;
|
|
119
|
+
}, {
|
|
120
|
+
timestamp: number;
|
|
121
|
+
open: number;
|
|
122
|
+
high: number;
|
|
123
|
+
low: number;
|
|
124
|
+
close: number;
|
|
125
|
+
volume: number;
|
|
126
|
+
}>, "many">;
|
|
85
127
|
symbol: z.ZodString;
|
|
86
|
-
from: z.ZodNumber;
|
|
87
|
-
to: z.ZodNumber;
|
|
88
128
|
resolution: z.ZodEnum<["1S", "5S", "15S", "30S", "1", "5", "15", "30", "60", "240", "720", "1D", "7D"]>;
|
|
89
|
-
currency: z.
|
|
90
|
-
countback: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
currency: z.ZodEnum<["USD", "TOKEN"]>;
|
|
91
130
|
}, "strip", z.ZodTypeAny, {
|
|
92
131
|
symbol: string;
|
|
132
|
+
bars: {
|
|
133
|
+
timestamp: number;
|
|
134
|
+
open: number;
|
|
135
|
+
high: number;
|
|
136
|
+
low: number;
|
|
137
|
+
close: number;
|
|
138
|
+
volume: number;
|
|
139
|
+
}[];
|
|
93
140
|
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
94
141
|
currency: "USD" | "TOKEN";
|
|
95
|
-
from: number;
|
|
96
|
-
to: number;
|
|
97
|
-
countback?: number | undefined;
|
|
98
142
|
}, {
|
|
99
143
|
symbol: string;
|
|
144
|
+
bars: {
|
|
145
|
+
timestamp: number;
|
|
146
|
+
open: number;
|
|
147
|
+
high: number;
|
|
148
|
+
low: number;
|
|
149
|
+
close: number;
|
|
150
|
+
volume: number;
|
|
151
|
+
}[];
|
|
100
152
|
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
101
|
-
|
|
102
|
-
to: number;
|
|
103
|
-
currency?: "USD" | "TOKEN" | undefined;
|
|
104
|
-
countback?: number | undefined;
|
|
153
|
+
currency: "USD" | "TOKEN";
|
|
105
154
|
}>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
symbol: z.ZodString;
|
|
134
|
-
resolution: z.ZodEnum<["1S", "5S", "15S", "30S", "1", "5", "15", "30", "60", "240", "720", "1D", "7D"]>;
|
|
135
|
-
currency: z.ZodEnum<["USD", "TOKEN"]>;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
symbol: string;
|
|
138
|
-
bars: {
|
|
139
|
-
timestamp: number;
|
|
140
|
-
open: number;
|
|
141
|
-
high: number;
|
|
142
|
-
low: number;
|
|
143
|
-
close: number;
|
|
144
|
-
volume: number;
|
|
145
|
-
}[];
|
|
146
|
-
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
147
|
-
currency: "USD" | "TOKEN";
|
|
148
|
-
}, {
|
|
149
|
-
symbol: string;
|
|
150
|
-
bars: {
|
|
151
|
-
timestamp: number;
|
|
152
|
-
open: number;
|
|
153
|
-
high: number;
|
|
154
|
-
low: number;
|
|
155
|
-
close: number;
|
|
156
|
-
volume: number;
|
|
157
|
-
}[];
|
|
158
|
-
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
159
|
-
currency: "USD" | "TOKEN";
|
|
160
|
-
}>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
result: {
|
|
163
|
-
symbol: string;
|
|
164
|
-
bars: {
|
|
165
|
-
timestamp: number;
|
|
166
|
-
open: number;
|
|
167
|
-
high: number;
|
|
168
|
-
low: number;
|
|
169
|
-
close: number;
|
|
170
|
-
volume: number;
|
|
171
|
-
}[];
|
|
172
|
-
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
173
|
-
currency: "USD" | "TOKEN";
|
|
174
|
-
};
|
|
175
|
-
}, {
|
|
176
|
-
result: {
|
|
177
|
-
symbol: string;
|
|
178
|
-
bars: {
|
|
179
|
-
timestamp: number;
|
|
180
|
-
open: number;
|
|
181
|
-
high: number;
|
|
182
|
-
low: number;
|
|
183
|
-
close: number;
|
|
184
|
-
volume: number;
|
|
185
|
-
}[];
|
|
186
|
-
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
187
|
-
currency: "USD" | "TOKEN";
|
|
188
|
-
};
|
|
189
|
-
}>;
|
|
190
|
-
400: z.ZodObject<{
|
|
191
|
-
code: z.ZodLiteral<"BAD_REQUEST">;
|
|
192
|
-
message: z.ZodString;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
code: "BAD_REQUEST";
|
|
195
|
-
message: string;
|
|
196
|
-
}, {
|
|
197
|
-
code: "BAD_REQUEST";
|
|
198
|
-
message: string;
|
|
199
|
-
}>;
|
|
200
|
-
500: z.ZodObject<{
|
|
201
|
-
code: z.ZodLiteral<"INTERNAL_SERVER_ERROR">;
|
|
202
|
-
message: z.ZodString;
|
|
203
|
-
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
205
|
-
message: string;
|
|
206
|
-
}, {
|
|
207
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
208
|
-
message: string;
|
|
209
|
-
}>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
result: {
|
|
157
|
+
symbol: string;
|
|
158
|
+
bars: {
|
|
159
|
+
timestamp: number;
|
|
160
|
+
open: number;
|
|
161
|
+
high: number;
|
|
162
|
+
low: number;
|
|
163
|
+
close: number;
|
|
164
|
+
volume: number;
|
|
165
|
+
}[];
|
|
166
|
+
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
167
|
+
currency: "USD" | "TOKEN";
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
result: {
|
|
171
|
+
symbol: string;
|
|
172
|
+
bars: {
|
|
173
|
+
timestamp: number;
|
|
174
|
+
open: number;
|
|
175
|
+
high: number;
|
|
176
|
+
low: number;
|
|
177
|
+
close: number;
|
|
178
|
+
volume: number;
|
|
179
|
+
}[];
|
|
180
|
+
resolution: "1" | "1S" | "5S" | "15S" | "30S" | "5" | "15" | "30" | "60" | "240" | "720" | "1D" | "7D";
|
|
181
|
+
currency: "USD" | "TOKEN";
|
|
210
182
|
};
|
|
211
|
-
}
|
|
183
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
212
184
|
};
|
|
213
185
|
export { chartsContract, ChartBarsResponseSchema, BarSchema, ChartResolution, ChartCurrency };
|
|
214
186
|
export type { ChartBarsResponse, Bar };
|