@arken/seer-protocol 0.1.0 → 0.1.1

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.
Files changed (41) hide show
  1. package/{src/modules/evolution → evolution}/evolution.models.ts +1 -1
  2. package/{src/modules/evolution → evolution}/evolution.router.ts +9 -9
  3. package/evolution/evolution.schema.ts +1 -0
  4. package/{src/modules/evolution → evolution}/evolution.types.ts +1 -1
  5. package/{src/index.ts → index.ts} +2 -2
  6. package/{src/modules/infinite → infinite}/infinite.models.ts +1 -1
  7. package/{src/modules/infinite → infinite}/infinite.router.ts +9 -9
  8. package/infinite/infinite.schema.ts +1 -0
  9. package/{src/modules/infinite → infinite}/infinite.types.ts +1 -1
  10. package/{src/modules/isles → isles}/isles.models.ts +1 -1
  11. package/{src/modules/isles → isles}/isles.router.ts +9 -9
  12. package/isles/isles.schema.ts +1 -0
  13. package/{src/modules/isles → isles}/isles.types.ts +1 -1
  14. package/{src/modules/oasis → oasis}/oasis.models.ts +1 -1
  15. package/{src/modules/oasis → oasis}/oasis.router.ts +2 -2
  16. package/oasis/oasis.schema.ts +1 -0
  17. package/{src/modules/oasis → oasis}/oasis.types.ts +1 -1
  18. package/package.json +3 -12
  19. package/{src/router.ts → router.ts} +23 -23
  20. package/trek/trek.models.ts +1 -0
  21. package/{src/modules/trek → trek}/trek.router.ts +1 -1
  22. package/trek/trek.schema.ts +1 -0
  23. package/trek/trek.types.ts +1 -0
  24. package/src/modules/evolution/evolution.schema.ts +0 -1
  25. package/src/modules/evolution/evolution.service.ts +0 -2000
  26. package/src/modules/infinite/infinite.schema.ts +0 -1
  27. package/src/modules/infinite/infinite.service.ts +0 -40
  28. package/src/modules/isles/isles.schema.ts +0 -1
  29. package/src/modules/isles/isles.service.ts +0 -40
  30. package/src/modules/oasis/oasis.schema.ts +0 -1
  31. package/src/modules/oasis/oasis.service.ts +0 -38
  32. package/src/modules/trek/trek.models.ts +0 -1
  33. package/src/modules/trek/trek.schema.ts +0 -1
  34. package/src/modules/trek/trek.service.ts +0 -1031
  35. package/src/modules/trek/trek.types.ts +0 -1
  36. /package/{src/modules/evolution → evolution}/index.ts +0 -0
  37. /package/{src/modules/infinite → infinite}/index.ts +0 -0
  38. /package/{src/modules/isles → isles}/index.ts +0 -0
  39. /package/{src/modules/oasis → oasis}/index.ts +0 -0
  40. /package/{src/modules/trek → trek}/index.ts +0 -0
  41. /package/{src/types.ts → types.ts} +0 -0
@@ -1,3 +1,3 @@
1
- import * as mongo from '@arken/node/util/mongo';
1
+ import * as mongo from '@arken/mongo';
2
2
 
3
3
  const { addTagVirtuals, addApplicationVirtual } = mongo;
@@ -1,8 +1,8 @@
1
1
  import { z as zod } from 'zod';
2
2
  import { initTRPC } from '@trpc/server';
3
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
3
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
4
4
  import * as Arken from '@arken/node';
5
- import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
5
+ import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/schema';
6
6
  import { RouterContext } from '../../types';
7
7
 
8
8
  export const z = zod;
@@ -1406,20 +1406,20 @@ export type RouterOutput = inferRouterOutputs<Router>;
1406
1406
  // }
1407
1407
  // });
1408
1408
 
1409
- // import type * as Arken from '@arken/node/types';
1410
- // import { isDebug, log } from '@arken/node/util';
1409
+ // import type * as Arken from '@arken/types';
1410
+ // import { isDebug, log } from '@arken/util';
1411
1411
  // import * as dotenv from 'dotenv';
1412
- // import { catchExceptions, subProcesses } from '@arken/node/util/process';
1412
+ // import { catchExceptions, subProcesses } from '@arken/process';
1413
1413
  // import fetch from 'node-fetch';
1414
1414
 
1415
1415
  // import path from 'path';
1416
1416
  // import jetpack, { find } from 'fs-jetpack';
1417
1417
  // import beautify from 'json-beautify';
1418
- // import { fancyTimeFormat } from '@arken/node/util/time';
1418
+ // import { fancyTimeFormat } from '@arken/time';
1419
1419
  // import md5 from 'js-md5';
1420
- // import { getClientSocket } from '@arken/node/util/websocket';
1421
- // import { isValidRequest, getSignedRequest } from '@arken/node/util/web3';
1422
- // import getUsername from '@arken/node/legacy/getOldUsername';
1420
+ // import { getClientSocket } from '@arken/websocket';
1421
+ // import { isValidRequest, getSignedRequest } from '@arken/web3';
1422
+ // import getUsername from '@arken/legacy/getOldUsername';
1423
1423
  // import { z } from 'zod';
1424
1424
 
1425
1425
  // export async function monitorEvolutionRealms(app) {}
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Model, Document } from '@arken/node/util/mongo';
2
+ import { Model, Document } from '@arken/mongo';
3
3
  import * as schema from './evolution.schema';
4
4
 
5
5
  export type * from './evolution.router';
@@ -1,6 +1,6 @@
1
- import type * as Arken from '@arken/node/types';
1
+ import type * as Arken from '@arken/types';
2
2
  import * as dotenv from 'dotenv';
3
- import * as Schema from '@arken/node/schema';
3
+ import * as Schema from '@arken/schema';
4
4
  import { createRouter as createRouter2 } from './router';
5
5
  import type * as Types from './types';
6
6
 
@@ -1,3 +1,3 @@
1
- import * as mongo from '@arken/node/util/mongo';
1
+ import * as mongo from '@arken/mongo';
2
2
 
3
3
  const { addTagVirtuals, addApplicationVirtual } = mongo;
@@ -1,8 +1,8 @@
1
1
  import { z as zod } from 'zod';
2
2
  import { initTRPC } from '@trpc/server';
3
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
3
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
4
4
  import * as Arken from '@arken/node';
5
- import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
5
+ import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/schema';
6
6
  import { RouterContext } from '../../types';
7
7
 
8
8
  export const z = zod;
@@ -1316,20 +1316,20 @@ export type RouterOutput = inferRouterOutputs<Router>;
1316
1316
  // }
1317
1317
  // });
1318
1318
 
1319
- // import type * as Arken from '@arken/node/types';
1320
- // import { isDebug, log } from '@arken/node/util';
1319
+ // import type * as Arken from '@arken/types';
1320
+ // import { isDebug, log } from '@arken/util';
1321
1321
  // import * as dotenv from 'dotenv';
1322
- // import { catchExceptions, subProcesses } from '@arken/node/util/process';
1322
+ // import { catchExceptions, subProcesses } from '@arken/process';
1323
1323
  // import fetch from 'node-fetch';
1324
1324
 
1325
1325
  // import path from 'path';
1326
1326
  // import jetpack, { find } from 'fs-jetpack';
1327
1327
  // import beautify from 'json-beautify';
1328
- // import { fancyTimeFormat } from '@arken/node/util/time';
1328
+ // import { fancyTimeFormat } from '@arken/time';
1329
1329
  // import md5 from 'js-md5';
1330
- // import { getClientSocket } from '@arken/node/util/websocket';
1331
- // import { isValidRequest, getSignedRequest } from '@arken/node/util/web3';
1332
- // import getUsername from '@arken/node/legacy/getOldUsername';
1330
+ // import { getClientSocket } from '@arken/websocket';
1331
+ // import { isValidRequest, getSignedRequest } from '@arken/web3';
1332
+ // import getUsername from '@arken/legacy/getOldUsername';
1333
1333
  // import { z } from 'zod';
1334
1334
 
1335
1335
  // export async function monitorEvolutionRealms(app) {}
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Model, Document } from '@arken/node/util/mongo';
2
+ import { Model, Document } from '@arken/mongo';
3
3
  import * as schema from './infinite.schema';
4
4
 
5
5
  export type * from './infinite.router';
@@ -1,3 +1,3 @@
1
- import * as mongo from '@arken/node/util/mongo';
1
+ import * as mongo from '@arken/mongo';
2
2
 
3
3
  const { addTagVirtuals, addApplicationVirtual } = mongo;
@@ -1,8 +1,8 @@
1
1
  import { z as zod } from 'zod';
2
2
  import { initTRPC } from '@trpc/server';
3
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
3
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
4
4
  import * as Arken from '@arken/node';
5
- import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
5
+ import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/schema';
6
6
  import { RouterContext } from '../../types';
7
7
 
8
8
  export const z = zod;
@@ -1316,20 +1316,20 @@ export type RouterOutput = inferRouterOutputs<Router>;
1316
1316
  // }
1317
1317
  // });
1318
1318
 
1319
- // import type * as Arken from '@arken/node/types';
1320
- // import { isDebug, log } from '@arken/node/util';
1319
+ // import type * as Arken from '@arken/types';
1320
+ // import { isDebug, log } from '@arken/util';
1321
1321
  // import * as dotenv from 'dotenv';
1322
- // import { catchExceptions, subProcesses } from '@arken/node/util/process';
1322
+ // import { catchExceptions, subProcesses } from '@arken/process';
1323
1323
  // import fetch from 'node-fetch';
1324
1324
 
1325
1325
  // import path from 'path';
1326
1326
  // import jetpack, { find } from 'fs-jetpack';
1327
1327
  // import beautify from 'json-beautify';
1328
- // import { fancyTimeFormat } from '@arken/node/util/time';
1328
+ // import { fancyTimeFormat } from '@arken/time';
1329
1329
  // import md5 from 'js-md5';
1330
- // import { getClientSocket } from '@arken/node/util/websocket';
1331
- // import { isValidRequest, getSignedRequest } from '@arken/node/util/web3';
1332
- // import getUsername from '@arken/node/legacy/getOldUsername';
1330
+ // import { getClientSocket } from '@arken/websocket';
1331
+ // import { isValidRequest, getSignedRequest } from '@arken/web3';
1332
+ // import getUsername from '@arken/legacy/getOldUsername';
1333
1333
  // import { z } from 'zod';
1334
1334
 
1335
1335
  // export async function monitorEvolutionRealms(app) {}
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Model, Document } from '@arken/node/util/mongo';
2
+ import { Model, Document } from '@arken/mongo';
3
3
  import * as schema from './isles.schema';
4
4
 
5
5
  export type * from './isles.router';
@@ -1,3 +1,3 @@
1
- import * as mongo from '@arken/node/util/mongo';
1
+ import * as mongo from '@arken/mongo';
2
2
 
3
3
  const { addTagVirtuals, addApplicationVirtual } = mongo;
@@ -1,8 +1,8 @@
1
1
  import { z as zod } from 'zod';
2
2
  import { initTRPC } from '@trpc/server';
3
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
3
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
4
4
  import * as Arken from '@arken/node';
5
- import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
5
+ import { Query, getQueryInput, inferRouterOutputs, inferRouterInputs } from '@arken/schema';
6
6
  import { RouterContext } from '../../types';
7
7
 
8
8
  export const z = zod;
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Model, Document } from '@arken/node/util/mongo';
2
+ import { Model, Document } from '@arken/mongo';
3
3
  import * as schema from './oasis.schema';
4
4
 
5
5
  export type * from './oasis.router';
package/package.json CHANGED
@@ -1,25 +1,16 @@
1
1
  {
2
2
  "name": "@arken/seer-protocol",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {},
6
6
  "dependencies": {
7
- "@arken/node": "workspace:*",
8
- "@arken/forge-protocol": "workspace:*",
7
+ "@arken/forge-protocol": "^0.1.1",
9
8
  "@trpc/client": "11.0.0-rc.660",
10
9
  "@trpc/server": "11.0.0-rc.660",
11
10
  "zod": "^3",
12
11
  "dotenv": "^16",
13
- "web3": "^1",
14
- "@project-serum/anchor": "~0.26.0",
15
- "bs58": "~6.0.0",
16
- "tweetnacl": "~1.0.3",
17
12
  "lodash": "^4",
18
- "borsh": "~2.0.0",
19
- "ethers": "~6.13.4",
20
13
  "dayjs": "^1"
21
14
  },
22
- "devDependencies": {
23
- "@types/web3": "^1"
24
- }
15
+ "devDependencies": {}
25
16
  }
@@ -1,29 +1,29 @@
1
- import util from '@arken/node/util';
1
+ import util from '@arken/util';
2
2
  import { initTRPC } from '@trpc/server';
3
3
  import { observable } from '@trpc/server/observable';
4
- import { serialize, deserialize } from '@arken/node/util/rpc';
4
+ import { serialize, deserialize } from '@arken/rpc';
5
5
  import { z } from 'zod';
6
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
7
- import { Query, getQueryInput, getQueryOutput, inferRouterOutputs } from '@arken/node/schema';
8
- import * as Arken from '@arken/node/types';
9
- import * as Schema from '@arken/node/schema';
10
- import * as Area from '@arken/node/modules/area/area.router';
11
- import * as Asset from '@arken/node/modules/asset/asset.router';
12
- import * as Character from '@arken/node/modules/character/character.router';
13
- import * as Chain from '@arken/node/modules/chain/chain.router';
14
- import * as Chat from '@arken/node/modules/chat/chat.router';
15
- import * as Collection from '@arken/node/modules/collection/collection.router';
16
- import * as Core from '@arken/node/modules/core/core.router';
17
- import * as Game from '@arken/node/modules/game/game.router';
18
- import * as Interface from '@arken/node/modules/interface/interface.router';
19
- import * as Item from '@arken/node/modules/item/item.router';
20
- import * as Job from '@arken/node/modules/job/job.router';
21
- import * as Market from '@arken/node/modules/market/market.router';
22
- import * as Product from '@arken/node/modules/product/product.router';
23
- import * as Profile from '@arken/node/modules/profile/profile.router';
24
- import * as Raffle from '@arken/node/modules/raffle/raffle.router';
25
- import * as Skill from '@arken/node/modules/skill/skill.router';
26
- import * as Video from '@arken/node/modules/video/video.router';
6
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
7
+ import { Query, getQueryInput, getQueryOutput, inferRouterOutputs } from '@arken/schema';
8
+ import * as Arken from '@arken/types';
9
+ import * as Schema from '@arken/schema';
10
+ import * as Area from '@arken/protocol/area/area.router';
11
+ import * as Asset from '@arken/protocol/asset/asset.router';
12
+ import * as Character from '@arken/protocol/character/character.router';
13
+ import * as Chain from '@arken/protocol/chain/chain.router';
14
+ import * as Chat from '@arken/protocol/chat/chat.router';
15
+ import * as Collection from '@arken/protocol/collection/collection.router';
16
+ import * as Core from '@arken/protocol/core/core.router';
17
+ import * as Game from '@arken/protocol/game/game.router';
18
+ import * as Interface from '@arken/protocol/interface/interface.router';
19
+ import * as Item from '@arken/protocol/item/item.router';
20
+ import * as Job from '@arken/protocol/job/job.router';
21
+ import * as Market from '@arken/protocol/market/market.router';
22
+ import * as Product from '@arken/protocol/product/product.router';
23
+ import * as Profile from '@arken/protocol/profile/profile.router';
24
+ import * as Raffle from '@arken/protocol/raffle/raffle.router';
25
+ import * as Skill from '@arken/protocol/skill/skill.router';
26
+ import * as Video from '@arken/protocol/video/video.router';
27
27
  import * as Trek from './modules/trek/trek.router';
28
28
  import * as Isles from './modules/isles/isles.router';
29
29
  import * as Evolution from './modules/evolution/evolution.router';
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { z as zod } from 'zod';
4
4
  import { initTRPC } from '@trpc/server';
5
- import { customErrorFormatter, hasRole } from '@arken/node/util/rpc';
5
+ import { customErrorFormatter, hasRole } from '@arken/rpc';
6
6
  import type { inferRouterOutputs, inferRouterInputs } from '@trpc/server';
7
7
  import type { RouterContext } from '../../types';
8
8
 
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -0,0 +1 @@
1
+ import { z, ObjectId, Entity } from '@arken/schema';
@@ -1 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';