@peeramid-labs/sdk 2.0.2 → 2.0.3
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/.changeset/silly-swans-rescue.md +5 -0
- package/docs/index.md +12 -1
- package/docs/interfaces/MultipassDiamond.md +1258 -0
- package/docs/modules/LibMultipass.md +83 -0
- package/lib.commonjs/abis/CompositeERC1155.d.ts +390 -0
- package/lib.commonjs/abis/CompositeERC1155.d.ts.map +1 -0
- package/lib.commonjs/abis/CompositeERC1155.js +503 -0
- package/lib.commonjs/abis/CompositeERC1155.js.map +1 -0
- package/lib.commonjs/abis/DNSFacet.d.ts +844 -0
- package/lib.commonjs/abis/DNSFacet.d.ts.map +1 -0
- package/lib.commonjs/abis/DNSFacet.js +1082 -0
- package/lib.commonjs/abis/DNSFacet.js.map +1 -0
- package/lib.commonjs/abis/IRankifyInstanceCommons.d.ts +88 -0
- package/lib.commonjs/abis/IRankifyInstanceCommons.d.ts.map +1 -0
- package/lib.commonjs/abis/IRankifyInstanceCommons.js +115 -0
- package/lib.commonjs/abis/IRankifyInstanceCommons.js.map +1 -0
- package/lib.commonjs/abis/MultipassDiamond.d.ts +990 -0
- package/lib.commonjs/abis/MultipassDiamond.d.ts.map +1 -0
- package/lib.commonjs/abis/MultipassDiamond.js +1273 -0
- package/lib.commonjs/abis/MultipassDiamond.js.map +1 -0
- package/lib.commonjs/abis/MultipassInit.d.ts +17 -0
- package/lib.commonjs/abis/MultipassInit.d.ts.map +1 -0
- package/lib.commonjs/abis/MultipassInit.js +25 -0
- package/lib.commonjs/abis/MultipassInit.js.map +1 -0
- package/lib.commonjs/abis/RankifyInstanceGameOwnersFacet.d.ts +83 -0
- package/lib.commonjs/abis/RankifyInstanceGameOwnersFacet.d.ts.map +1 -0
- package/lib.commonjs/abis/RankifyInstanceGameOwnersFacet.js +111 -0
- package/lib.commonjs/abis/RankifyInstanceGameOwnersFacet.js.map +1 -0
- package/lib.commonjs/abis/index.d.ts +11036 -8630
- package/lib.commonjs/abis/index.d.ts.map +1 -1
- package/lib.commonjs/abis/index.js +27 -3
- package/lib.commonjs/abis/index.js.map +1 -1
- package/lib.esm/abis/CompositeERC1155.d.ts +390 -0
- package/lib.esm/abis/CompositeERC1155.d.ts.map +1 -0
- package/lib.esm/abis/CompositeERC1155.js +500 -0
- package/lib.esm/abis/CompositeERC1155.js.map +1 -0
- package/lib.esm/abis/DNSFacet.d.ts +844 -0
- package/lib.esm/abis/DNSFacet.d.ts.map +1 -0
- package/lib.esm/abis/DNSFacet.js +1079 -0
- package/lib.esm/abis/DNSFacet.js.map +1 -0
- package/lib.esm/abis/IRankifyInstanceCommons.d.ts +88 -0
- package/lib.esm/abis/IRankifyInstanceCommons.d.ts.map +1 -0
- package/lib.esm/abis/IRankifyInstanceCommons.js +112 -0
- package/lib.esm/abis/IRankifyInstanceCommons.js.map +1 -0
- package/lib.esm/abis/MultipassDiamond.d.ts +990 -0
- package/lib.esm/abis/MultipassDiamond.d.ts.map +1 -0
- package/lib.esm/abis/MultipassDiamond.js +1270 -0
- package/lib.esm/abis/MultipassDiamond.js.map +1 -0
- package/lib.esm/abis/MultipassInit.d.ts +17 -0
- package/lib.esm/abis/MultipassInit.d.ts.map +1 -0
- package/lib.esm/abis/MultipassInit.js +22 -0
- package/lib.esm/abis/MultipassInit.js.map +1 -0
- package/lib.esm/abis/RankifyInstanceGameOwnersFacet.d.ts +83 -0
- package/lib.esm/abis/RankifyInstanceGameOwnersFacet.d.ts.map +1 -0
- package/lib.esm/abis/RankifyInstanceGameOwnersFacet.js +108 -0
- package/lib.esm/abis/RankifyInstanceGameOwnersFacet.js.map +1 -0
- package/lib.esm/abis/index.d.ts +11036 -8630
- package/lib.esm/abis/index.d.ts.map +1 -1
- package/lib.esm/abis/index.js +18 -0
- package/lib.esm/abis/index.js.map +1 -1
- package/package.json +1 -1
- package/.changeset/.changeset/config.json +0 -16
- package/docs/docs/.nojekyll +0 -1
- package/docs/docs/classes/ApiError.md +0 -44
- package/docs/docs/classes/InstanceBase.md +0 -341
- package/docs/docs/classes/InstancePlayer.md +0 -568
- package/docs/docs/classes/MAODistributorClient.md +0 -307
- package/docs/docs/classes/Multipass.md +0 -276
- package/docs/docs/classes/MultipassBase.md +0 -217
- package/docs/docs/enums/SearchCriteria.md +0 -29
- package/docs/docs/enums/gameStatusEnum.md +0 -71
- package/docs/docs/index.md +0 -367
- package/docs/docs/interfaces/ApiErrorOptions.md +0 -30
- package/docs/docs/interfaces/MAOInstanceContracts.md +0 -53
- package/docs/docs/interfaces/MAOInstances.md +0 -53
- package/docs/docs/interfaces/RegisterMessage.md +0 -53
- package/docs/docs/interfaces/SignerIdentity.md +0 -35
|
@@ -1,217 +0,0 @@
|
|
|
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
|
|
@@ -1,29 +0,0 @@
|
|
|
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``
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|