Commit d312c74
committed
- Continued improving NFT API, fixing bugs etc.
- Added new PlacedOn property to IOASISGeoSpatialNFT interface in OASIS.API.Core.
- Changed OffChainProvider and OnChainProvider on IMintNFTTransactionRequest/MintNFTTransactionReques in tOASIS.API.Core to use EnumValue<ProviderType instead of ProviderType (is now wrapped in EnumValue) so makes it easier to work with and display enum names etc.
- Addded MintedOn property to IOASISNFT interface in OASIS.API.Core.
- Started fixing the GenerateKeyPair function in KeyManger in OASIS.API.Core to use the correct prefix depending on what blockchain/provider it is generating the public/private keys for. Needs finishing...
- Updated LinkProviderPublicKeyToAvatar function in OASIS.API.Core so it now also sets the WalletAddress to the public key. This will eventually calcualte and set the correct WalletAddress (derived from the public key).
- Added new PlacedOn property to OASISGeoSpatialNFT object in OASIS.API.Core.
- Addded MintedOn property to OASISNFT interface in OASIS.API.Core.
- Updated MintNftAsync method in NFTManger to work with the now wrapped EnumValues. Also added additional error handling and reporting and fixed a bug.
- Updated MintNft method in NFTManger to work with the now wrapped EnumValues.
- Changed the providerType param to an optional one that defaults to ProviderType.Default in the functions LoadNftAsync, LoadNft, LoadAllNFTsForAvatarAsync, LoadAllNFTsForAvatar, LoadAllNFTsForMintAddressAsync, LoadAllNFTsForMintAddress, LoadAllGeoNFTsForAvatarAsync, LoadAllGeoNFTsForAvatar, LoadAllGeoNFTsForMintAddressAsync, LoadAllGeoNFTsForMintAddress, LoadAllNFTsAsync, LoadAllNFTs, LoadAllGeoNFTsAsyn &, LoadAllGeoNFTs in NFTManger in OASIS.API.ONODE.Core.
- Updated CreateOASISNFT function in NFTManger to set the new MintedOn property in OASIS.API.ONODE.Core.
- Updated CreateGeoSpatialNFT function in NFTManger to set the new MintedOn and PlacedOn properties in OASIS.API.ONODE.Core.
- Updated the CreateNFTMetaDataHolon function in NFTManger to set the new NFT.MintedOn metadata in OASIS.API.ONODE.Core as well as the Name property now works with the EnumValue property type wrap.
- Updated the CreateNFTMetaDataHolon function in NFTManger to set the new NFT.MintedOn metadata in OASIS.API.ONODE.Core.
- Added GEONFT.PlacedByAvatarId and GEONFT.PlacedOn metadata to CreateGeoSpatialNFTMetaDataHolon function in OASIS.API.ONODE.Core.
- Fixed a bug in DecodeNFTMetaData so the NFT metadata is now cast to a OASISNFT rather than IOASISNFT. Also fixed another bug where holon.MetaData was being used instead of holonRest.Result.MetaData. Finally fixed another bug where the metadata key being used was "OASISNFT" rather than "NFT.OASISNFT".
- Fixed a bug in DecodeGeoNFTMetaData so the NFT metadata is now cast to a OASISGeoSpatialNFT rather than IOASISGeoSpatialNFT. Also fixed another bug where holon.MetaData was being used instead of holonRest.Result.MetaData. Finally fixed another bug where the metadata key being used was "OASISGEONFT" rather than "GEONFT.OASISGEONFT".
- Updated MintNftAsync function in NFTController in OASIS.API.ONODE.WebApi to always set the MintedByAvatarId from the logged in avatar/user rather than allowing it to be passed in (improves security so people can not pretend to mint the NFT from another avatar).
- Started fixing the functions/endpoints in NFTController to comform to OASIS standards. WIP... So far LoadNftByIdAsync, LoadNftByHashAsync & LoadAllNFTsForAvatarAsync have been fixed by adding additonal overloads so ProviderType can be passed in or if none is passed in it will use the current defaullt provider so will now work the same as the Avatar and Data API's...
- Fided a bug in AttachAccountToContext function in JwtMiddleware in OASIS.API.ONODE.WebApi.
- Removed MintWalletAddress and MintedByAvatarId proeprties from MintNFTTransactionRequest in OASIS.API.ONODE.WebApi because these are now retreived from the logged in avatar/user.1 parent bc443d1 commit d312c74
14 files changed
Lines changed: 166 additions & 97 deletions
File tree
- NextGenSoftware.OASIS.API.Core
- Interfaces
- NFT
- GeoSpatialNFT
- Requests
- Providers
- Managers
- Objects
- NFT/Requests
- NextGenSoftware.OASIS.API.ONODE.Core/Managers
- NextGenSoftware.OASIS.API.ONODE.WebAPI
- Controllers
- Middleware
- NextGenSoftware.OASIS.API.ONode.WebAPI
- Models/NFTs
- NextGenSoftware.OASIS.API.Providers.MongoOASIS/Repositories
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
279 | 293 | | |
280 | 294 | | |
281 | 295 | | |
282 | | - | |
283 | | - | |
| 296 | + | |
| 297 | + | |
284 | 298 | | |
285 | 299 | | |
286 | 300 | | |
287 | 301 | | |
288 | | - | |
| 302 | + | |
| 303 | + | |
289 | 304 | | |
290 | 305 | | |
291 | 306 | | |
| |||
303 | 318 | | |
304 | 319 | | |
305 | 320 | | |
| 321 | + | |
306 | 322 | | |
307 | 323 | | |
308 | 324 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
0 commit comments