From 430fcfb3d390812e2c9092656f9087f75317a16c Mon Sep 17 00:00:00 2001 From: tknott95 Date: Mon, 27 Mar 2023 07:49:07 -0600 Subject: [PATCH 01/11] Fixes custom editor build error --- src/Blockfrost.io/Editor/ConfigurationEditor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Blockfrost.io/Editor/ConfigurationEditor.cs b/src/Blockfrost.io/Editor/ConfigurationEditor.cs index 42fa29a..e24111d 100644 --- a/src/Blockfrost.io/Editor/ConfigurationEditor.cs +++ b/src/Blockfrost.io/Editor/ConfigurationEditor.cs @@ -2,8 +2,10 @@ using System.Linq; using UnityEditor; +#if UNITY_EDITOR using UnityEngine; + [CustomEditor(typeof(Blockfrost.Configuration))] public class ConfigurationEditor : Editor { public override void OnInspectorGUI() { @@ -31,3 +33,4 @@ public override void OnInspectorGUI() { EditorUtility.SetDirty(target); } } +#endif From 6c5a5ebe40202d685dee912c40a8eb0caccbb625 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 08:48:33 -0600 Subject: [PATCH 02/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37c19a4..ac3700e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ We're going to publish this package to the Asset Story in the near future. Client can be installed using Unity Package Manager using git. * Go to Package Manager, select *Add package from git URL...* -* Enter `https://github.com/fivebinaries/cardano-unity.git?path=src/Blockfrost.io` +* Enter `https://github.com/Tknott95/cardano-unity.git?path=src/Blockfrost.io` NOTE: Dependancy has to be installed manually if they are missing, see [Installing UniTask](https://github.com/Cysharp/UniTask#install-via-git-url). From 389af1e721c23239eebb4a6caf02ded4461c6065 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 09:20:29 -0600 Subject: [PATCH 03/11] Preview instead of Testnet in Configuration.cs --- src/Blockfrost.io/Scripts/Configuration.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Blockfrost.io/Scripts/Configuration.cs b/src/Blockfrost.io/Scripts/Configuration.cs index a090d92..c2121f3 100644 --- a/src/Blockfrost.io/Scripts/Configuration.cs +++ b/src/Blockfrost.io/Scripts/Configuration.cs @@ -56,9 +56,13 @@ public class Configuration : ScriptableObject { Url = "cardano-mainnet.blockfrost.io/api/v0", }, new Server{ - Network = "Testnet", - Url = "cardano-testnet.blockfrost.io/api/v0", + Network = "Preview", + Url = "cardano-preview.blockfrost.io/api/v0", }, + // new Server{ + // Network = "Testnet", + // Url = "cardano-testnet.blockfrost.io/api/v0", + // }, }}, { MilkomedaApi, new List{ new Server{ From 2a440cac706a7d29a04cb1886870e4cd91d505ec Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 09:23:24 -0600 Subject: [PATCH 04/11] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac3700e..a36c3f9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,12 @@ -# Cardano games assets for Unity +# Cardano games assets for Unity (fork) + +### SIMPLE CHANGES + * wrapped an if around a custom editor script to allow for builds as prior you would get an error building with the custom editor script. + * set a preview option instead of a testnet option for the blockfrost api + This repository contains the code and configuration files of Cardano game assets for Unity. From 7485e296b33c8a3ba6393cd341ed2bd63ae03789 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:36:32 -0600 Subject: [PATCH 05/11] Added all OnchainMetadata in Model.cs --- src/Blockfrost.io/Scripts/Model.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Blockfrost.io/Scripts/Model.cs b/src/Blockfrost.io/Scripts/Model.cs index 5642d87..831d9f9 100644 --- a/src/Blockfrost.io/Scripts/Model.cs +++ b/src/Blockfrost.io/Scripts/Model.cs @@ -1720,6 +1720,11 @@ public class OnchainMetadata { /// Name of the asset /// public string name; + public string image; + public string description + public string url + public string logo + public string ticker } From 119b6a72a835773254f3f7a1db0d3e910a1bbe44 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:39:12 -0600 Subject: [PATCH 06/11] Finished OnChainMetadata in Model.cs --- src/Blockfrost.io/Scripts/Model.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Blockfrost.io/Scripts/Model.cs b/src/Blockfrost.io/Scripts/Model.cs index 831d9f9..1d123f3 100644 --- a/src/Blockfrost.io/Scripts/Model.cs +++ b/src/Blockfrost.io/Scripts/Model.cs @@ -1720,12 +1720,26 @@ public class OnchainMetadata { /// Name of the asset /// public string name; + /// + /// Ipfs image of the asset + /// public string image; + /// + /// Description of the asset + /// public string description + /// + /// Url for a fungible + /// public string url + // + /// Logo for a fungible + /// public string logo + /// + /// Ticker for a fungible + /// public string ticker - } [Serializable] From 5687ae619d64bb17e36d60d56861b6fa51f2705e Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:41:10 -0600 Subject: [PATCH 07/11] Finished OnChainMetadata in Model.cs --- src/Blockfrost.io/Scripts/Model.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Blockfrost.io/Scripts/Model.cs b/src/Blockfrost.io/Scripts/Model.cs index 1d123f3..3b7e938 100644 --- a/src/Blockfrost.io/Scripts/Model.cs +++ b/src/Blockfrost.io/Scripts/Model.cs @@ -1727,19 +1727,19 @@ public class OnchainMetadata { /// /// Description of the asset /// - public string description + public string description; /// /// Url for a fungible /// - public string url + public string url; // /// Logo for a fungible /// - public string logo + public string logo; /// /// Ticker for a fungible /// - public string ticker + public string ticker; } [Serializable] From aa664a60a89b9ff4129a09b0053c0653e3520e69 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:41:41 -0600 Subject: [PATCH 08/11] Finished OnChainMetadata in Model.cs --- src/Blockfrost.io/Scripts/Model.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Blockfrost.io/Scripts/Model.cs b/src/Blockfrost.io/Scripts/Model.cs index 3b7e938..663d59e 100644 --- a/src/Blockfrost.io/Scripts/Model.cs +++ b/src/Blockfrost.io/Scripts/Model.cs @@ -1740,6 +1740,7 @@ public class OnchainMetadata { /// Ticker for a fungible /// public string ticker; + } [Serializable] From 7cdc7f627450a5d71c256e781ccf1b11c42e4d60 Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:43:56 -0600 Subject: [PATCH 09/11] Update README.md --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index a36c3f9..b04168d 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,7 @@ -# Cardano games assets for Unity (fork) - -### SIMPLE CHANGES - * wrapped an if around a custom editor script to allow for builds as prior you would get an error building with the custom editor script. - * set a preview option instead of a testnet option for the blockfrost api - +# Cardano games assets for Unity This repository contains the code and configuration files of Cardano game assets for Unity. From fef9ef19da49473f1404aef6587c28e9631d6ebf Mon Sep 17 00:00:00 2001 From: TKnott Date: Sun, 2 Jul 2023 11:45:19 -0600 Subject: [PATCH 10/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b04168d..62fd7a1 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ We're going to publish this package to the Asset Story in the near future. Client can be installed using Unity Package Manager using git. * Go to Package Manager, select *Add package from git URL...* -* Enter `https://github.com/Tknott95/cardano-unity.git?path=src/Blockfrost.io` +* Enter `https://github.com/fivebinaries/cardano-unity.git?path=src/Blockfrost.io` NOTE: Dependancy has to be installed manually if they are missing, see [Installing UniTask](https://github.com/Cysharp/UniTask#install-via-git-url). From 930fb25d12e61dd5127dcb81433bbccc3d7258a1 Mon Sep 17 00:00:00 2001 From: tknott95 Date: Sun, 2 Jul 2023 11:49:32 -0600 Subject: [PATCH 11/11] Custom editor build error fix. ConfigurationEditor.cs --- src/Blockfrost.io/Editor/ConfigurationEditor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Blockfrost.io/Editor/ConfigurationEditor.cs b/src/Blockfrost.io/Editor/ConfigurationEditor.cs index e24111d..553c7f0 100644 --- a/src/Blockfrost.io/Editor/ConfigurationEditor.cs +++ b/src/Blockfrost.io/Editor/ConfigurationEditor.cs @@ -5,7 +5,6 @@ #if UNITY_EDITOR using UnityEngine; - [CustomEditor(typeof(Blockfrost.Configuration))] public class ConfigurationEditor : Editor { public override void OnInspectorGUI() {