@peeramid-labs/sdk 2.0.0 → 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,217 @@
1
+ # Class: MultipassBase
2
+
3
+ Base class for Multipass functionality
4
+
5
+ ## Hierarchy
6
+
7
+ - **`MultipassBase`**
8
+
9
+ ↳ [`Multipass`](Multipass.md)
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](MultipassBase.md#constructor)
16
+
17
+ ### Properties
18
+
19
+ - [chainId](MultipassBase.md#chainid)
20
+
21
+ ### Methods
22
+
23
+ - [getDappURL](MultipassBase.md#getdappurl)
24
+ - [getRegistrarMessage](MultipassBase.md#getregistrarmessage)
25
+ - [formQueryByAddress](MultipassBase.md#formquerybyaddress)
26
+ - [formQueryById](MultipassBase.md#formquerybyid)
27
+ - [formQueryByUsername](MultipassBase.md#formquerybyusername)
28
+ - [formQueryByUsernameAndId](MultipassBase.md#formquerybyusernameandid)
29
+ - [formQueryByFullDetails](MultipassBase.md#formquerybyfulldetails)
30
+
31
+ ## Constructors
32
+
33
+ ### constructor
34
+
35
+ • **new MultipassBase**(`params`): [`MultipassBase`](MultipassBase.md)
36
+
37
+ Creates a new MultipassBase instance
38
+
39
+ #### Parameters
40
+
41
+ | Name | Type | Description |
42
+ | :------ | :------ | :------ |
43
+ | `params` | `Object` | Constructor parameters |
44
+ | `params.chainId` | `number` | ID of the blockchain network |
45
+
46
+ #### Returns
47
+
48
+ [`MultipassBase`](MultipassBase.md)
49
+
50
+ ## Properties
51
+
52
+ ### chainId
53
+
54
+ • **chainId**: `number`
55
+
56
+ Chain ID for the network
57
+
58
+ ## Methods
59
+
60
+ ### getDappURL
61
+
62
+ ▸ **getDappURL**(`message`, `signature`, `basepath`, `contractAddress`): `string`
63
+
64
+ Generates a URL for a dapp
65
+
66
+ #### Parameters
67
+
68
+ | Name | Type | Description |
69
+ | :------ | :------ | :------ |
70
+ | `message` | `object` | Message object to be encoded in the URL |
71
+ | `signature` | `string` | Signature to be encoded in the URL |
72
+ | `basepath` | `string` | Base path of the URL |
73
+ | `contractAddress` | `string` | Address of the contract |
74
+
75
+ #### Returns
76
+
77
+ `string`
78
+
79
+ The generated URL
80
+
81
+ ___
82
+
83
+ ### getRegistrarMessage
84
+
85
+ ▸ **getRegistrarMessage**(`«destructured»`): [`RegisterMessage`](../interfaces/RegisterMessage.md)
86
+
87
+ #### Parameters
88
+
89
+ | Name | Type |
90
+ | :------ | :------ |
91
+ | `«destructured»` | `Object` |
92
+ | › `username` | `string` |
93
+ | › `id` | `string` |
94
+ | › `domainName` | `string` |
95
+ | › `validUntil` | `number` |
96
+
97
+ #### Returns
98
+
99
+ [`RegisterMessage`](../interfaces/RegisterMessage.md)
100
+
101
+ ___
102
+
103
+ ### formQueryByAddress
104
+
105
+ ▸ **formQueryByAddress**(`params`): [`NameQuery`](../index.md#namequery)
106
+
107
+ Creates a name query by address
108
+
109
+ #### Parameters
110
+
111
+ | Name | Type | Description |
112
+ | :------ | :------ | :------ |
113
+ | `params` | `Object` | Parameters for creating the query |
114
+ | `params.address` | `string` | Address to be encoded in the query |
115
+ | `params.domainName` | `string` | Domain name to be encoded in the query |
116
+ | `params.targetDomain?` | `string` | Target domain to be encoded in the query |
117
+
118
+ #### Returns
119
+
120
+ [`NameQuery`](../index.md#namequery)
121
+
122
+ The generated name query
123
+
124
+ ___
125
+
126
+ ### formQueryById
127
+
128
+ ▸ **formQueryById**(`params`): [`NameQuery`](../index.md#namequery)
129
+
130
+ Creates a name query by ID
131
+
132
+ #### Parameters
133
+
134
+ | Name | Type | Description |
135
+ | :------ | :------ | :------ |
136
+ | `params` | `Object` | Parameters for creating the query |
137
+ | `params.id` | `string` | ID to be encoded in the query |
138
+ | `params.domainName` | `string` | Domain name to be encoded in the query |
139
+ | `params.targetDomain?` | `string` | Target domain to be encoded in the query |
140
+
141
+ #### Returns
142
+
143
+ [`NameQuery`](../index.md#namequery)
144
+
145
+ The generated name query
146
+
147
+ ___
148
+
149
+ ### formQueryByUsername
150
+
151
+ ▸ **formQueryByUsername**(`params`): [`NameQuery`](../index.md#namequery)
152
+
153
+ Creates a name query by username
154
+
155
+ #### Parameters
156
+
157
+ | Name | Type | Description |
158
+ | :------ | :------ | :------ |
159
+ | `params` | `Object` | Parameters for creating the query |
160
+ | `params.username` | `string` | Username to be encoded in the query |
161
+ | `params.domainName` | `string` | Domain name to be encoded in the query |
162
+ | `params.targetDomain?` | `string` | Target domain to be encoded in the query |
163
+
164
+ #### Returns
165
+
166
+ [`NameQuery`](../index.md#namequery)
167
+
168
+ The generated name query
169
+
170
+ ___
171
+
172
+ ### formQueryByUsernameAndId
173
+
174
+ ▸ **formQueryByUsernameAndId**(`params`): [`NameQuery`](../index.md#namequery)
175
+
176
+ Creates a name query by username and ID
177
+
178
+ #### Parameters
179
+
180
+ | Name | Type | Description |
181
+ | :------ | :------ | :------ |
182
+ | `params` | `Object` | Parameters for creating the query |
183
+ | `params.username` | `string` | Username to be encoded in the query |
184
+ | `params.id` | `string` | ID to be encoded in the query |
185
+ | `params.domainName` | `string` | Domain name to be encoded in the query |
186
+ | `params.targetDomain?` | `string` | Target domain to be encoded in the query |
187
+
188
+ #### Returns
189
+
190
+ [`NameQuery`](../index.md#namequery)
191
+
192
+ The generated name query
193
+
194
+ ___
195
+
196
+ ### formQueryByFullDetails
197
+
198
+ ▸ **formQueryByFullDetails**(`params`): [`NameQuery`](../index.md#namequery)
199
+
200
+ Creates a name query with full details
201
+
202
+ #### Parameters
203
+
204
+ | Name | Type | Description |
205
+ | :------ | :------ | :------ |
206
+ | `params` | `Object` | Parameters for creating the query |
207
+ | `params.username` | `string` | Username to be encoded in the query |
208
+ | `params.id` | `string` | ID to be encoded in the query |
209
+ | `params.domainName` | `string` | Domain name to be encoded in the query |
210
+ | `params.targetDomain?` | `string` | Target domain to be encoded in the query |
211
+ | `params.address` | `string` | Address to be encoded in the query |
212
+
213
+ #### Returns
214
+
215
+ [`NameQuery`](../index.md#namequery)
216
+
217
+ The generated name query
@@ -0,0 +1 @@
1
+ TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -0,0 +1,44 @@
1
+ # Class: ApiError
2
+
3
+ ## Hierarchy
4
+
5
+ - `Error`
6
+
7
+ ↳ **`ApiError`**
8
+
9
+ ## Table of contents
10
+
11
+ ### Constructors
12
+
13
+ - [constructor](ApiError.md#constructor)
14
+
15
+ ### Properties
16
+
17
+ - [status](ApiError.md#status)
18
+
19
+ ## Constructors
20
+
21
+ ### constructor
22
+
23
+ • **new ApiError**(`message`, `options?`): [`ApiError`](ApiError.md)
24
+
25
+ #### Parameters
26
+
27
+ | Name | Type |
28
+ | :------ | :------ |
29
+ | `message` | `string` |
30
+ | `options?` | [`ApiErrorOptions`](../interfaces/ApiErrorOptions.md) |
31
+
32
+ #### Returns
33
+
34
+ [`ApiError`](ApiError.md)
35
+
36
+ #### Overrides
37
+
38
+ Error.constructor
39
+
40
+ ## Properties
41
+
42
+ ### status
43
+
44
+ • **status**: `undefined` \| `number`