trucoshi 2.0.4 → 2.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.
package/README.md CHANGED
@@ -1,25 +1,23 @@
1
1
  # Trucoshi
2
2
 
3
- ### English
4
-
5
- Work in progress
3
+ Bitcoin Lightning "Truco" Server
6
4
 
7
- Pretends to be an Argentinian Truco game socket server that allows you to put Satoshis on the table ;)
5
+ ### English
8
6
 
9
7
  Try current demo at [Trucoshi](https://trucoshi.com)
10
8
 
11
9
  ### Spanish
12
10
 
13
- En construccion
14
-
15
- Pretende ser un server basado en sockets del juego de Truco Argentino que te permita poner unos Satoshis en la mesa ;)
16
-
17
11
  Proba la demo actual en [Trucoshi](https://trucoshi.com)
18
12
 
19
13
  # Client
20
14
 
21
15
  [Trucoshi React Client](https://github.com/jfrader/trucoshi-client)
22
16
 
17
+ # Accounts
18
+
19
+ [Lightning Accounts](https://github.com/jfrader/lightning-accounts)
20
+
23
21
  ### Installation
24
22
 
25
23
  `yarn`
@@ -46,14 +44,16 @@ Proba la demo actual en [Trucoshi](https://trucoshi.com)
46
44
  [x] Irse al mazo
47
45
  [x] Cantar truco
48
46
  [x] Cantar envido
49
- [] Cantar flor
50
47
  [x] Socket server
51
48
  [x] Unit tests
52
- [] Bitcoin Lightning integration
49
+ [x] Bitcoin Lightning integration
50
+ [ ] Cantar flor
51
+ [ ] Historial de partidas
52
+ [ ] Torneos
53
53
 
54
54
  # Donations
55
55
 
56
- Donate Bitcoin at [jfrader.com](https://jfrader.com)
56
+ Donate Bitcoin at [geyser.fund/project/trucoshi](https://geyser.fund/project/trucoshi)
57
57
 
58
58
  # License
59
59
 
package/dist/types.d.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  import { User } from "lightning-accounts";
2
2
  import { CARDS, IHand } from "./lib";
3
3
  import { IUserData } from "./server";
4
- import { EMatchState } from "@prisma/client";
5
4
  export { CARDS, CARDS_HUMAN_READABLE, BURNT_CARD } from "./lib/constants";
6
- export { EMatchState };
5
+ export declare enum EMatchState {
6
+ UNREADY = "UNREADY",
7
+ READY = "READY",
8
+ STARTED = "STARTED",
9
+ FINISHED = "FINISHED"
10
+ }
7
11
  export interface ILobbyOptions {
8
12
  maxPlayers: 2 | 4 | 6;
9
13
  faltaEnvido: 1 | 2;
package/dist/types.js CHANGED
@@ -1,6 +1,11 @@
1
- import { EMatchState } from "@prisma/client";
2
1
  export { CARDS, CARDS_HUMAN_READABLE, BURNT_CARD } from "./lib/constants";
3
- export { EMatchState };
2
+ export var EMatchState;
3
+ (function (EMatchState) {
4
+ EMatchState["UNREADY"] = "UNREADY";
5
+ EMatchState["READY"] = "READY";
6
+ EMatchState["STARTED"] = "STARTED";
7
+ EMatchState["FINISHED"] = "FINISHED";
8
+ })(EMatchState || (EMatchState = {}));
4
9
  export var EChatSystem;
5
10
  (function (EChatSystem) {
6
11
  EChatSystem[EChatSystem["TEAM_0"] = 0] = "TEAM_0";
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "2.0.4",
3
+ "version": "2.1.1",
4
+ "description": "Lightning Truco Server",
4
5
  "main": "dist/types.js",
5
6
  "license": "GPL-3.0",
7
+ "author": "Fran <jfrader.com>",
8
+ "keywords": [
9
+ "bitcoin",
10
+ "lightning"
11
+ ],
6
12
  "paths": {
7
13
  "trucoshi": [
8
14
  "./"