Skip to content

Commit

Permalink
Asset Store Adjustment (#122)
Browse files Browse the repository at this point in the history
* wallet entry search minor modification MC-144

* downgrade using syntax statement to C# 7..3

* codestyle adjustment

* text mesh pro guide removed

* textmeshpro folder renamed for the sake of shader compilation error fix

* C# warnings cleanup (required by the asset store)

* asset store adjustment in progress

* remove unused packages in accordance with asset store requirements

* version update in the player settings

* remove unused shaders from text mesh pro assets

* third party notices file

* third party notices meta

* third party notices extended

* preparation python script completed

* replace JsonUtility with Newtonsoft

* modify preparation script

* third party notices file added

* wallet entry search minor modification MC-144 (#121)

* wallet entry search minor modification MC-144

* downgrade using syntax statement to C# 7..3

* codestyle adjustment

* constructor call

* wallet entry search minor modification MC-144

* codestyle adjustment

* text mesh pro guide removed

* textmeshpro folder renamed for the sake of shader compilation error fix

* C# warnings cleanup (required by the asset store)

* asset store adjustment in progress

* remove unused packages in accordance with asset store requirements

* version update in the player settings

* remove unused shaders from text mesh pro assets

* third party notices file

* third party notices meta

* third party notices extended

* preparation python script completed

* replace JsonUtility with Newtonsoft

* modify preparation script

* third party notices file added

* explicit constructor call

* rename scripts back to runtime

* preparation python script extended

* dto namespaces adjustment

* namespace missing fix + unused assembly reference fixed
  • Loading branch information
Antivortex authored Apr 14, 2023
1 parent 462b4a4 commit 4199801
Show file tree
Hide file tree
Showing 186 changed files with 493 additions and 3,081 deletions.
1 change: 0 additions & 1 deletion Assets/MirageSDK/Examples/MirageSDK.Examples.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"MirageSDK.Core.Infrastructure",
"MirageSDK.Data",
"MirageSDK.Examples.WebGlLogin",
"MirageSDK.OpenSea",
"MirageSDK.Utils",
"MirageSDK.WebGL",
"MirageSDK.BlockchainUtils",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ GameObject:
- component: {fileID: 4424874319438181734}
- component: {fileID: 4732069687732793963}
m_Layer: 5
m_Name: WalletButton
m_Name: WebGLWalletButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand Down
6 changes: 6 additions & 0 deletions Assets/MirageSDK/Examples/Scenes/UseCaseIndex.unity
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
Expand Down Expand Up @@ -198,6 +199,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
Expand Down Expand Up @@ -293,6 +295,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
Expand Down Expand Up @@ -327,6 +330,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
Expand Down Expand Up @@ -359,6 +363,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
Expand Down Expand Up @@ -390,6 +395,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
Expand Down
File renamed without changes.
File renamed without changes.
19 changes: 11 additions & 8 deletions Assets/MirageSDK/Examples/Scripts/DTO/ApprovalForAllDTO.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("ApprovalForAll")]
public class ApprovalForAllEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("address", "account", 1, true)]
public string Account { get; set; }
[Event("ApprovalForAll")]
public class ApprovalForAllEventDTO : EventDTOBase
{
[Parameter("address", "account", 1, true)]
public string Account { get; set; }

[Parameter("address", "operator", 2, true)]
public string Operator { get; set; }
[Parameter("address", "operator", 2, true)]
public string Operator { get; set; }

[Parameter("bool", "approved", 3, false)]
public bool Approved { get; set; }
[Parameter("bool", "approved", 3, false)]
public bool Approved { get; set; }
}
}
23 changes: 13 additions & 10 deletions Assets/MirageSDK/Examples/Scripts/DTO/FinishedRentEventDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("FinishedRent")]
public class FinishedRentEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("uint256", "tokenId", 1, true)]
public BigInteger TokenId { get; set; }
[Event("FinishedRent")]
public class FinishedRentEventDTO : EventDTOBase
{
[Parameter("uint256", "tokenId", 1, true)]
public BigInteger TokenId { get; set; }

[Parameter("address", "lord", 2, true)]
public string Lord { get; set; }
[Parameter("address", "lord", 2, true)]
public string Lord { get; set; }

[Parameter("address", "renter", 3, true)]
public string Renter { get; set; }
[Parameter("address", "renter", 3, true)]
public string Renter { get; set; }

[Parameter("uint256", "expiresAt", 4, false)]
public BigInteger ExpiresAt { get; set; }
[Parameter("uint256", "expiresAt", 4, false)]
public BigInteger ExpiresAt { get; set; }
}
}
19 changes: 11 additions & 8 deletions Assets/MirageSDK/Examples/Scripts/DTO/GlassesChangedDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("GlassesChanged")]
public class GlassesChangedEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }
[Event("GlassesChanged")]
public class GlassesChangedEventDTO : EventDTOBase
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }

[Parameter("uint256", "oldGlassesId", 2, false)]
public BigInteger OldGlassesId { get; set; }
[Parameter("uint256", "oldGlassesId", 2, false)]
public BigInteger OldGlassesId { get; set; }

[Parameter("uint256", "newGlassesId", 3, false)]
public BigInteger NewGlassesId { get; set; }
[Parameter("uint256", "newGlassesId", 3, false)]
public BigInteger NewGlassesId { get; set; }
}
}
19 changes: 11 additions & 8 deletions Assets/MirageSDK/Examples/Scripts/DTO/HatChangedEventDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("HatChanged")]
public class HatChangedEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }
[Event("HatChanged")]
public class HatChangedEventDTO : EventDTOBase
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }

[Parameter("uint256", "oldHatId", 2, false)]
public BigInteger OldHatId { get; set; }
[Parameter("uint256", "oldHatId", 2, false)]
public BigInteger OldHatId { get; set; }

[Parameter("uint256", "newHatId", 3, false)]
public BigInteger NewHatId { get; set; }
[Parameter("uint256", "newHatId", 3, false)]
public BigInteger NewHatId { get; set; }
}
}
23 changes: 13 additions & 10 deletions Assets/MirageSDK/Examples/Scripts/DTO/RentedEventDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("Rented")]
public class RentedEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("uint256", "tokenId", 1, true)]
public BigInteger TokenId { get; set; }
[Event("Rented")]
public class RentedEventDTO : EventDTOBase
{
[Parameter("uint256", "tokenId", 1, true)]
public BigInteger TokenId { get; set; }

[Parameter("address", "lord", 2, true)]
public string Lord { get; set; }
[Parameter("address", "lord", 2, true)]
public string Lord { get; set; }

[Parameter("address", "renter", 3, true)]
public string Renter { get; set; }
[Parameter("address", "renter", 3, true)]
public string Renter { get; set; }

[Parameter("uint256", "expiresAt", 4, false)]
public BigInteger ExpiresAt { get; set; }
[Parameter("uint256", "expiresAt", 4, false)]
public BigInteger ExpiresAt { get; set; }
}
}
11 changes: 7 additions & 4 deletions Assets/MirageSDK/Examples/Scripts/DTO/SafeMintedEventDTO.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("SafeMinted")]
public class SafeMintedEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("address", "to", 1, true)]
public string To { get; set; }
[Event("SafeMinted")]
public class SafeMintedEventDTO : EventDTOBase
{
[Parameter("address", "to", 1, true)]
public string To { get; set; }
}
}
19 changes: 11 additions & 8 deletions Assets/MirageSDK/Examples/Scripts/DTO/ShoesChangedDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
using MirageSDK.Data;
using Nethereum.ABI.FunctionEncoding.Attributes;

[Event("ShoesChanged")]
public class ShoesChangedEventDTO : EventDTOBase
namespace MirageSDK.DTO
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }
[Event("ShoesChanged")]
public class ShoesChangedEventDTO : EventDTOBase
{
[Parameter("uint256", "characterId", 1, true)]
public BigInteger CharacterId { get; set; }

[Parameter("uint256", "oldShoesId", 2, false)]
public BigInteger OldShoesId { get; set; }
[Parameter("uint256", "oldShoesId", 2, false)]
public BigInteger OldShoesId { get; set; }

[Parameter("uint256", "newShoesId", 3, false)]
public BigInteger NewShoesId { get; set; }
[Parameter("uint256", "newShoesId", 3, false)]
public BigInteger NewShoesId { get; set; }
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private async void OpenUpdateBsc()

private async void OpenUpdateBscTestnet()
{
_ethHandler.WalletUpdateEthChain(ChainInfo.BscTestnet.ToEthUpdate());
await _ethHandler.WalletUpdateEthChain(ChainInfo.BscTestnet.ToEthUpdate());
UpdateUILogs(String.Format(ChainUpdatedMessage, ChainInfo.BscTestnet.chainName));
}

Expand Down
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 4199801

Please sign in to comment.