From b0fd74fc4bc900c899c61c823676709c5db5cd5e Mon Sep 17 00:00:00 2001 From: James McGhee Date: Fri, 21 May 2021 11:24:30 +0100 Subject: [PATCH] 1.1 Update - Updated token definition to support animations - Updated token definition to support attributes - Deprecated token definition properties ... should use attributes and animations now --- Package/Editor/EditorUtilities.cs | 67 ++++++++++++++++--- Package/Runtime/DataModel/TokenAttributes.cs | 12 ++++ .../DataModel/TokenAttributes.cs.meta} | 2 +- Package/Runtime/DataModel/TokenDefinition.cs | 15 +++-- Package/Runtime/Engine/Token.cs | 19 ++++-- .../Samples~/Demo/420 Test It Contract.asset | 9 +-- Package/Samples~/Demo/BGSDK Settings.asset | 2 +- .../Demo/Example Properties Object.asset | 19 ------ .../Samples~/Demo/ExampleTokenProperties.cs | 60 ----------------- Package/Samples~/Demo/Kaiden Contract.asset | 9 +-- Package/Samples~/Demo/New Contract.asset | 9 +-- .../Space Chickens _ Chuck The Rooster.asset | 51 ++++++++++++++ ...e Chickens _ Chuck The Rooster.asset.meta} | 2 +- Package/Samples~/Demo/Space Chickens.asset | 6 +- .../X-Men Heroes _ Example Type_ Hulk 1.asset | 14 ++-- .../X-Men Heroes _ Example Type_ Hulk.asset | 14 ++-- ... Heroes _ Example Type_ LazyToken v4.asset | 14 ++-- ...Men Heroes _ Example Type_ LazyToken.asset | 14 ++-- Package/Samples~/Demo/X-Men Heroes.asset | 14 ++-- Package/package.json | 2 +- 20 files changed, 205 insertions(+), 149 deletions(-) create mode 100644 Package/Runtime/DataModel/TokenAttributes.cs rename Package/{Samples~/Demo/ExampleTokenProperties.cs.meta => Runtime/DataModel/TokenAttributes.cs.meta} (83%) delete mode 100644 Package/Samples~/Demo/Example Properties Object.asset delete mode 100644 Package/Samples~/Demo/ExampleTokenProperties.cs create mode 100644 Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset rename Package/Samples~/Demo/{Example Properties Object.asset.meta => Space Chickens _ Chuck The Rooster.asset.meta} (79%) diff --git a/Package/Editor/EditorUtilities.cs b/Package/Editor/EditorUtilities.cs index 9743969..8195dbb 100644 --- a/Package/Editor/EditorUtilities.cs +++ b/Package/Editor/EditorUtilities.cs @@ -254,6 +254,13 @@ public static IEnumerator SyncSettings(Action callback = null) { var settings = BGSDKSettings.current; + //Remove any nulls + settings.contracts.RemoveAll(p => p == null); + foreach(var contract in settings.contracts) + { + contract.tokens.RemoveAll(p => p == null); + } + var authenticated = false; WWWForm authForm = new WWWForm(); @@ -558,17 +565,37 @@ public static IEnumerator SyncSettings(Action callback = null) foreach (var token in newTokens) { - yield return CreateTokenType(arkaneContract, token, (result) => + yield return null; + + if (string.IsNullOrEmpty(BGSDKSettings.current.appId.clientSecret) || string.IsNullOrEmpty(BGSDKSettings.current.appId.clientId)) + { + Debug.LogError("Failed to sync settings: you must populate the Client ID and Client Secret before you can sync settings."); + yield return null; + } + else if (string.IsNullOrEmpty(token.SystemName)) + { + Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + arkaneContract.SystemName + "], message: name required, null or empty name provided."); + yield return null; + } + else { - if(result.hasError) + var request = new UnityWebRequest(BGSDKSettings.current.DefineTokenTypeUri(arkaneContract), "POST"); + byte[] bodyRaw = Encoding.UTF8.GetBytes(token.CreateTokenDefitionJson()); + request.uploadHandler = (UploadHandler)new UploadHandlerRaw(bodyRaw); + request.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer(); + request.SetRequestHeader("Authorization", BGSDKSettings.user.authentication.token_type + " " + BGSDKSettings.user.authentication.access_token); + request.SetRequestHeader("Content-Type", "application/json"); + yield return request.SendWebRequest(); + + if (!request.isNetworkError && !request.isHttpError) { - Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + arkaneContract.SystemName + "], error: " + result.httpCode + " message: " + result.message); + Debug.Log("Created token [" + token.SystemName + "] for contract [" + arkaneContract.SystemName + "]"); } else { - Debug.Log("Created token [" + token.SystemName + "] for contract [" + arkaneContract.SystemName + "]"); + Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + arkaneContract.SystemName + "], error: " + request.responseCode + " message: " + "Error:" + (request.isNetworkError ? " a network error occured while attempting to define the token type." : " a HTTP error occured while attempting to define the token type.")); } - }); + } } #endregion } @@ -618,17 +645,37 @@ public static IEnumerator SyncSettings(Action callback = null) **********************************************************************************/ foreach (var token in contract.tokens) { - yield return CreateTokenType(contract, token, (r) => + yield return null; + + if (string.IsNullOrEmpty(BGSDKSettings.current.appId.clientSecret) || string.IsNullOrEmpty(BGSDKSettings.current.appId.clientId)) + { + Debug.LogError("Failed to sync settings: you must populate the Client ID and Client Secret before you can sync settings."); + yield return null; + } + else if (string.IsNullOrEmpty(token.SystemName)) + { + Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + contract.SystemName + "], message: name required, null or empty name provided."); + yield return null; + } + else { - if (r.hasError) + var request = new UnityWebRequest(BGSDKSettings.current.DefineTokenTypeUri(contract), "POST"); + byte[] bodyRaw = Encoding.UTF8.GetBytes(token.CreateTokenDefitionJson()); + request.uploadHandler = (UploadHandler)new UploadHandlerRaw(bodyRaw); + request.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer(); + request.SetRequestHeader("Authorization", BGSDKSettings.user.authentication.token_type + " " + BGSDKSettings.user.authentication.access_token); + request.SetRequestHeader("Content-Type", "application/json"); + yield return request.SendWebRequest(); + + if (!request.isNetworkError && !request.isHttpError) { - Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + contract.SystemName + "], error: " + r.httpCode + " message: " + r.message); + Debug.Log("Created token [" + token.SystemName + "] for contract [" + contract.SystemName + "]"); } else { - Debug.Log("Created token [" + token.SystemName + "] for contract [" + contract.SystemName + "]"); + Debug.LogError("Failed to create token [" + token.SystemName + "] for contract [" + contract.SystemName + "], error: " + request.responseCode + " message: " + "Error:" + (request.isNetworkError ? " a network error occured while attempting to define the token type." : " a HTTP error occured while attempting to define the token type.")); } - }); + } } } else diff --git a/Package/Runtime/DataModel/TokenAttributes.cs b/Package/Runtime/DataModel/TokenAttributes.cs new file mode 100644 index 0000000..56b93b4 --- /dev/null +++ b/Package/Runtime/DataModel/TokenAttributes.cs @@ -0,0 +1,12 @@ +using System; + +namespace HeathenEngineering.BGSDK.DataModel +{ + [Serializable] + public struct TokenAttributes + { + public string name; + public string type; + public string value; + } +} diff --git a/Package/Samples~/Demo/ExampleTokenProperties.cs.meta b/Package/Runtime/DataModel/TokenAttributes.cs.meta similarity index 83% rename from Package/Samples~/Demo/ExampleTokenProperties.cs.meta rename to Package/Runtime/DataModel/TokenAttributes.cs.meta index 852fc70..e8182eb 100644 --- a/Package/Samples~/Demo/ExampleTokenProperties.cs.meta +++ b/Package/Runtime/DataModel/TokenAttributes.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dc0adbae505c589438eba8f93f72f8e1 +guid: 6827c389d05b449438365c88a1c06ec2 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Package/Runtime/DataModel/TokenDefinition.cs b/Package/Runtime/DataModel/TokenDefinition.cs index 0f2fd39..b577f3b 100644 --- a/Package/Runtime/DataModel/TokenDefinition.cs +++ b/Package/Runtime/DataModel/TokenDefinition.cs @@ -3,6 +3,7 @@ namespace HeathenEngineering.BGSDK.DataModel { + [Serializable] public class TokenDefinition { @@ -21,11 +22,10 @@ public class TokenDefinition /// [Tooltip("Only applicable in case of a fungible token, this indicates the number of decimals the fungible token has")] public uint decimals; - /// - /// Flag that indicates if this type is a non-fungible (true for non-fungible, false for fungible) - /// - [Tooltip("Flag that indicates if this type is a non-fungible (true for non-fungible, false for fungible)")] - public bool nft; + public ulong currentSupply; + public bool fungible; + public bool burnable; + /// /// The backgroundcolor of the image /// @@ -35,7 +35,7 @@ public class TokenDefinition /// The URL with more information about the token /// [Tooltip("The URL with more information about the token")] - public string url; + public string externalUrl; /// /// Image url of the token, 250x250, preferably svg /// @@ -52,6 +52,9 @@ public class TokenDefinition [Tooltip("Image url of the token, 2000x2000, preferably svg")] public string image; + public TypeValuePair[] animationUrls; + public TokenAttributes[] attributes; + public virtual string ToJson() { return JsonUtility.ToJson(this); diff --git a/Package/Runtime/Engine/Token.cs b/Package/Runtime/Engine/Token.cs index bb2de1e..023b857 100644 --- a/Package/Runtime/Engine/Token.cs +++ b/Package/Runtime/Engine/Token.cs @@ -34,6 +34,8 @@ public class ResultList : BGSDKBaseResult public Contract contract; + [Obsolete("No longer used")] + [HideInInspector] public TokeProperties properties; public string Id @@ -131,13 +133,13 @@ public bool IsNonFungible { get { - return data != null ? data.nft : false; + return data != null ? !data.fungible : false; } set { if (data == null) data = new TokenResponceData(); - data.nft = value; + data.fungible = !value; } } public string BackgroundColor @@ -157,13 +159,13 @@ public string Url { get { - return data == null ? "" : data.url; + return data == null ? "" : data.externalUrl; } set { if (data == null) data = new TokenResponceData(); - data.url = value; + data.externalUrl = value; } } public string ImagePreview @@ -214,6 +216,7 @@ public void Set(WebResults webResults) data = webResults.result; } + [Obsolete("No longer used")] public void Set(WebResults> webResults) { data = webResults.result; @@ -225,6 +228,7 @@ public void Set(WebResults> webResults) } } + [Obsolete("No longer used")] public T GetProperties() { if (properties != null && properties.DataType == typeof(T)) @@ -241,6 +245,7 @@ public TokenDefinition GetTokenDefinition() return data; } + [Obsolete("No longer used")] public TokenDefinition GetTokenDefinition() { TokenProperties prop = null; @@ -254,9 +259,9 @@ public TokenDefinition GetTokenDefinition() name = data.name, description = data.description, decimals = data.decimals, - nft = data.nft, + fungible = data.fungible, backgroundColor = data.backgroundColor, - url = data.url, + externalUrl = data.externalUrl, imagePreview = data.imagePreview, imageThumbnail = data.imageThumbnail, image = data.image, @@ -325,8 +330,10 @@ public IEnumerator Get(Action callback) #if UNITY_EDITOR public string CreateTokenDefitionJson() { +#pragma warning disable CS0618 // Type or member is obsolete if (properties != null) return properties.ToJsonDef(data); +#pragma warning restore CS0618 // Type or member is obsolete else return data.ToJson(); } diff --git a/Package/Samples~/Demo/420 Test It Contract.asset b/Package/Samples~/Demo/420 Test It Contract.asset index cf43f15..3f53842 100644 --- a/Package/Samples~/Demo/420 Test It Contract.asset +++ b/Package/Samples~/Demo/420 Test It Contract.asset @@ -13,15 +13,16 @@ MonoBehaviour: m_Name: 420 Test It Contract m_EditorClassIdentifier: updatedFromServer: 1 - updatedOn: -8585814649855800621 + updatedOn: -8585800147389801052 data: id: 188 name: 420 Test It Contract description: A simple test confirmed: 1 + secretType: MATIC address: 0xa37bebcd3ec7dcf3644a9c2c2a3c9a65179761c8 symbol: - url: - imageUrl: - type: + externalUrl: + image: + media: [] tokens: [] diff --git a/Package/Samples~/Demo/BGSDK Settings.asset b/Package/Samples~/Demo/BGSDK Settings.asset index 6740c2b..657aac3 100644 --- a/Package/Samples~/Demo/BGSDK Settings.asset +++ b/Package/Samples~/Demo/BGSDK Settings.asset @@ -38,7 +38,7 @@ MonoBehaviour: imageUrl: contracts: - {fileID: 11400000, guid: df39c7d29288ccb449a2afa7385f9e7d, type: 2} + - {fileID: 11400000, guid: 1b2ea982fb964e8429dec82c2929dd27, type: 2} - {fileID: 11400000, guid: 924374510d55f15429107adb1d2d841a, type: 2} - {fileID: 11400000, guid: 2245fde78bf0bf948b977bcb8ee59d67, type: 2} - - {fileID: 11400000, guid: 1b2ea982fb964e8429dec82c2929dd27, type: 2} - {fileID: 11400000, guid: 66126d82201639447a35b5519cf06143, type: 2} diff --git a/Package/Samples~/Demo/Example Properties Object.asset b/Package/Samples~/Demo/Example Properties Object.asset deleted file mode 100644 index 4e78eeb..0000000 --- a/Package/Samples~/Demo/Example Properties Object.asset +++ /dev/null @@ -1,19 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc0adbae505c589438eba8f93f72f8e1, type: 3} - m_Name: Example Properties Object - m_EditorClassIdentifier: - data: - someString: - someInt: 0 - someDouble: 0 - dataArrayExample: [] diff --git a/Package/Samples~/Demo/ExampleTokenProperties.cs b/Package/Samples~/Demo/ExampleTokenProperties.cs deleted file mode 100644 index 5474afc..0000000 --- a/Package/Samples~/Demo/ExampleTokenProperties.cs +++ /dev/null @@ -1,60 +0,0 @@ -using HeathenEngineering.BGSDK.Engine; -using System; -using UnityEngine; - -namespace HeathenEngineering.BGSDK.Examples -{ - /// - /// Example token properties - /// - /// - /// - /// This is a simple example of how to create custom properties for your token definitions. - /// The intent is that you create your own custom datamodel and wrapp it in a custom ScriptableObject such as this. - /// Once done you can create these properties items in your asset folder as you would any other ScriptableObject. - /// You can drag and drop this properties object to your Token Definition where it will be used to deserialize custom properts data. - /// - /// - /// To create your own custom properties object you only need to defein a structure or class which is serializable and contains the nessisary fields for your desired properties model. - /// is what is used in this particular example. You can review its source code and see that it is a simple struct with a number of fields and is marked as serializable. - /// The final step is to create a new class object which inherits from where T should be the struct or class you defined such as as in this example. - /// Be sure to decorate the class with - /// - /// [CreateAssetMenu(menuName = "Custom/Properties/[NameOfProperty]")] - /// - /// This will allow you to create the property object in your asset database via the Create menu in Unity Editor. - /// - /// - /// Note that you do not need to create any logic or fields in the ScriptableObject class, all of the required fields are part of the object. - /// This is very much like creating custom UnityEvent{T} objects. - /// - /// - [CreateAssetMenu(menuName = "Blockchain Game SDK/Examples/Token Properties")] - public class ExampleTokenProperties : TokenProperties - { } - - /// - /// A example data model used in the object. - /// - /// - /// - /// This is simply an example and not intended for production use. - /// This struct demonstrates a complex data model suitable for use in token properties - /// - /// - [Serializable] - public struct ExampleTokenPropertiesDataModel - { - [Serializable] - public struct CompositData - { - public string justAnExample; - public int someNumber; - } - - public string someString; - public int someInt; - public double someDouble; - public CompositData[] dataArrayExample; - } -} diff --git a/Package/Samples~/Demo/Kaiden Contract.asset b/Package/Samples~/Demo/Kaiden Contract.asset index 8a66e0d..565e6ed 100644 --- a/Package/Samples~/Demo/Kaiden Contract.asset +++ b/Package/Samples~/Demo/Kaiden Contract.asset @@ -13,15 +13,16 @@ MonoBehaviour: m_Name: Kaiden Contract m_EditorClassIdentifier: updatedFromServer: 1 - updatedOn: -8585814649846249704 + updatedOn: -8585800147379681814 data: id: 171 name: Kaiden Contract description: confirmed: 1 + secretType: MATIC address: 0x2dc1049f2bed2ff4e163054831e1aad8932a7c21 symbol: - url: - imageUrl: - type: + externalUrl: + image: + media: [] tokens: [] diff --git a/Package/Samples~/Demo/New Contract.asset b/Package/Samples~/Demo/New Contract.asset index 90fe62c..ec71767 100644 --- a/Package/Samples~/Demo/New Contract.asset +++ b/Package/Samples~/Demo/New Contract.asset @@ -13,15 +13,16 @@ MonoBehaviour: m_Name: New Contract m_EditorClassIdentifier: updatedFromServer: 1 - updatedOn: -8585814647271285157 + updatedOn: -8585800147394325266 data: id: 159 name: New Contract description: confirmed: 1 + secretType: MATIC address: 0x4059a8f02d3b3493e22a3a296460b8cb8156d73d symbol: - url: - imageUrl: - type: + externalUrl: + image: + media: [] tokens: [] diff --git a/Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset b/Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset new file mode 100644 index 0000000..649879c --- /dev/null +++ b/Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset @@ -0,0 +1,51 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 827e0ca428c9a5e4aaa8b54b5e4f7d3b, type: 3} + m_Name: Space Chickens _ Chuck The Rooster + m_EditorClassIdentifier: + UpdatedFromServer: 1 + UpdatedOn: -8585800147369877881 + contract: {fileID: 0} + properties: {fileID: 0} + data: + name: Chuck The Rooster + description: Chuck is a Male Tall Chicken Who is the Leader of The Chicken Siblings. + He is Cool, Daring and Wacky. He can be Selfish and Stubborn When it Comes + To Challenges, But he is An True Softie when it Comes To His Siblings. In Rebel + to the Beak, It revealed that He is Allergic to Monstonuts and In The Good, + The Bad and The Clucky, It also Revealed that He Used to Be one Of the Scouts + from Slurp,s Little Cowboys Scout Camp along With Finley, Ainta and Hugo. He + is the youngest of the three. + decimals: 0 + currentSupply: 0 + fungible: 0 + burnable: 0 + backgroundColor: '#eeeeee' + externalUrl: + imagePreview: + imageThumbnail: + image: + animationUrls: [] + attributes: + - name: Talent + type: property + value: Leadership + - name: Allergic + type: property + value: Monstonuts + - name: Hobby + type: property + value: Scouts + contractAddress: + id: 1 + confirmed: 1 + rawData: diff --git a/Package/Samples~/Demo/Example Properties Object.asset.meta b/Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset.meta similarity index 79% rename from Package/Samples~/Demo/Example Properties Object.asset.meta rename to Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset.meta index 2bdc0af..8714e24 100644 --- a/Package/Samples~/Demo/Example Properties Object.asset.meta +++ b/Package/Samples~/Demo/Space Chickens _ Chuck The Rooster.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 904ba58ab4691344b86349423ff10347 +guid: b65d3ef4b76a9494db748691411f4a7a NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Package/Samples~/Demo/Space Chickens.asset b/Package/Samples~/Demo/Space Chickens.asset index 4f8d66f..ea3b7d5 100644 --- a/Package/Samples~/Demo/Space Chickens.asset +++ b/Package/Samples~/Demo/Space Chickens.asset @@ -13,7 +13,7 @@ MonoBehaviour: m_Name: Space Chickens m_EditorClassIdentifier: updatedFromServer: 1 - updatedOn: -8585800184452133815 + updatedOn: -8585800147373826490 data: id: 270 name: Space Chickens @@ -23,9 +23,9 @@ MonoBehaviour: taken from their home and mistakenly enrolled in an elite intergalactic former military academy. It would take all their strength, and teamwork, to survive every escapade they have." - confirmed: 0 + confirmed: 1 secretType: MATIC - address: + address: 0xfcfd73f466db5c1373c813fc7cdb09150a2f0aef symbol: TCC externalUrl: https://en.wikipedia.org/wiki/Space_Chickens_in_Space image: https://dg31sz3gwrwan.cloudfront.net/fanart/355763/1357791-0-q80.jpg diff --git a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk 1.asset b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk 1.asset index f71fb21..82a72c7 100644 --- a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk 1.asset +++ b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk 1.asset @@ -10,22 +10,26 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 827e0ca428c9a5e4aaa8b54b5e4f7d3b, type: 3} - m_Name: 'X-Men Heroes : Example Type: Hulk' + m_Name: X-Men Heroes _ Example Type_ Hulk 1 m_EditorClassIdentifier: UpdatedFromServer: 1 - UpdatedOn: -8585800184000925697 - contract: {fileID: 11400000, guid: df39c7d29288ccb449a2afa7385f9e7d, type: 2} + UpdatedOn: -8585800147400060555 + contract: {fileID: 0} properties: {fileID: 0} data: name: 'Example Type: Hulk' description: Robert Bruce Banner a.k.a The Incredible Hulk decimals: 0 - nft: 0 + currentSupply: 0 + fungible: 0 + burnable: 0 backgroundColor: '#d9d9d9' - url: + externalUrl: imagePreview: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png imageThumbnail: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png image: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png + animationUrls: [] + attributes: [] contractAddress: id: 2633 confirmed: 1 diff --git a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk.asset b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk.asset index f9b14e2..3b17f4c 100644 --- a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk.asset +++ b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ Hulk.asset @@ -10,22 +10,26 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 827e0ca428c9a5e4aaa8b54b5e4f7d3b, type: 3} - m_Name: 'X-Men Heroes : Example Type: Hulk' + m_Name: X-Men Heroes _ Example Type_ Hulk m_EditorClassIdentifier: UpdatedFromServer: 1 - UpdatedOn: -8585800184002447087 - contract: {fileID: 11400000, guid: df39c7d29288ccb449a2afa7385f9e7d, type: 2} + UpdatedOn: -8585800147402742996 + contract: {fileID: 0} properties: {fileID: 0} data: name: 'Example Type: Hulk' description: Robert Bruce Banner a.k.a The Incredible Hulk decimals: 0 - nft: 0 + currentSupply: 0 + fungible: 0 + burnable: 0 backgroundColor: '#d9d9d9' - url: + externalUrl: imagePreview: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png imageThumbnail: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png image: https://upload.wikimedia.org/wikipedia/en/a/aa/Hulk_%28circa_2019%29.png + animationUrls: [] + attributes: [] contractAddress: id: 2634 confirmed: 1 diff --git a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken v4.asset b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken v4.asset index 1d9f6b4..ea63c9b 100644 --- a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken v4.asset +++ b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken v4.asset @@ -10,22 +10,26 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 827e0ca428c9a5e4aaa8b54b5e4f7d3b, type: 3} - m_Name: 'X-Men Heroes : Example Type: LazyToken v4' + m_Name: X-Men Heroes _ Example Type_ LazyToken v4 m_EditorClassIdentifier: UpdatedFromServer: 1 - UpdatedOn: -8585800183999304229 - contract: {fileID: 11400000, guid: df39c7d29288ccb449a2afa7385f9e7d, type: 2} + UpdatedOn: -8585800147395956827 + contract: {fileID: 0} properties: {fileID: 0} data: name: 'Example Type: LazyToken v4' description: quick test decimals: 0 - nft: 0 + currentSupply: 0 + fungible: 0 + burnable: 0 backgroundColor: - url: + externalUrl: imagePreview: imageThumbnail: image: + animationUrls: [] + attributes: [] contractAddress: id: 2972 confirmed: 1 diff --git a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken.asset b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken.asset index 7aa56df..935a60e 100644 --- a/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken.asset +++ b/Package/Samples~/Demo/X-Men Heroes _ Example Type_ LazyToken.asset @@ -10,22 +10,26 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 827e0ca428c9a5e4aaa8b54b5e4f7d3b, type: 3} - m_Name: 'X-Men Heroes : Example Type: LazyToken' + m_Name: X-Men Heroes _ Example Type_ LazyToken m_EditorClassIdentifier: UpdatedFromServer: 1 - UpdatedOn: -8585800184003528063 - contract: {fileID: 11400000, guid: df39c7d29288ccb449a2afa7385f9e7d, type: 2} + UpdatedOn: -8585800147404634716 + contract: {fileID: 0} properties: {fileID: 0} data: name: 'Example Type: LazyToken' description: This is a lazy supperhero token decimals: 0 - nft: 0 + currentSupply: 0 + fungible: 1 + burnable: 0 backgroundColor: - url: + externalUrl: imagePreview: imageThumbnail: image: + animationUrls: [] + attributes: [] contractAddress: id: 2950 confirmed: 1 diff --git a/Package/Samples~/Demo/X-Men Heroes.asset b/Package/Samples~/Demo/X-Men Heroes.asset index 09508b8..4bb9240 100644 --- a/Package/Samples~/Demo/X-Men Heroes.asset +++ b/Package/Samples~/Demo/X-Men Heroes.asset @@ -13,9 +13,9 @@ MonoBehaviour: m_Name: X-Men Heroes m_EditorClassIdentifier: updatedFromServer: 1 - updatedOn: -8585800183984154959 + updatedOn: -8585800147410585019 data: - id: 214 + id: 31 name: X-Men Heroes description: The X-Men are a team of mutant superheroes in the Marvel Universe. he basic concept of the X-Men is that under a cloud of increasing anti-mutant @@ -23,14 +23,10 @@ MonoBehaviour: young mutants to use their powers for the benefit of humanity, and to prove mutants can be heroes confirmed: 1 - secretType: MATIC - address: 0x7911a4d89096c8b452a09ba9ffaa560dc53a074f + secretType: ETHEREUM + address: 0x28e06fe9091392f4c6b5d171c9a6d5930c60d400 symbol: externalUrl: image: media: [] - tokens: - - {fileID: 11400000, guid: 647525344e677aa4fb0f7676e31523c2, type: 2} - - {fileID: 11400000, guid: 2743e470dbdf7f14f92ba1e0c7b1ad0d, type: 2} - - {fileID: 11400000, guid: 98bc47905e9902d4f9e1ae04c55281f7, type: 2} - - {fileID: 11400000, guid: e4edd9703b0827641bec3b5327915c56, type: 2} + tokens: [] diff --git a/Package/package.json b/Package/package.json index 8ea9b03..1091ded 100644 --- a/Package/package.json +++ b/Package/package.json @@ -2,7 +2,7 @@ "name": "com.heathenengineering.bgsdkfoundation", "author": "Heathen Engineering", "displayName": "BGSDK Foundation", - "version": "1.0.2-Preview", + "version": "1.1.0", "unity": "2019.4", "keywords": [ "unity",