@peeramid-labs/sdk 2.0.1 → 2.0.2

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 (39) hide show
  1. package/docs/classes/ApiError.md +44 -0
  2. package/docs/classes/InstanceBase.md +341 -0
  3. package/docs/classes/InstancePlayer.md +568 -0
  4. package/docs/classes/MAODistributorClient.md +307 -0
  5. package/docs/classes/Multipass.md +276 -0
  6. package/docs/classes/MultipassBase.md +217 -0
  7. package/docs/docs/.nojekyll +1 -0
  8. package/docs/docs/classes/ApiError.md +44 -0
  9. package/docs/docs/classes/InstanceBase.md +341 -0
  10. package/docs/docs/classes/InstancePlayer.md +568 -0
  11. package/docs/docs/classes/MAODistributorClient.md +307 -0
  12. package/docs/docs/classes/Multipass.md +276 -0
  13. package/docs/docs/classes/MultipassBase.md +217 -0
  14. package/docs/docs/enums/SearchCriteria.md +29 -0
  15. package/docs/docs/enums/gameStatusEnum.md +71 -0
  16. package/docs/docs/index.md +367 -0
  17. package/docs/docs/interfaces/ApiErrorOptions.md +30 -0
  18. package/docs/docs/interfaces/MAOInstanceContracts.md +53 -0
  19. package/docs/docs/interfaces/MAOInstances.md +53 -0
  20. package/docs/docs/interfaces/RegisterMessage.md +53 -0
  21. package/docs/docs/interfaces/SignerIdentity.md +35 -0
  22. package/docs/enums/SearchCriteria.md +29 -0
  23. package/docs/enums/gameStatusEnum.md +71 -0
  24. package/docs/index.md +367 -0
  25. package/docs/interfaces/ApiErrorOptions.md +30 -0
  26. package/docs/interfaces/MAOInstanceContracts.md +53 -0
  27. package/docs/interfaces/MAOInstances.md +53 -0
  28. package/docs/interfaces/RegisterMessage.md +53 -0
  29. package/docs/interfaces/SignerIdentity.md +35 -0
  30. package/package.json +3 -3
  31. package/docs/assets/highlight.css +0 -64
  32. package/docs/assets/icons.js +0 -15
  33. package/docs/assets/icons.svg +0 -1
  34. package/docs/assets/main.js +0 -59
  35. package/docs/assets/navigation.js +0 -1
  36. package/docs/assets/search.js +0 -1
  37. package/docs/assets/style.css +0 -1412
  38. package/docs/index.html +0 -62
  39. package/docs/modules.html +0 -1
@@ -0,0 +1,30 @@
1
+ # Interface: ApiErrorOptions
2
+
3
+ ## Hierarchy
4
+
5
+ - `ErrorOptions`
6
+
7
+ ↳ **`ApiErrorOptions`**
8
+
9
+ ## Table of contents
10
+
11
+ ### Properties
12
+
13
+ - [cause](ApiErrorOptions.md#cause)
14
+ - [status](ApiErrorOptions.md#status)
15
+
16
+ ## Properties
17
+
18
+ ### cause
19
+
20
+ • `Optional` **cause**: `unknown`
21
+
22
+ #### Inherited from
23
+
24
+ ErrorOptions.cause
25
+
26
+ ___
27
+
28
+ ### status
29
+
30
+ • `Optional` **status**: `number`
@@ -0,0 +1,53 @@
1
+ # Interface: MAOInstanceContracts
2
+
3
+ Collection of contract instances for a MAO deployment
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [rankToken](MAOInstanceContracts.md#ranktoken)
10
+ - [instance](MAOInstanceContracts.md#instance)
11
+ - [govtToken](MAOInstanceContracts.md#govttoken)
12
+ - [govTokenAccessManager](MAOInstanceContracts.md#govtokenaccessmanager)
13
+ - [ACIDAccessManager](MAOInstanceContracts.md#acidaccessmanager)
14
+
15
+ ## Properties
16
+
17
+ ### rankToken
18
+
19
+ • **rankToken**: `Object`
20
+
21
+ Rank token contract instance
22
+
23
+ ___
24
+
25
+ ### instance
26
+
27
+ • **instance**: `Object`
28
+
29
+ Main instance contract
30
+
31
+ ___
32
+
33
+ ### govtToken
34
+
35
+ • **govtToken**: `Object`
36
+
37
+ Governance token contract
38
+
39
+ ___
40
+
41
+ ### govTokenAccessManager
42
+
43
+ • **govTokenAccessManager**: `Object`
44
+
45
+ Access manager for governance token
46
+
47
+ ___
48
+
49
+ ### ACIDAccessManager
50
+
51
+ • **ACIDAccessManager**: `Object`
52
+
53
+ Access manager for ACID
@@ -0,0 +1,53 @@
1
+ # Interface: MAOInstances
2
+
3
+ Interface representing the contract addresses for a MAO instance
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [govToken](MAOInstances.md#govtoken)
10
+ - [govTokenAccessManager](MAOInstances.md#govtokenaccessmanager)
11
+ - [ACIDInstance](MAOInstances.md#acidinstance)
12
+ - [ACIDAccessManager](MAOInstances.md#acidaccessmanager)
13
+ - [rankToken](MAOInstances.md#ranktoken)
14
+
15
+ ## Properties
16
+
17
+ ### govToken
18
+
19
+ • **govToken**: `string`
20
+
21
+ Address of the governance token contract
22
+
23
+ ___
24
+
25
+ ### govTokenAccessManager
26
+
27
+ • **govTokenAccessManager**: `string`
28
+
29
+ Address of the governance token access manager contract
30
+
31
+ ___
32
+
33
+ ### ACIDInstance
34
+
35
+ • **ACIDInstance**: `string`
36
+
37
+ Address of the ACID instance contract
38
+
39
+ ___
40
+
41
+ ### ACIDAccessManager
42
+
43
+ • **ACIDAccessManager**: `string`
44
+
45
+ Address of the ACID access manager contract
46
+
47
+ ___
48
+
49
+ ### rankToken
50
+
51
+ • **rankToken**: `string`
52
+
53
+ Address of the rank token contract
@@ -0,0 +1,53 @@
1
+ # Interface: RegisterMessage
2
+
3
+ Message structure for user registration
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [name](RegisterMessage.md#name)
10
+ - [id](RegisterMessage.md#id)
11
+ - [domainName](RegisterMessage.md#domainname)
12
+ - [validUntil](RegisterMessage.md#validuntil)
13
+ - [nonce](RegisterMessage.md#nonce)
14
+
15
+ ## Properties
16
+
17
+ ### name
18
+
19
+ • **name**: \`0x$\{string}\`
20
+
21
+ Hex encoded name
22
+
23
+ ___
24
+
25
+ ### id
26
+
27
+ • **id**: \`0x$\{string}\`
28
+
29
+ Hex encoded unique identifier
30
+
31
+ ___
32
+
33
+ ### domainName
34
+
35
+ • **domainName**: \`0x$\{string}\`
36
+
37
+ Hex encoded domain name
38
+
39
+ ___
40
+
41
+ ### validUntil
42
+
43
+ • **validUntil**: `bigint`
44
+
45
+ Timestamp until which the registration is valid
46
+
47
+ ___
48
+
49
+ ### nonce
50
+
51
+ • **nonce**: `bigint`
52
+
53
+ Registration nonce
@@ -0,0 +1,35 @@
1
+ # Interface: SignerIdentity
2
+
3
+ Represents a signer's identity in the system
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [name](SignerIdentity.md#name)
10
+ - [id](SignerIdentity.md#id)
11
+ - [wallet](SignerIdentity.md#wallet)
12
+
13
+ ## Properties
14
+
15
+ ### name
16
+
17
+ • **name**: `string`
18
+
19
+ User's display name
20
+
21
+ ___
22
+
23
+ ### id
24
+
25
+ • **id**: `string`
26
+
27
+ Unique identifier for the user
28
+
29
+ ___
30
+
31
+ ### wallet
32
+
33
+ • **wallet**: `Object`
34
+
35
+ Wallet client associated with the signer
@@ -0,0 +1,29 @@
1
+ # Enumeration: SearchCriteria
2
+
3
+ Criteria used for searching entities in the system
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [id](SearchCriteria.md#id)
10
+ - [username](SearchCriteria.md#username)
11
+ - [address](SearchCriteria.md#address)
12
+
13
+ ## Enumeration Members
14
+
15
+ ### id
16
+
17
+ • **id** = ``0``
18
+
19
+ ___
20
+
21
+ ### username
22
+
23
+ • **username** = ``1``
24
+
25
+ ___
26
+
27
+ ### address
28
+
29
+ • **address** = ``2``
@@ -0,0 +1,71 @@
1
+ # Enumeration: gameStatusEnum
2
+
3
+ Enum representing different states of a game instance
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [created](gameStatusEnum.md#created)
10
+ - [open](gameStatusEnum.md#open)
11
+ - [started](gameStatusEnum.md#started)
12
+ - [lastTurn](gameStatusEnum.md#lastturn)
13
+ - [overtime](gameStatusEnum.md#overtime)
14
+ - [finished](gameStatusEnum.md#finished)
15
+ - [notFound](gameStatusEnum.md#notfound)
16
+
17
+ ## Enumeration Members
18
+
19
+ ### created
20
+
21
+ • **created** = ``"Game created"``
22
+
23
+ Game has been created but not opened for registration
24
+
25
+ ___
26
+
27
+ ### open
28
+
29
+ • **open** = ``"Registration open"``
30
+
31
+ Game is open for player registration
32
+
33
+ ___
34
+
35
+ ### started
36
+
37
+ • **started** = ``"In progress"``
38
+
39
+ Game is in progress
40
+
41
+ ___
42
+
43
+ ### lastTurn
44
+
45
+ • **lastTurn** = ``"Playing last turn"``
46
+
47
+ Game is in its final turn
48
+
49
+ ___
50
+
51
+ ### overtime
52
+
53
+ • **overtime** = ``"PLaying in overtime"``
54
+
55
+ Game is in overtime
56
+
57
+ ___
58
+
59
+ ### finished
60
+
61
+ • **finished** = ``"Finished"``
62
+
63
+ Game has finished
64
+
65
+ ___
66
+
67
+ ### notFound
68
+
69
+ • **notFound** = ``"not found"``
70
+
71
+ Game was not found