-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
346 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record ActionPointDocument(Address Address, int Object) : MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record ActionPointDocument(Address Address, int Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record AllRuneDocument(Address Address, AllRuneState Object) | ||
: MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record AllRuneDocument(Address Address, AllRuneState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
using Libplanet.Crypto; | ||
using Libplanet.Types.Assets; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record BalanceDocument(Address Address, FungibleAssetValue Object) | ||
: MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record BalanceDocument(Address Address, FungibleAssetValue Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
/// <summary> | ||
/// Not MongoDB collection, it is a NineChronicles' collection state. | ||
/// </summary> | ||
/// <param name="Object"></param> | ||
public record CollectionDocument(Address Address, CollectionState Object) | ||
: MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record CollectionDocument(Address Address, CollectionState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
[BsonIgnoreExtraElements] | ||
public record CombinationSlotStateDocument( | ||
Address Address, | ||
Address AvatarAddress, | ||
int SlotIndex, | ||
CombinationSlotState Object | ||
) : MimirBsonDocument(Address) { } | ||
CombinationSlotState Object) | ||
: MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record DailyRewardDocument(Address Address, long Object) : MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record DailyRewardDocument(Address Address, long Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
using Lib9c.Models.Items; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record InventoryDocument(Address Address, Inventory Object) : MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record InventoryDocument(Address Address, Inventory Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record ItemSlotDocument(Address Address, ItemSlotState Object) | ||
: MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record ItemSlotDocument(Address Address, ItemSlotState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record PetStateDocument(Address Address, PetState Object) : MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record PetStateDocument(Address Address, PetState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
[BsonIgnoreExtraElements] | ||
public record ProductsStateDocument(Address Address, ProductsState Object, Address AvatarAddress) | ||
: MimirBsonDocument(Address) { } | ||
: MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// using Libplanet.Crypto; | ||
// using Nekoyume.Model.Quest; | ||
// using MongoDB.Bson.Serialization.Attributes; | ||
|
||
// namespace Mimir.MongoDB.Bson; | ||
|
||
// [BsonIgnoreExtraElements] | ||
// public record QuestListDocument(Address Address, QuestList Object) : IMimirBsonDocument(Address) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record RaiderStateDocument(Address Address, RaiderState Object) : MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record RaiderStateDocument(Address Address, RaiderState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
public record RuneSlotDocument(Address Address, RuneSlotState Object) | ||
: MimirBsonDocument(Address) { } | ||
[BsonIgnoreExtraElements] | ||
public record RuneSlotDocument(Address Address, RuneSlotState Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
using Bencodex.Types; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
using Nekoyume.TableData; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
[BsonIgnoreExtraElements] | ||
public record SheetDocument( | ||
Address Address, | ||
ISheet Object, | ||
string Name, | ||
IValue RawState | ||
) : MimirBsonDocument(Address); | ||
IValue RawState) | ||
: MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// using Libplanet.Crypto; | ||
// using Nekoyume.Model.Stake; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
using Nekoyume.Model.Stake; | ||
|
||
// namespace Mimir.MongoDB.Bson; | ||
namespace Mimir.MongoDB.Bson; | ||
|
||
// public record StakeDocument(Address Address, StakeStateV2 Object) : IMimirBsonDocument(Address) { } | ||
// [BsonIgnoreExtraElements] | ||
// public record StakeDocument(Address Address, StakeStateV2 Object) : MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
[BsonIgnoreExtraElements] | ||
public record WorldBossKillRewardRecordDocument( | ||
Address Address, | ||
Address AvatarAddress, | ||
WorldBossKillRewardRecord Object | ||
) : MimirBsonDocument(Address) { } | ||
WorldBossKillRewardRecord Object) | ||
: MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using Lib9c.Models.States; | ||
using Libplanet.Crypto; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace Mimir.MongoDB.Bson; | ||
|
||
[BsonIgnoreExtraElements] | ||
public record WorldBossStateDocument( | ||
Address Address, | ||
int RaidId, | ||
WorldBossState Object | ||
) : MimirBsonDocument(Address) { } | ||
WorldBossState Object) | ||
: MimirBsonDocument(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.