@merkl/api 0.10.130 → 0.10.132
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -6
- package/dist/src/modules/v4/campaign/campaign.controller.js +6 -18
- package/dist/src/modules/v4/chain/chain.controller.js +3 -6
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -6
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +3 -9
- package/dist/src/modules/v4/participate/participate.controller.js +5 -3
- package/dist/src/modules/v4/price/price.controller.js +11 -21
- package/dist/src/modules/v4/status/status.controller.js +6 -18
- package/dist/src/modules/v4/token/token.controller.js +3 -6
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/node_modules/@elysiajs/eden/eden/LICENSE +0 -7
- package/dist/node_modules/@elysiajs/eden/eden/README.md +0 -46
- package/dist/node_modules/@elysiajs/eden/eden/bunfig.toml +0 -2
- package/dist/node_modules/@elysiajs/eden/eden/dist/chunk-2IHGLN7W.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/chunk-7WO4HTSU.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/chunk-XYW4OUFN.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/chunk-YAG46HFR.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/errors.d.ts +0 -5
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch/index.d.ts +0 -4
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch/types.d.ts +0 -44
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch.d.mts +0 -48
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch.d.ts +0 -48
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch.global.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/fetch.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/index.d.mts +0 -5
- package/dist/node_modules/@elysiajs/eden/eden/dist/index.d.ts +0 -5
- package/dist/node_modules/@elysiajs/eden/eden/dist/index.global.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/index.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/index.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty/index.d.ts +0 -17
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty/types.d.ts +0 -99
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty/utils.d.ts +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty.d.mts +0 -114
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty.d.ts +0 -114
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty.global.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2/index.d.ts +0 -5
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2/types.d.ts +0 -86
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2/ws.d.ts +0 -14
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2.d.mts +0 -103
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2.d.ts +0 -103
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2.global.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2.js +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/treaty2.mjs +0 -1
- package/dist/node_modules/@elysiajs/eden/eden/dist/types-C41kuZ-K.d.mts +0 -44
- package/dist/node_modules/@elysiajs/eden/eden/dist/types-C41kuZ-K.d.ts +0 -44
- package/dist/node_modules/@elysiajs/eden/eden/dist/types.d.ts +0 -39
- package/dist/node_modules/@elysiajs/eden/eden/dist/utils/parsingUtils.d.ts +0 -6
- package/dist/node_modules/@elysiajs/eden/eden/package.json +0 -85
- package/dist/package.json +0 -91
- package/dist/src/modules/v4/apr/apr.controller.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.controller.js +0 -1
- package/dist/src/modules/v4/tvl/tvl.controller.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.controller.js +0 -1
@@ -1,39 +0,0 @@
|
|
1
|
-
import type { EdenFetchError } from './errors';
|
2
|
-
type Range<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
3
|
-
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
4
|
-
type ErrorRange = Range<300, 599>;
|
5
|
-
export type MapError<T extends Record<number, unknown>> = [
|
6
|
-
{
|
7
|
-
[K in keyof T]-?: K extends ErrorRange ? K : never;
|
8
|
-
}[keyof T]
|
9
|
-
] extends [infer A extends number] ? {
|
10
|
-
[K in A]: EdenFetchError<K, T[K]>;
|
11
|
-
}[A] : false;
|
12
|
-
export type UnionToIntersect<U> = (U extends any ? (arg: U) => any : never) extends (arg: infer I) => void ? I : never;
|
13
|
-
export type UnionToTuple<T> = UnionToIntersect<T extends any ? (t: T) => T : never> extends (_: any) => infer W ? [...UnionToTuple<Exclude<T, W>>, W] : [];
|
14
|
-
export type IsAny<T> = 0 extends 1 & T ? true : false;
|
15
|
-
export type IsNever<T> = [T] extends [never] ? true : false;
|
16
|
-
export type IsUnknown<T> = IsAny<T> extends true ? false : unknown extends T ? true : false;
|
17
|
-
export type AnyTypedRoute = {
|
18
|
-
body?: unknown;
|
19
|
-
headers?: unknown;
|
20
|
-
query?: unknown;
|
21
|
-
params?: unknown;
|
22
|
-
response: Record<number, unknown>;
|
23
|
-
};
|
24
|
-
export type Prettify<T> = {
|
25
|
-
[K in keyof T]: T[K];
|
26
|
-
} & {};
|
27
|
-
export type TreatyToPath<T, Path extends string = ''> = UnionToIntersect<T extends Record<string, unknown> ? {
|
28
|
-
[K in keyof T]: T[K] extends AnyTypedRoute ? {
|
29
|
-
[path in Path]: {
|
30
|
-
[method in K]: T[K];
|
31
|
-
};
|
32
|
-
} : unknown extends T[K] ? {
|
33
|
-
[path in Path]: {
|
34
|
-
[method in K]: T[K];
|
35
|
-
};
|
36
|
-
} : TreatyToPath<T[K], `${Path}/${K & string}`>;
|
37
|
-
}[keyof T] : {}>;
|
38
|
-
export type Not<T> = T extends true ? false : true;
|
39
|
-
export {};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export declare const isNumericString: (message: string) => boolean;
|
2
|
-
export declare const parseStringifiedDate: (value: any) => Date | null;
|
3
|
-
export declare const isStringifiedObject: (value: string) => boolean;
|
4
|
-
export declare const parseStringifiedObject: (data: string) => any;
|
5
|
-
export declare const parseStringifiedValue: (value: string) => any;
|
6
|
-
export declare const parseMessageEvent: (event: MessageEvent) => any;
|
@@ -1,85 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@elysiajs/eden",
|
3
|
-
"version": "1.1.3",
|
4
|
-
"description": "Fully type-safe Elysia client",
|
5
|
-
"author": {
|
6
|
-
"name": "saltyAom",
|
7
|
-
"url": "https://github.com/SaltyAom",
|
8
|
-
"email": "saltyaom@gmail.com"
|
9
|
-
},
|
10
|
-
"main": "./dist/index.js",
|
11
|
-
"module": "./dist/index.mjs",
|
12
|
-
"exports": {
|
13
|
-
"./package.json": "./package.json",
|
14
|
-
".": {
|
15
|
-
"require": "./dist/index.js",
|
16
|
-
"import": "./dist/index.mjs",
|
17
|
-
"node": "./dist/index.js",
|
18
|
-
"default": "./dist/index.js",
|
19
|
-
"types": "./dist/index.d.ts"
|
20
|
-
},
|
21
|
-
"./treaty": {
|
22
|
-
"require": "./dist/treaty.js",
|
23
|
-
"import": "./dist/treaty.mjs",
|
24
|
-
"node": "./dist/treaty.js",
|
25
|
-
"default": "./dist/treaty.js",
|
26
|
-
"types": "./dist/treaty/index.d.ts"
|
27
|
-
},
|
28
|
-
"./treaty2": {
|
29
|
-
"require": "./dist/2.js",
|
30
|
-
"import": "./dist/treaty2.mjs",
|
31
|
-
"node": "./dist/treaty2.js",
|
32
|
-
"default": "./dist/treaty2.js",
|
33
|
-
"types": "./dist/treaty2/index.d.ts"
|
34
|
-
},
|
35
|
-
"./fetch": {
|
36
|
-
"require": "./dist/fetch.js",
|
37
|
-
"import": "./dist/fetch.mjs",
|
38
|
-
"node": "./dist/fetch.js",
|
39
|
-
"default": "./dist/fetch.js",
|
40
|
-
"types": "./dist/fetch/index.d.ts"
|
41
|
-
}
|
42
|
-
},
|
43
|
-
"types": "./dist/index.d.ts",
|
44
|
-
"keywords": [
|
45
|
-
"elysia",
|
46
|
-
"eden",
|
47
|
-
"connector"
|
48
|
-
],
|
49
|
-
"homepage": "https://github.com/elysiajs/eden",
|
50
|
-
"repository": {
|
51
|
-
"type": "git",
|
52
|
-
"url": "https://github.com/elysiajs/eden"
|
53
|
-
},
|
54
|
-
"bugs": "https://github.com/elysiajs/eden/issues",
|
55
|
-
"license": "MIT",
|
56
|
-
"scripts": {
|
57
|
-
"dev": "bun run --watch example/index.ts",
|
58
|
-
"test": "bun test && bun test:types",
|
59
|
-
"test:types": "tsc --project tsconfig.test.json",
|
60
|
-
"build": "rimraf dist && tsup",
|
61
|
-
"release": "npm run build && npm run test && npm publish --access public"
|
62
|
-
},
|
63
|
-
"peerDependencies": {
|
64
|
-
"elysia": ">= 1.1.0"
|
65
|
-
},
|
66
|
-
"devDependencies": {
|
67
|
-
"@elysiajs/cors": "0.7.0",
|
68
|
-
"@types/bun": "^1.0.3",
|
69
|
-
"@types/node": "^18.15.5",
|
70
|
-
"elysia": ">= 1.1.0",
|
71
|
-
"esbuild": "^0.19.3",
|
72
|
-
"eslint": "^8.26.0",
|
73
|
-
"expect-type": "^0.17.3",
|
74
|
-
"rimraf": "^4.4.1",
|
75
|
-
"tsup": "^8.1.0",
|
76
|
-
"typescript": "^5.4.5",
|
77
|
-
"vite": "^5.3.3"
|
78
|
-
},
|
79
|
-
"prettier": {
|
80
|
-
"semi": false,
|
81
|
-
"tabWidth": 4,
|
82
|
-
"singleQuote": true,
|
83
|
-
"trailingComma": "none"
|
84
|
-
}
|
85
|
-
}
|
package/dist/package.json
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@merkl/api",
|
3
|
-
"type": "module",
|
4
|
-
"types": "./dist/src/eden/index.d.ts",
|
5
|
-
"main": "./dist/src/eden/index.js",
|
6
|
-
"files": [
|
7
|
-
"dist"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"cmd": "bun run scripts/cmd.ts",
|
11
|
-
"container": "chmod +x scripts/run.sh && FORCE_COLOR=true ./scripts/run.sh bun run ./scripts/config.ts",
|
12
|
-
"db:generate": "bunx prisma generate --schema database/api/schema.prisma && bunx prisma generate --schema database/engine/schema.prisma",
|
13
|
-
"db:migrate:deploy": "bunx prisma migrate deploy --schema database/api/schema.prisma",
|
14
|
-
"db:migrate:dev": "bunx prisma migrate dev --schema database/api/schema.prisma",
|
15
|
-
"db:migrate:reset": "bunx prisma migrate reset --schema database/api/schema.prisma",
|
16
|
-
"db:seed:api": "bun run database/api/seeder/index.ts",
|
17
|
-
"db:studio:api": "bunx prisma studio --schema database/api/schema.prisma",
|
18
|
-
"db:studio:engine": "bunx prisma studio --schema database/engine/schema.prisma",
|
19
|
-
"lint": "biome check --diagnostic-level error --write ./src && biome check --diagnostic-level error --write ./tests",
|
20
|
-
"lint:ci": "biome check --diagnostic-level error ./src",
|
21
|
-
"lint:test": "biome check --write ./tests",
|
22
|
-
"pack": "chmod +x scripts/pack.sh && ./scripts/pack.sh",
|
23
|
-
"pull-db": "prisma db pull && prisma generate",
|
24
|
-
"pull-db:local": "DATABASE_URL=postgresql://postgres:postgres@0.0.0.0:5432/merkl-calc prisma db pull && prisma generate",
|
25
|
-
"setup": "code --install-extension .vscode/extensions/merkl:helpers-0.0.1.vsix",
|
26
|
-
"sql": "lsof -i :1234 && lsof -i :2345",
|
27
|
-
"start:local": "bun scripts/start.ts",
|
28
|
-
"sync": "bun install && git submodule update --init --recursive --remote & git submodule foreach 'bun install'",
|
29
|
-
"test": "bun test"
|
30
|
-
},
|
31
|
-
"dependencies": {
|
32
|
-
"@bogeychan/elysia-logger": "^0.0.13",
|
33
|
-
"@elysiajs/cors": "^0.7.2",
|
34
|
-
"@elysiajs/opentelemetry": "^1.1.7",
|
35
|
-
"@elysiajs/swagger": "^0.7.4",
|
36
|
-
"@ethersproject/abi": "^5.7.0",
|
37
|
-
"@prisma/client": "6.0.1",
|
38
|
-
"@sinclair/typebox": "^0.33.4",
|
39
|
-
"@types/crypto-js": "^4.2.1",
|
40
|
-
"@types/lodash": "^4.17.12",
|
41
|
-
"@types/node": "^22.7.9",
|
42
|
-
"axios": "^1.7.3",
|
43
|
-
"big.js": "^6.2.1",
|
44
|
-
"brotli": "^1.3.3",
|
45
|
-
"buffer-reverse": "^1.0.1",
|
46
|
-
"commander": "^12.1.0",
|
47
|
-
"crypto-js": "^4.2.0",
|
48
|
-
"dd-trace": "^5.22.0",
|
49
|
-
"elysia": "1.1.26",
|
50
|
-
"elysia-autoroutes": "^0.5.0",
|
51
|
-
"elysia-rate-limit": "^4.1.0",
|
52
|
-
"ethers": "^5.7.2",
|
53
|
-
"ethers-types": "3.17.0",
|
54
|
-
"graphql-request": "^3.6.1",
|
55
|
-
"jsbi": "^4.3.0",
|
56
|
-
"json-shrink": "^0.0.124",
|
57
|
-
"lodash": "^4.17.21",
|
58
|
-
"moment": "^2.29.4",
|
59
|
-
"node-cache": "^5.1.2",
|
60
|
-
"pino": "^8.17.1",
|
61
|
-
"pino-pretty": "^10.3.0",
|
62
|
-
"redis": "^4.7.0",
|
63
|
-
"treeify": "^1.1.0",
|
64
|
-
"tscpaths": "^0.0.9",
|
65
|
-
"uuid": "^9.0.1",
|
66
|
-
"viem": "^2.21.27",
|
67
|
-
"@elysiajs/eden": "1.0.9"
|
68
|
-
},
|
69
|
-
"devDependencies": {
|
70
|
-
"@biomejs/biome": "^1.6.3",
|
71
|
-
"@types/big.js": "^6.2.2",
|
72
|
-
"@types/bun": "^1.1.14",
|
73
|
-
"@types/treeify": "^1.0.3",
|
74
|
-
"@types/uuid": "^9.0.7",
|
75
|
-
"bun-types": "latest",
|
76
|
-
"chalk": "^5.3.0",
|
77
|
-
"prisma": "^6.0.1"
|
78
|
-
},
|
79
|
-
"repository": {
|
80
|
-
"type": "git",
|
81
|
-
"url": "https://github.com/AngleProtocol/merkl-api"
|
82
|
-
},
|
83
|
-
"prisma": {
|
84
|
-
"seed": "bun run database/api/seeder/index.ts"
|
85
|
-
},
|
86
|
-
"publishConfig": {
|
87
|
-
"access": "public",
|
88
|
-
"registry": "https://registry.npmjs.org/"
|
89
|
-
},
|
90
|
-
"version": "v0.10.130"
|
91
|
-
}
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";
|