Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in angor project class #222

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public AngorMongoData(ILogger<AngorMongoDb> dbLogger, SyncConnection connection,
return new ProjectIndexerData
{
FounderKey = project.FounderKey,
NostrEventId = project.NosrtEventId,
NostrEventId = project.NostrEventId,
ProjectIdentifier = project.AngorKey,
TrxId = project.TransactionId,
TotalInvestmentsCount = total,
Expand Down Expand Up @@ -236,7 +236,7 @@ public async Task<QueryResult<ProjectIndexerData>> GetProjectsAsync(int? offset,
Items = projects.Select(_ => new ProjectIndexerData
{
FounderKey = _.FounderKey,
NostrEventId =_.NosrtEventId,
NostrEventId =_.NostrEventId,
ProjectIdentifier = _.AngorKey,
TrxId = _.TransactionId,
CreatedOnBlock = _.BlockIndex
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Project
public string AngorKey { get; set; }
public string FounderKey { get; set; }

public string NosrtEventId { get; set; }
public string NostrEventId { get; set; }
public string AngorKeyScriptHex { get; set; }
public long BlockIndex { get; set; }
public string TransactionId { get; set; } //TODO check if this should be a lookup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@
AngorKeyScriptHex = angorKey.WitHash.ScriptPubKey.ToHex(),
BlockIndex = output.BlockIndex,
FounderKey = parsedData.FounderPubKey.ToHex(),
NosrtEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty,
NostrEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty,
AddressOnFeeOutput = angorFeeOutput.Address
};
}

private class DataFromOps
{
public PubKey FounderPubKey { get; set; }

Check warning on line 150 in src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs

View workflow job for this annotation

GitHub Actions / buildAndUnitTest (macos-latest)

Non-nullable property 'FounderPubKey' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public short keyType { get; set; }
public string NostrEventId { get; set; }

Check warning on line 152 in src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs

View workflow job for this annotation

GitHub Actions / buildAndUnitTest (macos-latest)

Non-nullable property 'NostrEventId' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

public bool TryParse(IList<Op> ops)
{
Expand Down
Loading