@twin.org/nft-rest-client 0.0.1-next.25 → 0.0.1-next.26
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/docs/changelog.md +14 -0
- package/docs/reference/classes/NftClient.md +23 -11
- package/package.json +2 -2
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/nft-rest-client - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.26](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.25...nft-rest-client-v0.0.1-next.26) (2025-04-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use shared store mechanism ([#16](https://github.com/twinfoundation/nft/issues/16)) ([897bc78](https://github.com/twinfoundation/nft/commit/897bc7805248ba1388b2dd03df24c33f1633f344))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/nft-models bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.25](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.24...nft-rest-client-v0.0.1-next.25) (2025-04-17)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -12,9 +12,9 @@ Client for performing NFT through to REST endpoints.
|
|
|
12
12
|
|
|
13
13
|
## Constructors
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Constructor
|
|
16
16
|
|
|
17
|
-
> **new NftClient**(`config`):
|
|
17
|
+
> **new NftClient**(`config`): `NftClient`
|
|
18
18
|
|
|
19
19
|
Create a new instance of NftClient.
|
|
20
20
|
|
|
@@ -28,7 +28,7 @@ The configuration for the client.
|
|
|
28
28
|
|
|
29
29
|
#### Returns
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
`NftClient`
|
|
32
32
|
|
|
33
33
|
#### Overrides
|
|
34
34
|
|
|
@@ -50,15 +50,19 @@ Runtime name for the class.
|
|
|
50
50
|
|
|
51
51
|
### mint()
|
|
52
52
|
|
|
53
|
-
> **mint**\<`T`, `U`\>(`tag`, `immutableMetadata
|
|
53
|
+
> **mint**\<`T`, `U`\>(`tag`, `immutableMetadata?`, `metadata?`, `namespace?`): `Promise`\<`string`\>
|
|
54
54
|
|
|
55
55
|
Mint an NFT.
|
|
56
56
|
|
|
57
57
|
#### Type Parameters
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
##### T
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
`T` = `unknown`
|
|
62
|
+
|
|
63
|
+
##### U
|
|
64
|
+
|
|
65
|
+
`U` = `unknown`
|
|
62
66
|
|
|
63
67
|
#### Parameters
|
|
64
68
|
|
|
@@ -106,9 +110,13 @@ Resolve an NFT.
|
|
|
106
110
|
|
|
107
111
|
#### Type Parameters
|
|
108
112
|
|
|
109
|
-
|
|
113
|
+
##### T
|
|
114
|
+
|
|
115
|
+
`T` = `unknown`
|
|
110
116
|
|
|
111
|
-
|
|
117
|
+
##### U
|
|
118
|
+
|
|
119
|
+
`U` = `unknown`
|
|
112
120
|
|
|
113
121
|
#### Parameters
|
|
114
122
|
|
|
@@ -158,13 +166,15 @@ Nothing.
|
|
|
158
166
|
|
|
159
167
|
### transfer()
|
|
160
168
|
|
|
161
|
-
> **transfer**\<`T`\>(`id`, `recipientIdentity`, `recipientAddress`, `metadata
|
|
169
|
+
> **transfer**\<`T`\>(`id`, `recipientIdentity`, `recipientAddress`, `metadata?`): `Promise`\<`void`\>
|
|
162
170
|
|
|
163
171
|
Transfer an NFT.
|
|
164
172
|
|
|
165
173
|
#### Type Parameters
|
|
166
174
|
|
|
167
|
-
|
|
175
|
+
##### T
|
|
176
|
+
|
|
177
|
+
`T` = `unknown`
|
|
168
178
|
|
|
169
179
|
#### Parameters
|
|
170
180
|
|
|
@@ -212,7 +222,9 @@ Update the data of the NFT.
|
|
|
212
222
|
|
|
213
223
|
#### Type Parameters
|
|
214
224
|
|
|
215
|
-
|
|
225
|
+
##### U
|
|
226
|
+
|
|
227
|
+
`U` = `unknown`
|
|
216
228
|
|
|
217
229
|
#### Parameters
|
|
218
230
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nft-rest-client",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.26",
|
|
4
4
|
"description": "NFT contract implementation which can connect to REST endpoints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
21
|
"@twin.org/nameof": "next",
|
|
22
|
-
"@twin.org/nft-models": "0.0.1-next.
|
|
22
|
+
"@twin.org/nft-models": "0.0.1-next.26",
|
|
23
23
|
"@twin.org/web": "next"
|
|
24
24
|
},
|
|
25
25
|
"main": "./dist/cjs/index.cjs",
|