Skip to content

Commit da7717b

Browse files
committed
Upgraded NFT API so now allows updating existing NFTs as well as new defaults
1 parent 32d32b6 commit da7717b

10 files changed

Lines changed: 60 additions & 623 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,3 +1441,4 @@ STAR ODK/NextGenSoftware.OASIS.STAR.CLI/publish/installers/star-cli-3.4.0-win-x6
14411441
STAR ODK/NextGenSoftware.OASIS.STAR.STARDNA/DNA/OASIS_DNA.json
14421442
OASIS Architecture/NextGenSoftware.OASIS.API.DNA/OASIS_DNA.json
14431443
OASIS Architecture/NextGenSoftware.OASIS.API.DNA/OASIS_DNA.json
1444+
/OASIS Architecture/NextGenSoftware.OASIS.API.DNA/OASIS_DNA.json

OASIS Architecture/NextGenSoftware.OASIS.API.Core/Interfaces/NFT/Requests/IUpdateWeb4NFTRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace NextGenSoftware.OASIS.API.Core.Interfaces.NFT.Requests
88
public interface IUpdateWeb4NFTRequest
99
{
1010
Guid Id { get; set; }
11+
Guid MintedByAvatarId { get; set; }
1112
string Description { get; set; }
1213
decimal? Discount { get; set; }
1314
byte[] Image { get; set; }
@@ -41,4 +42,4 @@ public interface IUpdateWeb4NFTRequest
4142
public IList<string> UpdateChildWebNFTIds { get; set; } //Only update the web nfts with these ids.
4243
public EnumValue<ProviderType> ProviderType { get; set; }
4344
}
44-
}
45+
}

OASIS Architecture/NextGenSoftware.OASIS.API.Core/Objects/NFT/Requests/MintWeb3NFTRequest.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ public class MintWeb3NFTRequest : MintNFTRequestBase, IMintWeb3NFTRequest
2121
public NFTMetaDataMergeStrategy NFTMetaDataMergeStrategy { get; set; } = NFTMetaDataMergeStrategy.Merge; //Defines how the Web3NFT meta data will be merged with the parent WEB4 OASIS NFT meta data.
2222

2323
//If these are not set it will use the values defined in the parent WEB4 OASIS NFT for each Web3NFT.
24-
public bool? WaitTillNFTMinted { get; set; }
25-
public int? WaitForNFTToMintInSeconds { get; set; }
26-
public int? AttemptToMintEveryXSeconds { get; set; }
27-
public bool? WaitTillNFTVerified { get; set; }
28-
public int? WaitForNFTToVerifyInSeconds { get; set; }
29-
public int? AttemptToVerifyEveryXSeconds { get; set; }
30-
public bool? WaitTillNFTSent { get; set; }
31-
public int? WaitForNFTToSendInSeconds { get; set; }
32-
public int? AttemptToSendEveryXSeconds { get; set; }
24+
public bool? WaitTillNFTMinted { get; set; } = true;
25+
public int? WaitForNFTToMintInSeconds { get; set; } = 180;
26+
public int? AttemptToMintEveryXSeconds { get; set; } = 1;
27+
public bool? WaitTillNFTVerified { get; set; } = true;
28+
public int? WaitForNFTToVerifyInSeconds { get; set; } = 180;
29+
public int? AttemptToVerifyEveryXSeconds { get; set; } = 1;
30+
public bool? WaitTillNFTSent { get; set; } = true;
31+
public int? WaitForNFTToSendInSeconds { get; set; } = 180;
32+
public int? AttemptToSendEveryXSeconds { get; set; } = 1;
3333
}
3434
}

OASIS Architecture/NextGenSoftware.OASIS.API.Core/Objects/NFT/Requests/MintWeb4NFTRequest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class MintWeb4NFTRequest : MintNFTRequestBase, IMintWeb4NFTRequest
2323
public bool WaitTillNFTMinted { get; set; } = true;
2424
public int WaitForNFTToMintInSeconds { get; set; } = 180;
2525
public int AttemptToMintEveryXSeconds { get; set; } = 1;
26+
public bool? WaitTillNFTVerified { get; set; } = true;
27+
public int? WaitForNFTToVerifyInSeconds { get; set; } = 180;
28+
public int? AttemptToVerifyEveryXSeconds { get; set; } = 1;
2629
public bool WaitTillNFTSent { get; set; } = true;
2730
public int WaitForNFTToSendInSeconds { get; set; } = 180;
2831
public int AttemptToSendEveryXSeconds { get; set; } = 1;

OASIS Architecture/NextGenSoftware.OASIS.API.Core/Objects/NFT/Requests/UpdateWeb4NFTRequest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ namespace NextGenSoftware.OASIS.API.Core.Objects.NFT.Requests
88
{
99
public class UpdateWeb4NFTRequest : IUpdateWeb4NFTRequest
1010
{
11-
public Guid Id { get; set; }
11+
public Guid Id { get; set; }
12+
public Guid MintedByAvatarId { get; set; }
1213
public Guid ModifiedByAvatarId { get; set; }
1314
public string Title { get; set; }
1415
public string Description { get; set; }
@@ -63,4 +64,4 @@ public class UpdateWeb4NFTRequest : IUpdateWeb4NFTRequest
6364
//public int WaitForNFTToSendInSeconds { get; set; } = 60;
6465
//public int AttemptToSendEveryXSeconds { get; set; } = 1;
6566
}
66-
}
67+
}

0 commit comments

Comments
 (0)