repo_id
stringclasses
279 values
file_path
stringlengths
43
179
content
stringlengths
1
4.18M
__index_level_0__
int64
0
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/HealthBar.cs.meta
fileFormatVersion: 2 guid: b505c4018f37a479ca434689b71b99b4 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/LoadSceeneWidget.cs.meta
fileFormatVersion: 2 guid: 68b5c446a22414156b442f58a69fdefb MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/LoadSceeneWidget.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class LoadSceeneWidget : MonoBehaviour { public Button LoadSceneButton; void Start() { LoadSceneButton.onClick.AddListener(OnLoadSceneClicked); } private void OnLoadSceneClicked() { SceneManager.LoadScene("SevenSeas"); } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/SolHunterTile.cs
using System; using Cysharp.Threading.Tasks; using Frictionless; using SevenSeas.Types; using Solana.Unity.SDK.Nft; using SolPlay.Scripts; using SolPlay.Scripts.Services; using SolPlay.Scripts.Ui; using TMPro; using UnityEngine; namespace SolHunter { public class SolHunterTile : MonoBehaviour { public TextMeshProUGUI TileInfo; public NftItemView NftItemView; public async void SetData(Tile tile) { if (tile.State == SevenSeasService.STATE_EMPTY) { TileInfo.text = ""; NftItemView.gameObject.SetActive(false); return; } if (tile.State == SevenSeasService.STATE_CHEST) { NftItemView.gameObject.SetActive(false); TileInfo.text = "Chest\n<color=green>(0.05Sol)</color>"; } else { TileInfo.text = String.Empty; var wallet= ServiceFactory.Resolve<WalletHolderService>().BaseWallet; var avatarNft = ServiceFactory.Resolve<NftService>().GetNftByMintAddress(tile.Avatar); if (avatarNft == null) { avatarNft = Nft.TryLoadNftFromLocal(tile.Avatar); } if (avatarNft == null) { // avatarNft = await Nft.TryGetNftData(tile.Avatar, wallet.ActiveRpcClient).AsUniTask(); } NftItemView.gameObject.SetActive(true); /*if (!string.IsNullOrEmpty(avatarNft.LoadingError) || avatarNft.MetaplexData == null) { NftItemView.SetData(ServiceFactory.Resolve<NftService>().CreateDummyLocalNft(wallet.Account.PublicKey), view => { }); } else {*/ NftItemView.SetData(avatarNft, view => { }); //} } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/CthulhuBehaviour.cs.meta
fileFormatVersion: 2 guid: 7055633c31faa4bcd938c7f8043e6803 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/SolHunterTile.cs.meta
fileFormatVersion: 2 guid: 5b96abdf1dbd435894f5df504b008f88 timeCreated: 1669934391
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/SevenSeas.cs.meta
fileFormatVersion: 2 guid: 210ad930fef7d48f5b7415e8ad5089d4 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/SevenSeasScreen.cs.meta
fileFormatVersion: 2 guid: 7090383afb8c1432a8e1a884de02ec76 timeCreated: 1669669804
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/ShipBehaviour.cs.meta
fileFormatVersion: 2 guid: f8ffd0aea52241839a403964bffdf273 timeCreated: 1682691267
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Scripts/SevenSeasService.cs.meta
fileFormatVersion: 2 guid: 772a6fba0bbcb4c008714897dda4eae9 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_mask.png.meta
fileFormatVersion: 2 guid: 51a7815101257c64da44259decd48ec2 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_btn_W.png.meta
fileFormatVersion: 2 guid: f3cc4cde84c48cf44aecbcc70b676b11 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_btn_shootcannonball.png.meta
fileFormatVersion: 2 guid: 2b5f032f9fa43c84c90f8e0bb5a7af0f TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/PirateCoin.png.meta
fileFormatVersion: 2 guid: fb50b7db658214da0b6a2949aacc04b1 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/icon_rum.png.meta
fileFormatVersion: 2 guid: 26d8b6382419b2344bf1d03ba26eb165 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/icon_coin.png.meta
fileFormatVersion: 2 guid: bfd4bdc452ebf1241a5bd0658ae76391 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/mapBg.jpeg.meta
fileFormatVersion: 2 guid: 0ccb19126f536406396cc4463b788c3c TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_compass_bg.png.meta
fileFormatVersion: 2 guid: 86996fc728994ac4aa0b07a294b4a838 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/solana-pay-pirates-qr.png.meta
fileFormatVersion: 2 guid: 1718f39322bcd4ed3b29c5f181df3d46 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_btn_E.png.meta
fileFormatVersion: 2 guid: 70ec5f3702a594b43b5d2b176295f3c2 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/coin (1).png.meta
fileFormatVersion: 2 guid: 047981fdb2bbc447892145ca30a846fa TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_btn_N.png.meta
fileFormatVersion: 2 guid: 4b5b2fd5bf56940499cfff70672bd608 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/Bildschirmfoto 2023-05-12 um 18.17.22.png.meta
fileFormatVersion: 2 guid: 0a0c760e6404e449dbf77f7e65d46fcf TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_hud_count_panel.png.meta
fileFormatVersion: 2 guid: 94e1813c133edb14682a7c20149152cf TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 24, y: 34, z: 28, w: 34} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 1537655665 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/pxfuel.jpg.meta
fileFormatVersion: 2 guid: 7c559722bc42d4b0289897aa0fc60892 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_nft_frame.png.meta
fileFormatVersion: 2 guid: 0e9e18c40041ffd4c8d33371ed8bfb61 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/icon_cannon.png.meta
fileFormatVersion: 2 guid: 6432763eada04344d9892df9e3bd27ca TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_compass.png.meta
fileFormatVersion: 2 guid: 60b554f12482ab1428ff0262ca0d73d9 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/SevenSeas/Sprites/ui_btn_S.png.meta
fileFormatVersion: 2 guid: c5e6fc5138e24674595e47c708cad8d3 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventure.unity.meta
fileFormatVersion: 2 guid: 70b81db668d85478ab0e4325776df049 DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventureService.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Frictionless; using Solana.Unity.Programs; using Solana.Unity.Rpc.Core.Http; using Solana.Unity.Rpc.Models; using Solana.Unity.Rpc.Types; using Solana.Unity.Wallet; using SolPlay.Scripts.Services; using TinyAdventure.Accounts; using TinyAdventure.Program; using UnityEngine; public class TinyAdventureService : MonoBehaviour { public static PublicKey ProgramId = new PublicKey("6n4RuXb61rRYtKBCwm7ExmkRce7AM8QqrYSpjzChue7i"); private PublicKey gameDataAccount; public class GameDataChangedMessage { public GameDataAccount GameDataAccount; } private void Awake() { ServiceFactory.RegisterSingleton(this); PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("level1") }, ProgramId, out gameDataAccount, out var bump); } private void Start() { MessageRouter.AddHandler<SocketServerConnectedMessage>(OnSocketConnected); } private void OnSocketConnected(SocketServerConnectedMessage message) { ServiceFactory.Resolve<SolPlayWebSocketService>().SubscribeToPubKeyData(gameDataAccount, result => { GameDataAccount gameDataAccount = GameDataAccount.Deserialize(Convert.FromBase64String(result.result.value.data[0])); MessageRouter.RaiseMessage(new GameDataChangedMessage() { GameDataAccount = gameDataAccount }); }); } public async Task<GameDataAccount> GetGameData() { var baseWalletActiveRpcClient = ServiceFactory.Resolve<WalletHolderService>().BaseWallet.ActiveRpcClient; var gameData = await baseWalletActiveRpcClient .GetAccountInfoAsync(this.gameDataAccount, Commitment.Confirmed, BinaryEncoding.JsonParsed); GameDataAccount gameDataAccount = GameDataAccount.Deserialize(Convert.FromBase64String(gameData.Result.Value.Data[0])); Debug.Log(gameDataAccount.PlayerPosition); MessageRouter.RaiseMessage(new GameDataChangedMessage() { GameDataAccount = gameDataAccount }); return gameDataAccount; } public void Initialize() { TransactionInstruction initializeInstruction = GetInitializeInstruction(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); ServiceFactory.Resolve<TransactionService>().SendInstructionInNextBlock("Initializes",initializeInstruction, walletHolderService.BaseWallet, result => {}); } public void MoveRight() { TransactionInstruction initializeInstruction = GetMoveRightInstruction(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); ServiceFactory.Resolve<TransactionService>().SendInstructionInNextBlock("Move Right", initializeInstruction, walletHolderService.BaseWallet, result => {}); } public void MoveLeft() { TransactionInstruction initializeInstruction = GetMoveLeftInstruction(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); ServiceFactory.Resolve<TransactionService>().SendInstructionInNextBlock("Move Left", initializeInstruction, walletHolderService.BaseWallet, result => {}); } /// <summary> /// This is how you can build a transaction without using the transaction service. /// The transaction service just removes some code duplication and does error handling and checks the /// signature /// </summary> public async void MoveLeftManual() { TransactionInstruction moveLeftInstruction = GetMoveLeftInstruction(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); var result = await walletHolderService.BaseWallet.ActiveRpcClient.GetLatestBlockHashAsync(Commitment.Confirmed); Transaction transaction = new Transaction(); transaction.FeePayer = walletHolderService.BaseWallet.Account.PublicKey; transaction.RecentBlockHash = result.Result.Value.Blockhash; transaction.Signatures = new List<SignaturePubKeyPair>(); transaction.Instructions = new List<TransactionInstruction>(); transaction.Instructions.Add(moveLeftInstruction); Transaction signedTransaction = await walletHolderService.BaseWallet.SignTransaction(transaction); RequestResult<string> signature = await walletHolderService.BaseWallet.ActiveRpcClient.SendTransactionAsync( Convert.ToBase64String(signedTransaction.Serialize()), true, Commitment.Confirmed); } private TransactionInstruction GetMoveLeftInstruction() { MoveLeftAccounts account = new MoveLeftAccounts(); account.GameDataAccount = gameDataAccount; TransactionInstruction initializeInstruction = TinyAdventureProgram.MoveLeft(account, ProgramId); return initializeInstruction; } private TransactionInstruction GetMoveRightInstruction() { MoveRightAccounts account = new MoveRightAccounts(); account.GameDataAccount = gameDataAccount; TransactionInstruction initializeInstruction = TinyAdventureProgram.MoveRight(account, ProgramId); return initializeInstruction; } private TransactionInstruction GetInitializeInstruction() { var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); var wallet = walletHolderService.BaseWallet; InitializeAccounts account = new InitializeAccounts(); account.Signer = wallet.Account.PublicKey; account.NewGameDataAccount = gameDataAccount; account.SystemProgram = SystemProgram.ProgramIdKey; TransactionInstruction initializeInstruction = TinyAdventureProgram.Initialize(account, ProgramId); return initializeInstruction; } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventureScreen.cs
using System.Collections.Generic; using Frictionless; using TinyAdventure.Accounts; using UnityEngine; using UnityEngine.UI; using TMPro; namespace TinyAdventure { public class TinyAdventureScreen : MonoBehaviour { public Button GetDataButton; public Button MoveRightButton; public Button MoveLeftButton; public Button InitializeButton; public TextMeshProUGUI GameText; private void Awake() { GetDataButton.onClick.AddListener(OnGetDataButtonClicked); MoveRightButton.onClick.AddListener(OnMoveRightButtonClicked); MoveLeftButton.onClick.AddListener(OnMoveLeftButtonClicked); InitializeButton.onClick.AddListener(OnInitializeButtonClicked); } private void Start() { MessageRouter.AddHandler<TinyAdventureService.GameDataChangedMessage>(OnGameDataChangedMessage); } private void OnGameDataChangedMessage(TinyAdventureService.GameDataChangedMessage message) { UpdateGameDataView(message.GameDataAccount); } private void OnInitializeButtonClicked() { ServiceFactory.Resolve<TinyAdventureService>().Initialize(); } private void OnMoveLeftButtonClicked() { ServiceFactory.Resolve<TinyAdventureService>().MoveLeft(); } private void OnMoveRightButtonClicked() { ServiceFactory.Resolve<TinyAdventureService>().MoveRight(); } private async void OnGetDataButtonClicked() { GameDataAccount gameData = await ServiceFactory.Resolve<TinyAdventureService>().GetGameData(); UpdateGameDataView(gameData); } private void UpdateGameDataView(GameDataAccount gameData) { switch ((int) gameData.PlayerPosition) { case 0: GameText.text = "o........."; break; case 1: GameText.text = "..o......."; break; case 2: GameText.text = ".....o...."; break; case 3: GameText.text = "........\\o/"; break; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventure.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Solana.Unity.Programs.Abstract; using Solana.Unity.Programs.Utilities; using Solana.Unity.Rpc; using Solana.Unity.Rpc.Core.Http; using Solana.Unity.Rpc.Core.Sockets; using Solana.Unity.Rpc.Types; using Solana.Unity.Wallet; using TinyAdventure.Program; using TinyAdventure.Errors; using TinyAdventure.Accounts; namespace TinyAdventure { namespace Accounts { public partial class GameDataAccount { public static ulong ACCOUNT_DISCRIMINATOR => 2830422829680616787UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{83, 229, 68, 63, 145, 174, 71, 39}; public static string ACCOUNT_DISCRIMINATOR_B58 => "F2tkBUcrpHt"; public byte PlayerPosition { get; set; } public static GameDataAccount Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } GameDataAccount result = new GameDataAccount(); result.PlayerPosition = _data.GetU8(offset); offset += 1; return result; } } } namespace Errors { public enum TinyAdventureErrorKind : uint { } } public partial class TinyAdventureClient : TransactionalBaseClient<TinyAdventureErrorKind> { public TinyAdventureClient(IRpcClient rpcClient, IStreamingRpcClient streamingRpcClient, PublicKey programId) : base(rpcClient, streamingRpcClient, programId) { } public async Task<Solana.Unity.Programs.Models.ProgramAccountsResultWrapper<List<GameDataAccount>>> GetGameDataAccountsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<Solana.Unity.Rpc.Models.MemCmp>{new Solana.Unity.Rpc.Models.MemCmp{Bytes = GameDataAccount.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new Solana.Unity.Programs.Models.ProgramAccountsResultWrapper<List<GameDataAccount>>(res); List<GameDataAccount> resultingAccounts = new List<GameDataAccount>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => GameDataAccount.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new Solana.Unity.Programs.Models.ProgramAccountsResultWrapper<List<GameDataAccount>>(res, resultingAccounts); } public async Task<Solana.Unity.Programs.Models.AccountResultWrapper<GameDataAccount>> GetGameDataAccountAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new Solana.Unity.Programs.Models.AccountResultWrapper<GameDataAccount>(res); var resultingAccount = GameDataAccount.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new Solana.Unity.Programs.Models.AccountResultWrapper<GameDataAccount>(res, resultingAccount); } public async Task<SubscriptionState> SubscribeGameDataAccountAsync(string accountAddress, Action<SubscriptionState, Solana.Unity.Rpc.Messages.ResponseValue<Solana.Unity.Rpc.Models.AccountInfo>, GameDataAccount> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { GameDataAccount parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = GameDataAccount.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<RequestResult<string>> SendInitializeAsync(InitializeAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { Solana.Unity.Rpc.Models.TransactionInstruction instr = Program.TinyAdventureProgram.Initialize(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendMoveLeftAsync(MoveLeftAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { Solana.Unity.Rpc.Models.TransactionInstruction instr = Program.TinyAdventureProgram.MoveLeft(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendMoveRightAsync(MoveRightAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { Solana.Unity.Rpc.Models.TransactionInstruction instr = Program.TinyAdventureProgram.MoveRight(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } protected override Dictionary<uint, ProgramError<TinyAdventureErrorKind>> BuildErrorsDictionary() { return new Dictionary<uint, ProgramError<TinyAdventureErrorKind>>{}; } } namespace Program { public class InitializeAccounts { public PublicKey NewGameDataAccount { get; set; } public PublicKey Signer { get; set; } public PublicKey SystemProgram { get; set; } } public class MoveLeftAccounts { public PublicKey GameDataAccount { get; set; } } public class MoveRightAccounts { public PublicKey GameDataAccount { get; set; } } public static class TinyAdventureProgram { public static Solana.Unity.Rpc.Models.TransactionInstruction Initialize(InitializeAccounts accounts, PublicKey programId) { List<Solana.Unity.Rpc.Models.AccountMeta> keys = new() {Solana.Unity.Rpc.Models.AccountMeta.Writable(accounts.NewGameDataAccount, false), Solana.Unity.Rpc.Models.AccountMeta.Writable(accounts.Signer, true), Solana.Unity.Rpc.Models.AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(17121445590508351407UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new Solana.Unity.Rpc.Models.TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static Solana.Unity.Rpc.Models.TransactionInstruction MoveLeft(MoveLeftAccounts accounts, PublicKey programId) { List<Solana.Unity.Rpc.Models.AccountMeta> keys = new() {Solana.Unity.Rpc.Models.AccountMeta.Writable(accounts.GameDataAccount, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(7146630935792505901UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new Solana.Unity.Rpc.Models.TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static Solana.Unity.Rpc.Models.TransactionInstruction MoveRight(MoveRightAccounts accounts, PublicKey programId) { List<Solana.Unity.Rpc.Models.AccountMeta> keys = new() {Solana.Unity.Rpc.Models.AccountMeta.Writable(accounts.GameDataAccount, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(10990983061962034633UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new Solana.Unity.Rpc.Models.TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventure.cs.meta
fileFormatVersion: 2 guid: 896e055b2da8d4c4f9708300b0179018 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventureService.cs.meta
fileFormatVersion: 2 guid: a92e9c189aaf94165a077a95f40b1dad MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventure.png.meta
fileFormatVersion: 2 guid: d3dca9b8f9c34483d8fd1f9e48087aa3 TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 0 enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 0 alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 maxTextureSize: 2048 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 wrapV: 1 wrapW: 0 nPOTScale: 0 lightmap: 0 compressionQuality: 50 spriteMode: 1 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 8 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: iPhone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: WebGL maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventure.unity
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 OcclusionCullingSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_OcclusionBakeSettings: smallestOccluder: 5 smallestHole: 0.25 backfaceThreshold: 100 m_SceneGUID: 00000000000000000000000000000000 m_OcclusionCullingData: {fileID: 0} --- !u!104 &2 RenderSettings: m_ObjectHideFlags: 0 serializedVersion: 9 m_Fog: 0 m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} m_FogMode: 3 m_FogDensity: 0.01 m_LinearFogStart: 0 m_LinearFogEnd: 300 m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} m_AmbientIntensity: 1 m_AmbientMode: 0 m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} m_HaloStrength: 0.5 m_FlareStrength: 1 m_FlareFadeSpeed: 3 m_HaloTexture: {fileID: 0} m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} m_DefaultReflectionMode: 0 m_DefaultReflectionResolution: 128 m_ReflectionBounces: 1 m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} m_IndirectSpecularColor: {r: 0.37311947, g: 0.38074014, b: 0.3587274, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: m_ObjectHideFlags: 0 serializedVersion: 12 m_GIWorkflowMode: 1 m_GISettings: serializedVersion: 2 m_BounceScale: 1 m_IndirectOutputScale: 1 m_AlbedoBoost: 1 m_EnvironmentLightingMode: 0 m_EnableBakedLightmaps: 1 m_EnableRealtimeLightmaps: 0 m_LightmapEditorSettings: serializedVersion: 12 m_Resolution: 2 m_BakeResolution: 40 m_AtlasSize: 1024 m_AO: 0 m_AOMaxDistance: 1 m_CompAOExponent: 1 m_CompAOExponentDirect: 0 m_ExtractAmbientOcclusion: 0 m_Padding: 2 m_LightmapParameters: {fileID: 0} m_LightmapsBakeMode: 1 m_TextureCompression: 1 m_FinalGather: 0 m_FinalGatherFiltering: 1 m_FinalGatherRayCount: 256 m_ReflectionCompression: 2 m_MixedBakeMode: 2 m_BakeBackend: 1 m_PVRSampling: 1 m_PVRDirectSampleCount: 32 m_PVRSampleCount: 512 m_PVRBounces: 2 m_PVREnvironmentSampleCount: 256 m_PVREnvironmentReferencePointCount: 2048 m_PVRFilteringMode: 1 m_PVRDenoiserTypeDirect: 1 m_PVRDenoiserTypeIndirect: 1 m_PVRDenoiserTypeAO: 1 m_PVRFilterTypeDirect: 0 m_PVRFilterTypeIndirect: 0 m_PVRFilterTypeAO: 0 m_PVREnvironmentMIS: 1 m_PVRCulling: 1 m_PVRFilteringGaussRadiusDirect: 1 m_PVRFilteringGaussRadiusIndirect: 5 m_PVRFilteringGaussRadiusAO: 2 m_PVRFilteringAtrousPositionSigmaDirect: 0.5 m_PVRFilteringAtrousPositionSigmaIndirect: 2 m_PVRFilteringAtrousPositionSigmaAO: 1 m_ExportTrainingData: 0 m_TrainingDataDestination: TrainingData m_LightProbeSampleCountMultiplier: 4 m_LightingDataAsset: {fileID: 0} m_LightingSettings: {fileID: 0} --- !u!196 &4 NavMeshSettings: serializedVersion: 2 m_ObjectHideFlags: 0 m_BuildSettings: serializedVersion: 3 agentTypeID: 0 agentRadius: 0.5 agentHeight: 2 agentSlope: 45 agentClimb: 0.4 ledgeDropHeight: 0 maxJumpAcrossDistance: 0 minRegionArea: 2 manualCellSize: 0 cellSize: 0.16666667 manualTileSize: 0 tileSize: 256 buildHeightMesh: 0 maxJobWorkers: 0 preserveTilesOutsideBounds: 0 debug: m_Flags: 0 m_NavMeshData: {fileID: 0} --- !u!1 &7584538 stripped GameObject: m_CorrespondingSourceObject: {fileID: 1665109048261681710, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} m_PrefabInstance: {fileID: 121978677} m_PrefabAsset: {fileID: 0} --- !u!114 &7584541 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7584538} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: b75a4e92c14884ea6bf3e46d07a33eb0, type: 3} m_Name: m_EditorClassIdentifier: rpcCluster: 1 customRpc: webSocketsRpc: autoConnectOnStartup: 0 web3AuthWalletOptions: appName: Web3Auth Sample App logoLight: logoDark: defaultLanguage: 0 mode: 2 themeName: primary themeColor: '#123456' redirectUrl: torusapp://com.torus.Web3AuthUnity/auth clientId: BAwFgL-r7wzQKmtcdiz2uHJKNZdK7gzEf2q-m55xfzSZOw8jLOyIi4AVvvzaEQO5nv2dFLEmf9LBkF8kaq3aErg network: 1 loginConfig: [] solanaWalletAdapterOptions: solanaMobileWalletAdapterOptions: identityUri: https://solana.unity-sdk.gg/ iconUri: /favicon.ico name: Solana.Unity-SDK keepConnectionAlive: 1 solanaWalletAdapterWebGLOptions: walletAdapterButtonPrefab: {fileID: 0} walletAdapterUIPrefab: {fileID: 0} phantomWalletOptions: apiVersion: v1 appMetaDataUrl: https://github.com/garbles-labs/Solana.Unity-SDK deeplinkUrlScheme: unitydl sessionEncryptionPassword: use a strong password baseUrl: https://phantom.app walletName: phantom --- !u!114 &7584542 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7584538} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fbd7daddfbeaa44729a122a269ac8fb5, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1001 &57817228 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 1923276699} m_Modifications: - target: {fileID: 4543230662287133981, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_text value: Initialize objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_RootOrder value: 3 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.x value: 361.64404 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.y value: 114.25 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.x value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.y value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.z value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.y value: -562 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328021, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Name value: InitilalizeButton objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c27ebc42ed62d4f528778183ed634846, type: 3} --- !u!1 &69073604 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 69073605} - component: {fileID: 69073606} - component: {fileID: 69073607} m_Layer: 5 m_Name: ButtonLayoutGroup m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &69073605 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 69073604} 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: - {fileID: 1872057918} - {fileID: 588849879} - {fileID: 692983196} m_Father: {fileID: 1923276699} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: -271} m_SizeDelta: {x: 0, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &69073606 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 69073604} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} m_Name: m_EditorClassIdentifier: m_Padding: m_Left: 0 m_Right: 0 m_Top: 0 m_Bottom: 0 m_ChildAlignment: 1 m_Spacing: 10 m_ChildForceExpandWidth: 1 m_ChildForceExpandHeight: 1 m_ChildControlWidth: 0 m_ChildControlHeight: 0 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 m_ReverseArrangement: 0 --- !u!114 &69073607 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 69073604} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 0 --- !u!1001 &121978677 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - target: {fileID: 1665109046784520929, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: MainNetRpcUrl value: objectReference: {fileID: 0} - target: {fileID: 1665109046784520929, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: DevnetLoginRPCUrl value: objectReference: {fileID: 0} - target: {fileID: 1665109046784520929, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: DevnetWalletCluster value: 1 objectReference: {fileID: 0} - target: {fileID: 1665109046784520929, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: WebGlWalletOptions.walletAdapterUIPrefab value: objectReference: {fileID: 8029027132386834937, guid: 84cec7499f44a4acdaf738624c9403d7, type: 3} - target: {fileID: 1665109046784520929, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: WebGlWalletOptions.walletAdapterButtonPrefab value: objectReference: {fileID: 2788795083137714619, guid: afab34f3045ab4dd582079b6c04d3708, type: 3} - target: {fileID: 1665109046997100281, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: LoadNftsOnStartUp value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109047506567878, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_Name value: NftMintingService objectReference: {fileID: 0} - target: {fileID: 1665109048261681710, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_Name value: SolPlay objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_RootOrder value: 2 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalRotation.x value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalRotation.y value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalRotation.z value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 1665109048261681711, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: - targetCorrespondingSourceObject: {fileID: 1665109048261681710, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} insertIndex: -1 addedObject: {fileID: 7584541} - targetCorrespondingSourceObject: {fileID: 1665109048261681710, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} insertIndex: -1 addedObject: {fileID: 7584542} m_SourcePrefab: {fileID: 100100000, guid: 1b4fdc6f1968a43d68ee82dc0c862785, type: 3} --- !u!1 &243946009 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 243946010} - component: {fileID: 243946012} - component: {fileID: 243946011} m_Layer: 5 m_Name: Text (TMP) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &243946010 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 243946009} 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: 768833463} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -10, y: -10} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &243946011 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 243946009} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: <u>Playground Anchor Tutorial</u> m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294954381 m_fontColor: {r: 0.5518868, g: 0.80475944, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 49.05 m_fontSizeBase: 36 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 65.3 m_fontStyle: 0 m_HorizontalAlignment: 2 m_VerticalAlignment: 4096 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &243946012 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 243946009} m_CullTransparentMesh: 1 --- !u!1 &517090183 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 517090186} - component: {fileID: 517090185} - component: {fileID: 517090184} m_Layer: 0 m_Name: Camera m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!81 &517090184 AudioListener: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 517090183} m_Enabled: 1 --- !u!20 &517090185 Camera: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 517090183} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 m_Iso: 200 m_ShutterSpeed: 0.005 m_Aperture: 16 m_FocusDistance: 10 m_FocalLength: 50 m_BladeCount: 5 m_Curvature: {x: 2, y: 11} m_BarrelClipping: 0.25 m_Anamorphism: 0 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 y: 0 width: 1 height: 1 near clip plane: 0.3 far clip plane: 1000 field of view: 60 orthographic: 0 orthographic size: 5 m_Depth: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 m_RenderingPath: -1 m_TargetTexture: {fileID: 0} m_TargetDisplay: 0 m_TargetEye: 3 m_HDR: 1 m_AllowMSAA: 1 m_AllowDynamicResolution: 0 m_ForceIntoRT: 0 m_OcclusionCulling: 1 m_StereoConvergence: 10 m_StereoSeparation: 0.022 --- !u!4 &517090186 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 517090183} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 1353.4459, y: 254.04395, z: 3.302246} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &523000148 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 523000152} - component: {fileID: 523000151} - component: {fileID: 523000150} - component: {fileID: 523000149} m_Layer: 5 m_Name: Canvas m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!114 &523000149 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 523000148} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} m_Name: m_EditorClassIdentifier: m_IgnoreReversedGraphics: 1 m_BlockingObjects: 0 m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 --- !u!114 &523000150 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 523000148} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: m_UiScaleMode: 1 m_ReferencePixelsPerUnit: 100 m_ScaleFactor: 1 m_ReferenceResolution: {x: 1080, y: 1920} m_ScreenMatchMode: 0 m_MatchWidthOrHeight: 1 m_PhysicalUnit: 3 m_FallbackScreenDPI: 96 m_DefaultSpriteDPI: 96 m_DynamicPixelsPerUnit: 1 m_PresetInfoIsWorld: 0 --- !u!223 &523000151 Canvas: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 523000148} m_Enabled: 1 serializedVersion: 3 m_RenderMode: 0 m_Camera: {fileID: 0} m_PlaneDistance: 100 m_PixelPerfect: 0 m_ReceivesEvents: 1 m_OverrideSorting: 0 m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 m_VertexColorAlwaysGammaSpace: 0 m_AdditionalShaderChannelsFlag: 25 m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 --- !u!224 &523000152 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 523000148} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0, y: 0, z: 0} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 6926694630835016834} - {fileID: 1923276699} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} --- !u!1001 &588849878 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 69073605} m_Modifications: - target: {fileID: 4543230662287133981, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_text value: Get Data objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_RootOrder value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.x value: 361.644 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.y value: 114.25 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.x value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.y value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.z value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328021, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Name value: GetDataButton objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c27ebc42ed62d4f528778183ed634846, type: 3} --- !u!224 &588849879 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 588849878} m_PrefabAsset: {fileID: 0} --- !u!114 &588849880 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 4543230662569328023, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 588849878} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1001 &654573154 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 1923276699} m_Modifications: - target: {fileID: 1274442948750222487, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_Pivot.y value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_RootOrder value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMax.x value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_SizeDelta.y value: 100 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992220359611, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_Name value: SolBalanceWidget objectReference: {fileID: 0} - target: {fileID: 7768150992304558030, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992304558030, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992304558030, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992304558030, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7768150992304558030, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} --- !u!224 &654573155 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 7768150992220359610, guid: 932385457eb6e48999e46c08f0039d6c, type: 3} m_PrefabInstance: {fileID: 654573154} m_PrefabAsset: {fileID: 0} --- !u!1001 &692983195 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 69073605} m_Modifications: - target: {fileID: 4543230662287133981, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_text value: 'Move Right ' objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_RootOrder value: 2 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.x value: 361.644 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.y value: 114.25 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.x value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.y value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.z value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328021, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Name value: MoveRightButton objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c27ebc42ed62d4f528778183ed634846, type: 3} --- !u!224 &692983196 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 692983195} m_PrefabAsset: {fileID: 0} --- !u!114 &692983197 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 4543230662569328023, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 692983195} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1 &768833462 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 768833463} - component: {fileID: 768833466} - component: {fileID: 768833465} - component: {fileID: 768833464} - component: {fileID: 768833467} m_Layer: 5 m_Name: PlayGroundTutorial m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &768833463 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 768833462} 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: - {fileID: 243946010} m_Father: {fileID: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: -485} m_SizeDelta: {x: 735.4715, y: 64.814} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &768833464 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 768833462} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_SelectedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 768833465} m_OnClick: m_PersistentCalls: m_Calls: [] --- !u!114 &768833465 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 768833462} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.92156863, g: 0.8627451, b: 1, a: 0} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &768833466 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 768833462} m_CullTransparentMesh: 1 --- !u!114 &768833467 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 768833462} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 350b9575120a432ea1f88ad3f077fd88, type: 3} m_Name: m_EditorClassIdentifier: Url: https://beta.solpg.io/tutorials --- !u!1 &831754518 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 831754519} - component: {fileID: 831754520} m_Layer: 0 m_Name: TinyAdventureService m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &831754519 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 831754518} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 328.10583, y: 144.91623, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &831754520 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 831754518} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: a92e9c189aaf94165a077a95f40b1dad, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1 &927159281 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 927159282} - component: {fileID: 927159284} - component: {fileID: 927159283} m_Layer: 5 m_Name: Bg m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &927159282 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 927159281} 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: 1923276699} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &927159283 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 927159281} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.084905684, g: 0.0813012, b: 0.0813012, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &927159284 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 927159281} m_CullTransparentMesh: 1 --- !u!1 &949460293 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 949460296} - component: {fileID: 949460295} - component: {fileID: 949460294} m_Layer: 0 m_Name: EventSystem m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!114 &949460294 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 949460293} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} m_Name: m_EditorClassIdentifier: m_SendPointerHoverToParent: 1 m_HorizontalAxis: Horizontal m_VerticalAxis: Vertical m_SubmitButton: Submit m_CancelButton: Cancel m_InputActionsPerSecond: 10 m_RepeatDelay: 0.5 m_ForceModuleActive: 0 --- !u!114 &949460295 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 949460293} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} m_Name: m_EditorClassIdentifier: m_FirstSelected: {fileID: 0} m_sendNavigationEvents: 1 m_DragThreshold: 10 --- !u!4 &949460296 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 949460293} serializedVersion: 2 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &987599039 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 987599041} - component: {fileID: 987599040} m_Layer: 0 m_Name: WebSocketService m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!114 &987599040 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 987599039} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 531e734d26914e15aa57cd7e79c22d24, type: 3} m_Name: m_EditorClassIdentifier: socketUrl: --- !u!4 &987599041 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 987599039} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 1919.4207, y: 1533.5028, z: 36.344116} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1068963714 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 1068963715} - component: {fileID: 1068963717} - component: {fileID: 1068963716} m_Layer: 5 m_Name: TinyAdventureLogo m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &1068963715 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1068963714} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 20} m_SizeDelta: {x: 488.948, y: 488.948} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1068963716 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1068963714} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 21300000, guid: d3dca9b8f9c34483d8fd1f9e48087aa3, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &1068963717 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1068963714} m_CullTransparentMesh: 1 --- !u!1 &1562826001 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 1562826002} - component: {fileID: 1562826004} - component: {fileID: 1562826003} m_Layer: 5 m_Name: Text (TMP) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &1562826002 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1562826001} 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: 1923276699} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 53} m_SizeDelta: {x: 1064.847, y: 281.811} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1562826003 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1562826001} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: ........... m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294967295 m_fontColor: {r: 1, g: 1, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 200 m_fontSizeBase: 89 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 200 m_fontStyle: 0 m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &1562826004 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1562826001} m_CullTransparentMesh: 1 --- !u!1001 &1872057917 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 69073605} m_Modifications: - target: {fileID: 4543230662287133981, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_text value: MoveLeft objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_RootOrder value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.x value: 361.644 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_SizeDelta.y value: 114.25 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.x value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.y value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalScale.z value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 4543230662569328021, guid: c27ebc42ed62d4f528778183ed634846, type: 3} propertyPath: m_Name value: MoveLeft objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c27ebc42ed62d4f528778183ed634846, type: 3} --- !u!224 &1872057918 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 1872057917} m_PrefabAsset: {fileID: 0} --- !u!114 &1872057919 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 4543230662569328023, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 1872057917} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1 &1923276698 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 1923276699} - component: {fileID: 1923276700} m_Layer: 5 m_Name: TinyAdventureScreen m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &1923276699 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1923276698} 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: - {fileID: 927159282} - {fileID: 654573155} - {fileID: 1562826002} - {fileID: 1931158307} - {fileID: 69073605} m_Father: {fileID: 523000152} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1923276700 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1923276698} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 055f7457e80a48db8ac688dc0fd59bf7, type: 3} m_Name: m_EditorClassIdentifier: GetDataButton: {fileID: 588849880} MoveRightButton: {fileID: 692983197} MoveLeftButton: {fileID: 1872057919} InitializeButton: {fileID: 1931158304} GameText: {fileID: 1562826003} --- !u!114 &1931158304 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 4543230662569328023, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 57817228} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!224 &1931158307 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 4543230662569328020, guid: c27ebc42ed62d4f528778183ed634846, type: 3} m_PrefabInstance: {fileID: 57817228} m_PrefabAsset: {fileID: 0} --- !u!224 &1089842552726381273 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5379045258127388937} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 159.9065, y: 160.0711} m_Pivot: {x: 1, y: 0} --- !u!1001 &3757795471977251451 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_Pivot.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_Pivot.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_RootOrder value: 4 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalRotation.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalRotation.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalRotation.z value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744788, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 557930710583744789, guid: bc76dbd9ca62145069ac709427e99206, type: 3} propertyPath: m_Name value: BlimpSystem objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: bc76dbd9ca62145069ac709427e99206, type: 3} --- !u!222 &5177959830355405659 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5379045258127388937} m_CullTransparentMesh: 1 --- !u!1 &5379045258127388937 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 1089842552726381273} - component: {fileID: 5177959830355405659} - component: {fileID: 6430937675031912370} m_Layer: 5 m_Name: SolPlayLogo m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!114 &6430937675031912370 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5379045258127388937} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 21300000, guid: 10f8d2be3c1c5446e88355f616fa2d18, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!1001 &6926694629650244503 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 6926694630835016834} m_Modifications: - target: {fileID: 7612631131050689927, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_text value: Login objectReference: {fileID: 0} - target: {fileID: 7612631131050689927, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_fontSize value: 72 objectReference: {fileID: 0} - target: {fileID: 7612631132051556601, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Sprite value: objectReference: {fileID: 21300000, guid: b00ee92b032968a42bfcb4bb760de2e9, type: 3} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_RootOrder value: 10 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMax.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMin.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_SizeDelta.x value: 391.002 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_SizeDelta.y value: 124.65503 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchoredPosition.x value: 317.99997 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchoredPosition.y value: 160 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271729, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Name value: DevNetLoginButton objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c833d001d438f4e59ba11a34162690f6, type: 3} --- !u!224 &6926694629650244504 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} m_PrefabInstance: {fileID: 6926694629650244503} m_PrefabAsset: {fileID: 0} --- !u!114 &6926694629650244505 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 7612631132572271727, guid: c833d001d438f4e59ba11a34162690f6, type: 3} m_PrefabInstance: {fileID: 6926694629650244503} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1 &6926694629947226562 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694629947226563} - component: {fileID: 6926694629947226565} - component: {fileID: 6926694629947226564} m_Layer: 5 m_Name: Text (TMP) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694629947226563 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694629947226562} 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: 6926694630333265299} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -10, y: -10} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694629947226564 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694629947226562} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: <u>Open Source Repository</u> m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294954381 m_fontColor: {r: 0.5518868, g: 0.80475944, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 48.45 m_fontSizeBase: 36 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 65.3 m_fontStyle: 0 m_HorizontalAlignment: 2 m_VerticalAlignment: 4096 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &6926694629947226565 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694629947226562} m_CullTransparentMesh: 1 --- !u!1 &6926694630015193784 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630015193785} - component: {fileID: 6926694630015193787} - component: {fileID: 6926694630015193786} m_Layer: 5 m_Name: DevNetLoginText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630015193785 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630015193784} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} m_AnchoredPosition: {x: 318, y: 265.26013} m_SizeDelta: {x: 807.649, y: 46.0979} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630015193786 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630015193784} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: DEV NET m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294967295 m_fontColor: {r: 1, g: 1, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 41.25 m_fontSizeBase: 36 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 1 m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &6926694630015193787 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630015193784} m_CullTransparentMesh: 1 --- !u!1 &6926694630066206869 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630066206870} - component: {fileID: 6926694630066206873} - component: {fileID: 6926694630066206872} - component: {fileID: 6926694630066206871} - component: {fileID: 6926694630066206874} m_Layer: 5 m_Name: YoutubeButton m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630066206870 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630066206869} 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: - {fileID: 6926694630860688953} m_Father: {fileID: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: -311.00003} m_SizeDelta: {x: 453.331, y: 64.814026} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630066206871 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630066206869} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_SelectedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 6926694630066206872} m_OnClick: m_PersistentCalls: m_Calls: [] --- !u!114 &6926694630066206872 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630066206869} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.92156863, g: 0.8627451, b: 1, a: 0} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &6926694630066206873 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630066206869} m_CullTransparentMesh: 1 --- !u!114 &6926694630066206874 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630066206869} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 350b9575120a432ea1f88ad3f077fd88, type: 3} m_Name: m_EditorClassIdentifier: Url: https://www.youtube.com/@solplay8055 --- !u!1 &6926694630246317168 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630246317169} - component: {fileID: 6926694630246317171} - component: {fileID: 6926694630246317170} m_Layer: 5 m_Name: BlackBg m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630246317169 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630246317168} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -0.00012207031, y: -0.00012207031} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630246317170 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630246317168} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0, g: 0, b: 0, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &6926694630246317171 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630246317168} m_CullTransparentMesh: 1 --- !u!1 &6926694630249896786 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630249896787} - component: {fileID: 6926694630249896789} - component: {fileID: 6926694630249896788} m_Layer: 5 m_Name: Headline m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630249896787 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630249896786} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 357} m_SizeDelta: {x: 1368.371, y: 185.05} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630249896788 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630249896786} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: Tiny Adventure Anchor Example m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294967295 m_fontColor: {r: 1, g: 1, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 72 m_fontSizeBase: 43.3 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 1 m_HorizontalAlignment: 2 m_VerticalAlignment: 256 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &6926694630249896789 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630249896786} m_CullTransparentMesh: 1 --- !u!1 &6926694630333265298 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630333265299} - component: {fileID: 6926694630333265302} - component: {fileID: 6926694630333265301} - component: {fileID: 6926694630333265300} - component: {fileID: 6926694630333265303} m_Layer: 5 m_Name: RepositoryButton m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630333265299 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630333265298} 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: - {fileID: 6926694629947226563} m_Father: {fileID: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: -401} m_SizeDelta: {x: 540.645, y: 64.81598} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630333265300 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630333265298} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_SelectedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 6926694630333265301} m_OnClick: m_PersistentCalls: m_Calls: [] --- !u!114 &6926694630333265301 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630333265298} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.92156863, g: 0.8627451, b: 1, a: 0} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &6926694630333265302 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630333265298} m_CullTransparentMesh: 1 --- !u!114 &6926694630333265303 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630333265298} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 350b9575120a432ea1f88ad3f077fd88, type: 3} m_Name: m_EditorClassIdentifier: Url: https://github.com/Woody4618/SolPlay_Unity_SDK --- !u!1 &6926694630835016833 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630835016834} - component: {fileID: 6926694630835016835} m_Layer: 5 m_Name: LoginScreen m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630835016834 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630835016833} 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: - {fileID: 6926694630246317169} - {fileID: 6926694631304926847} - {fileID: 6926694631168783081} - {fileID: 6926694630249896787} - {fileID: 1089842552726381273} - {fileID: 6926694630066206870} - {fileID: 6926694630333265299} - {fileID: 6926694631080689445} - {fileID: 6926694631276982814} - {fileID: 6926694630015193785} - {fileID: 6926694629650244504} - {fileID: 1068963715} - {fileID: 768833463} m_Father: {fileID: 523000152} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630835016835 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630835016833} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: b49233f6bdd6e4595990b68ad018fea4, type: 3} m_Name: m_EditorClassIdentifier: DevnetLoginButton: {fileID: 0} DevnetInGameWalletButton: {fileID: 6926694629650244505} LocalhostInGameWalletButton: {fileID: 0} MainNetButton: {fileID: 6926694631276982815} ConnectedRoot: {fileID: 1923276698} NotConnectedRoot: {fileID: 6926694630835016833} TabBarRoot: {fileID: 0} LoadingRoot: {fileID: 0} --- !u!1 &6926694630860688952 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694630860688953} - component: {fileID: 6926694630860688955} - component: {fileID: 6926694630860688954} m_Layer: 5 m_Name: Text (TMP) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694630860688953 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630860688952} 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: 6926694630066206870} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -10, y: -10} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694630860688954 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630860688952} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: <u>Youtube tutorials</u> m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294954381 m_fontColor: {r: 0.5518868, g: 0.80475944, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 49.05 m_fontSizeBase: 36 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 65.3 m_fontStyle: 0 m_HorizontalAlignment: 2 m_VerticalAlignment: 4096 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &6926694630860688955 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694630860688952} m_CullTransparentMesh: 1 --- !u!1 &6926694631080689444 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694631080689445} - component: {fileID: 6926694631080689447} - component: {fileID: 6926694631080689446} m_Layer: 5 m_Name: PhantomLoginText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694631080689445 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631080689444} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} m_AnchoredPosition: {x: -276, y: 262} m_SizeDelta: {x: 807.649, y: 42.146973} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694631080689446 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631080689444} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_text: MAIN NET m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_sharedMaterial: {fileID: -3394166955387361548, guid: 3d86a2d4b7b18304a8631951b7259a39, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 rgba: 4294967295 m_fontColor: {r: 1, g: 1, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: topLeft: {r: 1, g: 1, b: 1, a: 1} topRight: {r: 1, g: 1, b: 1, a: 1} bottomLeft: {r: 1, g: 1, b: 1, a: 1} bottomRight: {r: 1, g: 1, b: 1, a: 1} m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 m_StyleSheet: {fileID: 0} m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 m_fontSize: 37.7 m_fontSizeBase: 36 m_fontWeight: 400 m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 1 m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &6926694631080689447 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631080689444} m_CullTransparentMesh: 1 --- !u!1 &6926694631168783080 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694631168783081} - component: {fileID: 6926694631168783083} - component: {fileID: 6926694631168783082} m_Layer: 5 m_Name: HeaderImage m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694631168783081 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631168783080} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 46.985} m_Pivot: {x: 0.5, y: 1} --- !u!114 &6926694631168783082 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631168783080} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 21300000, guid: 89bb85b08e45ef545b6ebaf134d62615, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &6926694631168783083 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631168783080} m_CullTransparentMesh: 1 --- !u!1001 &6926694631276982813 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: serializedVersion: 3 m_TransformParent: {fileID: 6926694630835016834} m_Modifications: - target: {fileID: 7612631131050689927, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_text value: Login objectReference: {fileID: 0} - target: {fileID: 7612631131050689927, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_fontSize value: 72 objectReference: {fileID: 0} - target: {fileID: 7612631132051556601, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Sprite value: objectReference: {fileID: 21300000, guid: 6344be45c57db8d47ba5ab0a9bf5f2f3, type: 3} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_RootOrder value: 8 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMax.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMin.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_SizeDelta.x value: 391.002 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_SizeDelta.y value: 124.65503 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchoredPosition.x value: -276.00003 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_AnchoredPosition.y value: 164 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7612631132572271729, guid: c833d001d438f4e59ba11a34162690f6, type: 3} propertyPath: m_Name value: PhantomLoginButton objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c833d001d438f4e59ba11a34162690f6, type: 3} --- !u!224 &6926694631276982814 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 7612631132572271726, guid: c833d001d438f4e59ba11a34162690f6, type: 3} m_PrefabInstance: {fileID: 6926694631276982813} m_PrefabAsset: {fileID: 0} --- !u!114 &6926694631276982815 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 7612631132572271727, guid: c833d001d438f4e59ba11a34162690f6, type: 3} m_PrefabInstance: {fileID: 6926694631276982813} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} m_Name: m_EditorClassIdentifier: --- !u!1 &6926694631304926846 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 6926694631304926847} - component: {fileID: 6926694631304926849} - component: {fileID: 6926694631304926848} m_Layer: 5 m_Name: Bg m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &6926694631304926847 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631304926846} 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: 6926694630835016834} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -0.00012207031, y: -0.00012207031} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6926694631304926848 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631304926846} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.0627451, g: 0.043137256, b: 0.1764706, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 --- !u!222 &6926694631304926849 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6926694631304926846} m_CullTransparentMesh: 1 --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 m_Roots: - {fileID: 523000152} - {fileID: 949460296} - {fileID: 121978677} - {fileID: 517090186} - {fileID: 3757795471977251451} - {fileID: 831754519} - {fileID: 987599041}
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Examples/TinyAdventure/TinyAdventureScreen.cs.meta
fileFormatVersion: 2 guid: 055f7457e80a48db8ac688dc0fd59bf7 timeCreated: 1669669804
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemBank.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Threading.Tasks; using GemBank.Accounts; using GemBank.Errors; using GemBank.Program; using GemFarm.Program; using GemFarm.Errors; using GemFarm.Accounts; using GemFarm.Types; using Solana.Unity.Programs.Abstract; using Solana.Unity.Programs.Models; using Solana.Unity.Programs.Utilities; using Solana.Unity.Rpc; using Solana.Unity.Rpc.Core.Http; using Solana.Unity.Rpc.Core.Sockets; using Solana.Unity.Rpc.Messages; using Solana.Unity.Rpc.Models; using Solana.Unity.Rpc.Types; using Solana.Unity.Wallet; using RewardType = GemFarm.Types.RewardType; namespace GemBank { namespace Accounts { public partial class Bank { public static ulong ACCOUNT_DISCRIMINATOR => 13574203538458161550UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{142, 49, 166, 242, 50, 66, 97, 188}; public static string ACCOUNT_DISCRIMINATOR_B58 => "QnTef4UXSzF"; public ushort Version { get; set; } public PublicKey BankManager { get; set; } public uint Flags { get; set; } public uint WhitelistedCreators { get; set; } public uint WhitelistedMints { get; set; } public ulong VaultCount { get; set; } public byte[] Reserved { get; set; } public static Bank Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } Bank result = new Bank(); result.Version = _data.GetU16(offset); offset += 2; result.BankManager = _data.GetPubKey(offset); offset += 32; result.Flags = _data.GetU32(offset); offset += 4; result.WhitelistedCreators = _data.GetU32(offset); offset += 4; result.WhitelistedMints = _data.GetU32(offset); offset += 4; result.VaultCount = _data.GetU64(offset); offset += 8; result.Reserved = _data.GetBytes(offset, 64); offset += 64; return result; } } public partial class GemDepositReceipt { public static ulong ACCOUNT_DISCRIMINATOR => 13481704650073353942UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{214, 174, 90, 58, 243, 162, 24, 187}; public static string ACCOUNT_DISCRIMINATOR_B58 => "cugAXF7JS7L"; public PublicKey Vault { get; set; } public PublicKey GemBoxAddress { get; set; } public PublicKey GemMint { get; set; } public ulong GemCount { get; set; } public byte[] Reserved { get; set; } public static GemDepositReceipt Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } GemDepositReceipt result = new GemDepositReceipt(); result.Vault = _data.GetPubKey(offset); offset += 32; result.GemBoxAddress = _data.GetPubKey(offset); offset += 32; result.GemMint = _data.GetPubKey(offset); offset += 32; result.GemCount = _data.GetU64(offset); offset += 8; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return result; } } public partial class Rarity { public static ulong ACCOUNT_DISCRIMINATOR => 3845974823817967121UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{17, 246, 195, 180, 185, 165, 95, 53}; public static string ACCOUNT_DISCRIMINATOR_B58 => "41GouGRdMkg"; public ushort Points { get; set; } public static Rarity Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } Rarity result = new Rarity(); result.Points = _data.GetU16(offset); offset += 2; return result; } } public partial class Vault { public static ulong ACCOUNT_DISCRIMINATOR => 8607953397882554579UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{211, 8, 232, 43, 2, 152, 117, 119}; public static string ACCOUNT_DISCRIMINATOR_B58 => "cJJWPqNMczr"; public PublicKey Bank { get; set; } public PublicKey Owner { get; set; } public PublicKey Creator { get; set; } public PublicKey Authority { get; set; } public PublicKey AuthoritySeed { get; set; } public byte[] AuthorityBumpSeed { get; set; } public bool Locked { get; set; } public byte[] Name { get; set; } public ulong GemBoxCount { get; set; } public ulong GemCount { get; set; } public ulong RarityPoints { get; set; } public byte[] Reserved { get; set; } public static Vault Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } Vault result = new Vault(); result.Bank = _data.GetPubKey(offset); offset += 32; result.Owner = _data.GetPubKey(offset); offset += 32; result.Creator = _data.GetPubKey(offset); offset += 32; result.Authority = _data.GetPubKey(offset); offset += 32; result.AuthoritySeed = _data.GetPubKey(offset); offset += 32; result.AuthorityBumpSeed = _data.GetBytes(offset, 1); offset += 1; result.Locked = _data.GetBool(offset); offset += 1; result.Name = _data.GetBytes(offset, 32); offset += 32; result.GemBoxCount = _data.GetU64(offset); offset += 8; result.GemCount = _data.GetU64(offset); offset += 8; result.RarityPoints = _data.GetU64(offset); offset += 8; result.Reserved = _data.GetBytes(offset, 64); offset += 64; return result; } } public partial class WhitelistProof { public static ulong ACCOUNT_DISCRIMINATOR => 2876782271992227522UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{194, 230, 60, 10, 60, 98, 236, 39}; public static string ACCOUNT_DISCRIMINATOR_B58 => "ZbmY7scC3Mp"; public byte WhitelistType { get; set; } public PublicKey WhitelistedAddress { get; set; } public PublicKey Bank { get; set; } public static WhitelistProof Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } WhitelistProof result = new WhitelistProof(); result.WhitelistType = _data.GetU8(offset); offset += 1; result.WhitelistedAddress = _data.GetPubKey(offset); offset += 32; result.Bank = _data.GetPubKey(offset); offset += 32; return result; } } } namespace Errors { public enum GemBankErrorKind : uint { } } namespace Types { public partial class RarityConfig { public PublicKey Mint { get; set; } public ushort RarityPoints { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WritePubKey(Mint, offset); offset += 32; _data.WriteU16(RarityPoints, offset); offset += 2; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out RarityConfig result) { int offset = initialOffset; result = new RarityConfig(); result.Mint = _data.GetPubKey(offset); offset += 32; result.RarityPoints = _data.GetU16(offset); offset += 2; return offset - initialOffset; } } } public partial class GemBankClient : TransactionalBaseClient<GemBankErrorKind> { public GemBankClient(IRpcClient rpcClient, IStreamingRpcClient streamingRpcClient, PublicKey programId) : base(rpcClient, streamingRpcClient, programId) { } public async Task<ProgramAccountsResultWrapper<List<Bank>>> GetBanksAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = Bank.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<Bank>>(res); List<Bank> resultingAccounts = new List<Bank>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => Bank.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<Bank>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<GemDepositReceipt>>> GetGemDepositReceiptsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = GemDepositReceipt.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<GemDepositReceipt>>(res); List<GemDepositReceipt> resultingAccounts = new List<GemDepositReceipt>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => GemDepositReceipt.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<GemDepositReceipt>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<Rarity>>> GetRaritysAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = Rarity.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<Rarity>>(res); List<Rarity> resultingAccounts = new List<Rarity>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => Rarity.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<Rarity>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<Vault>>> GetVaultsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = Vault.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<Vault>>(res); List<Vault> resultingAccounts = new List<Vault>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => Vault.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<Vault>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<WhitelistProof>>> GetWhitelistProofsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = WhitelistProof.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<WhitelistProof>>(res); List<WhitelistProof> resultingAccounts = new List<WhitelistProof>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => WhitelistProof.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<WhitelistProof>>(res, resultingAccounts); } public async Task<AccountResultWrapper<Bank>> GetBankAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<Bank>(res); var resultingAccount = Bank.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<Bank>(res, resultingAccount); } public async Task<AccountResultWrapper<GemDepositReceipt>> GetGemDepositReceiptAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<GemDepositReceipt>(res); var resultingAccount = GemDepositReceipt.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<GemDepositReceipt>(res, resultingAccount); } public async Task<AccountResultWrapper<Rarity>> GetRarityAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<Rarity>(res); var resultingAccount = Rarity.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<Rarity>(res, resultingAccount); } public async Task<AccountResultWrapper<Vault>> GetVaultAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<Vault>(res); var resultingAccount = Vault.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<Vault>(res, resultingAccount); } public async Task<AccountResultWrapper<WhitelistProof>> GetWhitelistProofAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<WhitelistProof>(res); var resultingAccount = WhitelistProof.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<WhitelistProof>(res, resultingAccount); } public async Task<SubscriptionState> SubscribeBankAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, Bank> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { Bank parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = Bank.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeGemDepositReceiptAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, GemDepositReceipt> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { GemDepositReceipt parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = GemDepositReceipt.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeRarityAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, Rarity> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { Rarity parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = Rarity.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeVaultAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, Vault> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { Vault parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = Vault.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeWhitelistProofAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, WhitelistProof> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { WhitelistProof parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = WhitelistProof.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<RequestResult<string>> SendInitBankAsync(InitBankAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.InitBank(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendSetBankFlagsAsync(SetBankFlagsAccounts accounts, uint flags, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.SetBankFlags(accounts, flags, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendInitVaultAsync(InitVaultAccounts accounts, PublicKey owner, string name, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.InitVault(accounts, owner, name, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendSetVaultLockAsync(SetVaultLockAccounts accounts, bool vaultLock, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.SetVaultLock(accounts, vaultLock, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendUpdateVaultOwnerAsync(UpdateVaultOwnerAccounts accounts, PublicKey newOwner, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.UpdateVaultOwner(accounts, newOwner, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendDepositGemAsync(DepositGemAccounts accounts, byte bumpAuth, byte bumpRarity, ulong amount, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.DepositGem(accounts, bumpAuth, bumpRarity, amount, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendWithdrawGemAsync(WithdrawGemAccounts accounts, byte bumpAuth, byte bumpGemBox, byte bumpGdr, byte bumpRarity, ulong amount, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.WithdrawGem(accounts, bumpAuth, bumpGemBox, bumpGdr, bumpRarity, amount, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendAddToWhitelistAsync(AddToWhitelistAccounts accounts, byte whitelistType, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.AddToWhitelist(accounts, whitelistType, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendRemoveFromWhitelistAsync(RemoveFromWhitelistAccounts accounts, byte bump, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.RemoveFromWhitelist(accounts, bump, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendUpdateBankManagerAsync(UpdateBankManagerAccounts accounts, PublicKey newManager, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.UpdateBankManager(accounts, newManager, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendRecordRarityPointsAsync(RecordRarityPointsAccounts accounts, RarityConfig[] rarityConfigs, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemBankProgram.RecordRarityPoints(accounts, rarityConfigs, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } protected override Dictionary<uint, ProgramError<GemBankErrorKind>> BuildErrorsDictionary() { return new Dictionary<uint, ProgramError<GemBankErrorKind>>{}; } } namespace Program { public class InitBankAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } public PublicKey Payer { get; set; } public PublicKey SystemProgram { get; set; } } public class SetBankFlagsAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } } public class InitVaultAccounts { public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey Creator { get; set; } public PublicKey Payer { get; set; } public PublicKey SystemProgram { get; set; } } public class SetVaultLockAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } public PublicKey Vault { get; set; } } public class UpdateVaultOwnerAccounts { public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey Owner { get; set; } } public class DepositGemAccounts { public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey Owner { get; set; } public PublicKey Authority { get; set; } public PublicKey GemBox { get; set; } public PublicKey GemDepositReceipt { get; set; } public PublicKey GemSource { get; set; } public PublicKey GemMint { get; set; } public PublicKey GemRarity { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey Rent { get; set; } } public class WithdrawGemAccounts { public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey Owner { get; set; } public PublicKey Authority { get; set; } public PublicKey GemBox { get; set; } public PublicKey GemDepositReceipt { get; set; } public PublicKey GemDestination { get; set; } public PublicKey GemMint { get; set; } public PublicKey GemRarity { get; set; } public PublicKey Receiver { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey AssociatedTokenProgram { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey Rent { get; set; } } public class AddToWhitelistAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } public PublicKey AddressToWhitelist { get; set; } public PublicKey WhitelistProof { get; set; } public PublicKey Payer { get; set; } public PublicKey SystemProgram { get; set; } } public class RemoveFromWhitelistAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } public PublicKey FundsReceiver { get; set; } public PublicKey AddressToRemove { get; set; } public PublicKey WhitelistProof { get; set; } } public class UpdateBankManagerAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } } public class RecordRarityPointsAccounts { public PublicKey Bank { get; set; } public PublicKey BankManager { get; set; } public PublicKey Payer { get; set; } public PublicKey SystemProgram { get; set; } } public static class GemBankProgram { public static TransactionInstruction InitBank(InitBankAccounts accounts, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, true), AccountMeta.ReadOnly(accounts.BankManager, true), AccountMeta.Writable(accounts.Payer, true), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(5809504752993267529UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction SetBankFlags(SetBankFlagsAccounts accounts, uint flags, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(4617862328513415535UL, offset); offset += 8; _data.WriteU32(flags, offset); offset += 4; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction InitVault(InitVaultAccounts accounts, PublicKey owner, string name, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.Creator, true), AccountMeta.Writable(accounts.Payer, true), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(7652980405088636749UL, offset); offset += 8; _data.WritePubKey(owner, offset); offset += 32; offset += _data.WriteBorshString(name, offset); byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction SetVaultLock(SetVaultLockAccounts accounts, bool vaultLock, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true), AccountMeta.Writable(accounts.Vault, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(9865180796695945732UL, offset); offset += 8; _data.WriteBool(vaultLock, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction UpdateVaultOwner(UpdateVaultOwnerAccounts accounts, PublicKey newOwner, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.Owner, true)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(6581210188386450043UL, offset); offset += 8; _data.WritePubKey(newOwner, offset); offset += 32; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction DepositGem(DepositGemAccounts accounts, byte bumpAuth, byte bumpRarity, ulong amount, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.Writable(accounts.Owner, true), AccountMeta.ReadOnly(accounts.Authority, false), AccountMeta.Writable(accounts.GemBox, false), AccountMeta.Writable(accounts.GemDepositReceipt, false), AccountMeta.Writable(accounts.GemSource, false), AccountMeta.ReadOnly(accounts.GemMint, false), AccountMeta.ReadOnly(accounts.GemRarity, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.Rent, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(17284335414940532991UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpRarity, offset); offset += 1; _data.WriteU64(amount, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction WithdrawGem(WithdrawGemAccounts accounts, byte bumpAuth, byte bumpGemBox, byte bumpGdr, byte bumpRarity, ulong amount, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.Writable(accounts.Owner, true), AccountMeta.ReadOnly(accounts.Authority, false), AccountMeta.Writable(accounts.GemBox, false), AccountMeta.Writable(accounts.GemDepositReceipt, false), AccountMeta.Writable(accounts.GemDestination, false), AccountMeta.ReadOnly(accounts.GemMint, false), AccountMeta.ReadOnly(accounts.GemRarity, false), AccountMeta.Writable(accounts.Receiver, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.AssociatedTokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.Rent, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(1396909096445614567UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpGemBox, offset); offset += 1; _data.WriteU8(bumpGdr, offset); offset += 1; _data.WriteU8(bumpRarity, offset); offset += 1; _data.WriteU64(amount, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction AddToWhitelist(AddToWhitelistAccounts accounts, byte whitelistType, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true), AccountMeta.ReadOnly(accounts.AddressToWhitelist, false), AccountMeta.Writable(accounts.WhitelistProof, false), AccountMeta.Writable(accounts.Payer, true), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(3964664726796161949UL, offset); offset += 8; _data.WriteU8(whitelistType, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction RemoveFromWhitelist(RemoveFromWhitelistAccounts accounts, byte bump, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true), AccountMeta.Writable(accounts.FundsReceiver, false), AccountMeta.ReadOnly(accounts.AddressToRemove, false), AccountMeta.Writable(accounts.WhitelistProof, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(16988119801863376903UL, offset); offset += 8; _data.WriteU8(bump, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction UpdateBankManager(UpdateBankManagerAccounts accounts, PublicKey newManager, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(1129668442566628873UL, offset); offset += 8; _data.WritePubKey(newManager, offset); offset += 32; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction RecordRarityPoints(RecordRarityPointsAccounts accounts, RarityConfig[] rarityConfigs, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.ReadOnly(accounts.BankManager, true), AccountMeta.Writable(accounts.Payer, true), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(14827787719381918023UL, offset); offset += 8; _data.WriteS32(rarityConfigs.Length, offset); offset += 4; foreach (var rarityConfigsElement in rarityConfigs) { offset += rarityConfigsElement.Serialize(_data, offset); } byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/StakingService.cs
using System.Collections.Generic; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Frictionless; using GemBank.Program; using GemFarm.Program; using Solana.Unity.Rpc.Models; using Solana.Unity.Wallet; using SolPlay.Scripts.Services; using SolPlay.Scripts.Ui; using UnityEngine; namespace SolPlay.Staking { /// <summary> /// Staking service is still work in progress /// </summary> public class StakingService : MonoBehaviour { PublicKey BankProgrammId = new PublicKey( "bankHHdqMuaaST4qQk6mkzxGeKPHWmqdgor6Gs8r88m" ); PublicKey BankId = new PublicKey( "6qow2ZSoCNLupaohidmuuNUCoJ8fFpBeddx4JCc9M6at" ); private void Awake() { ServiceFactory.RegisterSingleton(this); } public async void RefreshFarm() { var transation = await BuildRefreshFarmTransaction(); var signature = await ServiceFactory.Resolve<WalletHolderService>().BaseWallet .SignAndSendTransaction(transation); if (string.IsNullOrEmpty(signature.Result)) { MessageRouter .RaiseMessage(new BlimpSystem.ShowLogMessage(signature.Reason)); } else { ServiceFactory.Resolve<TransactionService>() .CheckSignatureStatus(signature.Result, success => { Debug.Log("Farm refreshed successfully."); }); } } private async Task<Transaction> BuildRefreshFarmTransaction() { var wallet = ServiceFactory.Resolve<WalletHolderService>().BaseWallet; Transaction transaction = await CreateEmptyTransaction(); if (transaction == null) return null; var farmAddress = GemFarmPDAHelper.FindFarmerPDA(wallet.Account.PublicKey, out byte farmerBump); List<AccountMeta> accountMetaList = new List<AccountMeta>() { AccountMeta.Writable(GemFarmPDAHelper.Farm, false), AccountMeta.Writable(farmAddress, false), AccountMeta.Writable(wallet.Account.PublicKey, true), }; byte[] data = Encoding.Default.GetBytes(GemFarmPDAHelper.RefreshFarmInstructionIdentifier); /*var dataWithHashedInstructionIdentifier = SHA256.Create().ComputeHash(data).Slice(0, 9); dataWithHashedInstructionIdentifier.WriteU8(farmerBump, 8);*/ RefreshFarmerAccounts account = new RefreshFarmerAccounts(); account.Farm = GemFarmPDAHelper.Farm; account.Farmer = farmAddress; account.Identity = wallet.Account.PublicKey; TransactionInstruction instr = GemFarmProgram.RefreshFarmer(account, farmerBump, GemFarmPDAHelper.FarmProgramm); TransactionInstruction refreshFarmerInstruction = new TransactionInstruction() { ProgramId = GemFarmPDAHelper.FarmProgramm, Keys = accountMetaList, //Data = dataWithHashedInstructionIdentifier }; transaction.Instructions.Add(instr); //transaction.Instructions.Add(refreshFarmerInstruction); return transaction; } private async Task<Transaction> BuildStakeTransaction(bool unstake = false, bool skipRewards = false) { var wallet = ServiceFactory.Resolve<WalletHolderService>().BaseWallet; Transaction transaction = await CreateEmptyTransaction(); if (transaction == null) return null; var depositGemAccounts = new DepositGemAccounts(); TransactionInstruction depositGemInstruction = GemBankProgram.DepositGem(depositGemAccounts, 0, 0, 1, BankId); transaction.Instructions.Add(depositGemInstruction); return transaction; } private static async Task<Transaction> CreateEmptyTransaction() { var wallet = ServiceFactory.Resolve<WalletHolderService>().BaseWallet; var blockHash = await wallet.ActiveRpcClient.GetLatestBlockHashAsync(); if (blockHash.Result == null) { MessageRouter .RaiseMessage(new BlimpSystem.ShowLogMessage("Block hash null. Connected to internet?")); return null; } return new Transaction { RecentBlockHash = blockHash.Result.Value.Blockhash, FeePayer = wallet.Account.PublicKey, Signatures = new List<SignaturePubKeyPair>(), Instructions = new List<TransactionInstruction>() }; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemFarmPDAHelper.cs
using System.Text; using Solana.Unity.Wallet; using UnityEngine; namespace SolPlay.Staking { public class GemFarmPDAHelper { public static PublicKey FarmProgramm = new PublicKey( "farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE" ); public static PublicKey Farm = new PublicKey( "HBKYxnX9C98FNHqzXHzBiK7RW85bxmEoinVaMHmov3ac" ); public static string RefreshFarmInstructionIdentifier = "global:refresh_farmer"; public static PublicKey FindFarmerPDA(PublicKey walletPubKey, out byte farmerBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("farmer"), Farm.KeyBytes, walletPubKey.KeyBytes }, FarmProgramm, out PublicKey farmAddress, out farmerBump)) { Debug.LogError("Could not find farmer address"); return null; } return farmAddress; } public static PublicKey FindFarmAuthorityPDA(out byte bump) { if (!PublicKey.TryFindProgramAddress(new[] { Farm.KeyBytes }, FarmProgramm, out PublicKey farmAuth, out bump)) { Debug.LogError("Could not find farmer address"); return null; } return farmAuth; } public static PublicKey findFarmTreasuryPDA(PublicKey farm, out byte bump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("treasury"), farm.KeyBytes }, FarmProgramm, out PublicKey farmAddress, out bump)) { Debug.LogError("Could not find farmer address"); return null; } return farmAddress; } public static PublicKey findAuthorizationProofPDA(PublicKey farm, PublicKey founder, out byte bump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("authorization"), farm.KeyBytes, founder.KeyBytes }, FarmProgramm, out PublicKey farmAddress, out bump)) { Debug.LogError("Could not find farmer address"); return null; } return farmAddress; } public static PublicKey findRewardsPotPDA(PublicKey farm, PublicKey rewardMint, out byte bump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("reward_pot"), farm.KeyBytes, rewardMint.KeyBytes }, FarmProgramm, out PublicKey farmAddress, out bump)) { Debug.LogError("Could not find farmer address"); return null; } return farmAddress; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemFarmPDAHelper.cs.meta
fileFormatVersion: 2 guid: e4a50e225bd0404397a86496af64036e timeCreated: 1661340706
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/Farmer.cs.meta
fileFormatVersion: 2 guid: b084ab620dcdf4083aca842cf1d8be1f MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemBank.cs.meta
fileFormatVersion: 2 guid: a2f8a0d0903b41788ef7541ca4a4b3fd timeCreated: 1661890914
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemBankPDAHelper.cs.meta
fileFormatVersion: 2 guid: 40518541155d46a7a150af28af05b553 timeCreated: 1661893899
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemFarmIDL.json
{ "version": "0.1.0", "name": "gem_farm", "instructions": [ { "name": "initFarm", "accounts": [ { "name": "farm", "isMut": true, "isSigner": true }, { "name": "farmManager", "isMut": false, "isSigner": true }, { "name": "farmAuthority", "isMut": true, "isSigner": false }, { "name": "rewardAPot", "isMut": true, "isSigner": false }, { "name": "rewardAMint", "isMut": false, "isSigner": false }, { "name": "rewardBPot", "isMut": true, "isSigner": false }, { "name": "rewardBMint", "isMut": false, "isSigner": false }, { "name": "bank", "isMut": true, "isSigner": true }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "payer", "isMut": true, "isSigner": true }, { "name": "feeAcc", "isMut": true, "isSigner": false }, { "name": "rent", "isMut": false, "isSigner": false }, { "name": "tokenProgram", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpTreasury", "type": "u8" }, { "name": "rewardTypeA", "type": { "defined": "RewardType" } }, { "name": "rewardTypeB", "type": { "defined": "RewardType" } }, { "name": "farmConfig", "type": { "defined": "FarmConfig" } }, { "name": "maxCounts", "type": { "option": { "defined": "MaxCounts" } } }, { "name": "farmTreasury", "type": "publicKey" } ] }, { "name": "updateFarm", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": false, "isSigner": true } ], "args": [ { "name": "config", "type": { "option": { "defined": "FarmConfig" } } }, { "name": "manager", "type": { "option": "publicKey" } }, { "name": "maxCounts", "type": { "option": { "defined": "MaxCounts" } } } ] }, { "name": "payoutFromTreasury", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": false, "isSigner": true }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "farmTreasury", "isMut": true, "isSigner": false }, { "name": "destination", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpTreasury", "type": "u8" }, { "name": "lamports", "type": "u64" } ] }, { "name": "addToBankWhitelist", "accounts": [ { "name": "farm", "isMut": false, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "bank", "isMut": true, "isSigner": false }, { "name": "addressToWhitelist", "isMut": false, "isSigner": false }, { "name": "whitelistProof", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "whitelistType", "type": "u8" } ] }, { "name": "removeFromBankWhitelist", "accounts": [ { "name": "farm", "isMut": false, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "farmAuthority", "isMut": true, "isSigner": false }, { "name": "bank", "isMut": true, "isSigner": false }, { "name": "addressToRemove", "isMut": false, "isSigner": false }, { "name": "whitelistProof", "isMut": true, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpWl", "type": "u8" } ] }, { "name": "initFarmer", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": false, "isSigner": true }, { "name": "bank", "isMut": true, "isSigner": false }, { "name": "vault", "isMut": true, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "payer", "isMut": true, "isSigner": true }, { "name": "feeAcc", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [] }, { "name": "stake", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": true, "isSigner": true }, { "name": "bank", "isMut": false, "isSigner": false }, { "name": "vault", "isMut": true, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "feeAcc", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpFarmer", "type": "u8" } ] }, { "name": "unstake", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "farmTreasury", "isMut": true, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": true, "isSigner": true }, { "name": "bank", "isMut": false, "isSigner": false }, { "name": "vault", "isMut": true, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "feeAcc", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpTreasury", "type": "u8" }, { "name": "bumpFarmer", "type": "u8" }, { "name": "skipRewards", "type": "bool" } ] }, { "name": "claim", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": true, "isSigner": true }, { "name": "rewardAPot", "isMut": true, "isSigner": false }, { "name": "rewardAMint", "isMut": false, "isSigner": false }, { "name": "rewardADestination", "isMut": true, "isSigner": false }, { "name": "rewardBPot", "isMut": true, "isSigner": false }, { "name": "rewardBMint", "isMut": false, "isSigner": false }, { "name": "rewardBDestination", "isMut": true, "isSigner": false }, { "name": "tokenProgram", "isMut": false, "isSigner": false }, { "name": "associatedTokenProgram", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false }, { "name": "rent", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpFarmer", "type": "u8" }, { "name": "bumpPotA", "type": "u8" }, { "name": "bumpPotB", "type": "u8" } ] }, { "name": "flashDeposit", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": true, "isSigner": true }, { "name": "bank", "isMut": false, "isSigner": false }, { "name": "vault", "isMut": true, "isSigner": false }, { "name": "vaultAuthority", "isMut": false, "isSigner": false }, { "name": "gemBox", "isMut": true, "isSigner": false }, { "name": "gemDepositReceipt", "isMut": true, "isSigner": false }, { "name": "gemSource", "isMut": true, "isSigner": false }, { "name": "gemMint", "isMut": false, "isSigner": false }, { "name": "gemRarity", "isMut": false, "isSigner": false }, { "name": "tokenProgram", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false }, { "name": "rent", "isMut": false, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "feeAcc", "isMut": true, "isSigner": false } ], "args": [ { "name": "bumpFarmer", "type": "u8" }, { "name": "bumpVaultAuth", "type": "u8" }, { "name": "bumpRarity", "type": "u8" }, { "name": "amount", "type": "u64" } ] }, { "name": "refreshFarmer", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": false, "isSigner": false } ], "args": [ { "name": "bump", "type": "u8" } ] }, { "name": "refreshFarmerSigned", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmer", "isMut": true, "isSigner": false }, { "name": "identity", "isMut": false, "isSigner": true } ], "args": [ { "name": "bump", "type": "u8" }, { "name": "reenroll", "type": "bool" } ] }, { "name": "authorizeFunder", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "funderToAuthorize", "isMut": false, "isSigner": false }, { "name": "authorizationProof", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [] }, { "name": "deauthorizeFunder", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "funderToDeauthorize", "isMut": false, "isSigner": false }, { "name": "authorizationProof", "isMut": true, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bump", "type": "u8" } ] }, { "name": "fundReward", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "authorizationProof", "isMut": false, "isSigner": false }, { "name": "authorizedFunder", "isMut": true, "isSigner": true }, { "name": "rewardPot", "isMut": true, "isSigner": false }, { "name": "rewardSource", "isMut": true, "isSigner": false }, { "name": "rewardMint", "isMut": false, "isSigner": false }, { "name": "tokenProgram", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpProof", "type": "u8" }, { "name": "bumpPot", "type": "u8" }, { "name": "variableRateConfig", "type": { "option": { "defined": "VariableRateConfig" } } }, { "name": "fixedRateConfig", "type": { "option": { "defined": "FixedRateConfig" } } } ] }, { "name": "cancelReward", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "rewardPot", "isMut": true, "isSigner": false }, { "name": "rewardDestination", "isMut": true, "isSigner": false }, { "name": "rewardMint", "isMut": false, "isSigner": false }, { "name": "receiver", "isMut": true, "isSigner": false }, { "name": "tokenProgram", "isMut": false, "isSigner": false }, { "name": "associatedTokenProgram", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false }, { "name": "rent", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "bumpPot", "type": "u8" } ] }, { "name": "lockReward", "accounts": [ { "name": "farm", "isMut": true, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "rewardMint", "isMut": false, "isSigner": false } ], "args": [] }, { "name": "addRaritiesToBank", "accounts": [ { "name": "farm", "isMut": false, "isSigner": false }, { "name": "farmManager", "isMut": true, "isSigner": true }, { "name": "farmAuthority", "isMut": false, "isSigner": false }, { "name": "bank", "isMut": false, "isSigner": false }, { "name": "gemBank", "isMut": false, "isSigner": false }, { "name": "systemProgram", "isMut": false, "isSigner": false } ], "args": [ { "name": "bumpAuth", "type": "u8" }, { "name": "rarityConfigs", "type": { "vec": { "defined": "RarityConfig" } } } ] } ], "accounts": [ { "name": "authorizationProof", "type": { "kind": "struct", "fields": [ { "name": "authorizedFunder", "type": "publicKey" }, { "name": "farm", "type": "publicKey" }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "farmer", "type": { "kind": "struct", "fields": [ { "name": "farm", "type": "publicKey" }, { "name": "identity", "type": "publicKey" }, { "name": "vault", "type": "publicKey" }, { "name": "state", "type": { "defined": "FarmerState" } }, { "name": "gemsStaked", "type": "u64" }, { "name": "rarityPointsStaked", "type": "u64" }, { "name": "minStakingEndsTs", "type": "u64" }, { "name": "cooldownEndsTs", "type": "u64" }, { "name": "rewardA", "type": { "defined": "FarmerReward" } }, { "name": "rewardB", "type": { "defined": "FarmerReward" } }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "farm", "type": { "kind": "struct", "fields": [ { "name": "version", "type": "u16" }, { "name": "farmManager", "type": "publicKey" }, { "name": "farmTreasury", "type": "publicKey" }, { "name": "farmAuthority", "type": "publicKey" }, { "name": "farmAuthoritySeed", "type": "publicKey" }, { "name": "farmAuthorityBumpSeed", "type": { "array": [ "u8", 1 ] } }, { "name": "bank", "type": "publicKey" }, { "name": "config", "type": { "defined": "FarmConfig" } }, { "name": "farmerCount", "type": "u64" }, { "name": "stakedFarmerCount", "type": "u64" }, { "name": "gemsStaked", "type": "u64" }, { "name": "rarityPointsStaked", "type": "u64" }, { "name": "authorizedFunderCount", "type": "u64" }, { "name": "rewardA", "type": { "defined": "FarmReward" } }, { "name": "rewardB", "type": { "defined": "FarmReward" } }, { "name": "maxCounts", "type": { "defined": "MaxCounts" } }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } }, { "name": "reserved2", "type": { "array": [ "u8", 16 ] } }, { "name": "reserved3", "type": { "array": [ "u8", 4 ] } } ] } } ], "types": [ { "name": "RarityConfig", "type": { "kind": "struct", "fields": [ { "name": "mint", "type": "publicKey" }, { "name": "rarityPoints", "type": "u16" } ] } }, { "name": "Number128", "type": { "kind": "struct", "fields": [ { "name": "n", "type": "u128" } ] } }, { "name": "FarmerReward", "type": { "kind": "struct", "fields": [ { "name": "paidOutReward", "type": "u64" }, { "name": "accruedReward", "type": "u64" }, { "name": "variableRate", "type": { "defined": "FarmerVariableRateReward" } }, { "name": "fixedRate", "type": { "defined": "FarmerFixedRateReward" } }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "FarmerVariableRateReward", "type": { "kind": "struct", "fields": [ { "name": "lastRecordedAccruedRewardPerRarityPoint", "type": { "defined": "Number128" } }, { "name": "reserved", "type": { "array": [ "u8", 16 ] } } ] } }, { "name": "FarmerFixedRateReward", "type": { "kind": "struct", "fields": [ { "name": "beginStakingTs", "type": "u64" }, { "name": "beginScheduleTs", "type": "u64" }, { "name": "lastUpdatedTs", "type": "u64" }, { "name": "promisedSchedule", "type": { "defined": "FixedRateSchedule" } }, { "name": "promisedDuration", "type": "u64" }, { "name": "reserved", "type": { "array": [ "u8", 16 ] } } ] } }, { "name": "FarmConfig", "type": { "kind": "struct", "fields": [ { "name": "minStakingPeriodSec", "type": "u64" }, { "name": "cooldownPeriodSec", "type": "u64" }, { "name": "unstakingFeeLamp", "type": "u64" } ] } }, { "name": "MaxCounts", "type": { "kind": "struct", "fields": [ { "name": "maxFarmers", "type": "u32" }, { "name": "maxGems", "type": "u32" }, { "name": "maxRarityPoints", "type": "u32" } ] } }, { "name": "FundsTracker", "type": { "kind": "struct", "fields": [ { "name": "totalFunded", "type": "u64" }, { "name": "totalRefunded", "type": "u64" }, { "name": "totalAccruedToStakers", "type": "u64" } ] } }, { "name": "TimeTracker", "type": { "kind": "struct", "fields": [ { "name": "durationSec", "type": "u64" }, { "name": "rewardEndTs", "type": "u64" }, { "name": "lockEndTs", "type": "u64" } ] } }, { "name": "FarmReward", "type": { "kind": "struct", "fields": [ { "name": "rewardMint", "type": "publicKey" }, { "name": "rewardPot", "type": "publicKey" }, { "name": "rewardType", "type": { "defined": "RewardType" } }, { "name": "fixedRate", "type": { "defined": "FixedRateReward" } }, { "name": "variableRate", "type": { "defined": "VariableRateReward" } }, { "name": "funds", "type": { "defined": "FundsTracker" } }, { "name": "times", "type": { "defined": "TimeTracker" } }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "TierConfig", "type": { "kind": "struct", "fields": [ { "name": "rewardRate", "type": "u64" }, { "name": "requiredTenure", "type": "u64" } ] } }, { "name": "FixedRateSchedule", "type": { "kind": "struct", "fields": [ { "name": "baseRate", "type": "u64" }, { "name": "tier1", "type": { "option": { "defined": "TierConfig" } } }, { "name": "tier2", "type": { "option": { "defined": "TierConfig" } } }, { "name": "tier3", "type": { "option": { "defined": "TierConfig" } } }, { "name": "denominator", "type": "u64" } ] } }, { "name": "FixedRateConfig", "type": { "kind": "struct", "fields": [ { "name": "schedule", "type": { "defined": "FixedRateSchedule" } }, { "name": "amount", "type": "u64" }, { "name": "durationSec", "type": "u64" } ] } }, { "name": "FixedRateReward", "type": { "kind": "struct", "fields": [ { "name": "schedule", "type": { "defined": "FixedRateSchedule" } }, { "name": "reservedAmount", "type": "u64" }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "VariableRateConfig", "type": { "kind": "struct", "fields": [ { "name": "amount", "type": "u64" }, { "name": "durationSec", "type": "u64" } ] } }, { "name": "VariableRateReward", "type": { "kind": "struct", "fields": [ { "name": "rewardRate", "type": { "defined": "Number128" } }, { "name": "rewardLastUpdatedTs", "type": "u64" }, { "name": "accruedRewardPerRarityPoint", "type": { "defined": "Number128" } }, { "name": "reserved", "type": { "array": [ "u8", 32 ] } } ] } }, { "name": "FarmerState", "type": { "kind": "enum", "variants": [ { "name": "Unstaked" }, { "name": "Staked" }, { "name": "PendingCooldown" } ] } }, { "name": "RewardType", "type": { "kind": "enum", "variants": [ { "name": "Variable" }, { "name": "Fixed" } ] } }, { "name": "FixedRateRewardTier", "type": { "kind": "enum", "variants": [ { "name": "Base" }, { "name": "Tier1" }, { "name": "Tier2" }, { "name": "Tier3" } ] } } ] }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemFarmIDL.json.meta
fileFormatVersion: 2 guid: cd6877105b3744e7947afe9d6dc28a8d timeCreated: 1661340472
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/Farmer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Threading.Tasks; using GemFarm.Program; using GemFarm.Errors; using GemFarm.Accounts; using GemFarm.Types; using Solana.Unity.Programs.Abstract; using Solana.Unity.Programs.Models; using Solana.Unity.Programs.Utilities; using Solana.Unity.Rpc; using Solana.Unity.Rpc.Core.Http; using Solana.Unity.Rpc.Core.Sockets; using Solana.Unity.Rpc.Messages; using Solana.Unity.Rpc.Models; using Solana.Unity.Rpc.Types; using Solana.Unity.Wallet; using RewardType = GemFarm.Types.RewardType; namespace GemFarm { namespace Accounts { public partial class AuthorizationProof { public static ulong ACCOUNT_DISCRIMINATOR => 18391403730389340973UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{45, 147, 166, 62, 64, 100, 59, 255}; public static string ACCOUNT_DISCRIMINATOR_B58 => "8d9o3kZv4qC"; public PublicKey AuthorizedFunder { get; set; } public PublicKey Farm { get; set; } public byte[] Reserved { get; set; } public static AuthorizationProof Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } AuthorizationProof result = new AuthorizationProof(); result.AuthorizedFunder = _data.GetPubKey(offset); offset += 32; result.Farm = _data.GetPubKey(offset); offset += 32; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return result; } } public partial class Farmer { public static ulong ACCOUNT_DISCRIMINATOR => 15788536735091212286UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{254, 63, 81, 98, 130, 38, 28, 219}; public static string ACCOUNT_DISCRIMINATOR_B58 => "jXX2LSteZVk"; public PublicKey Farm { get; set; } public PublicKey Identity { get; set; } public PublicKey Vault { get; set; } public FarmerState State { get; set; } public ulong GemsStaked { get; set; } public ulong RarityPointsStaked { get; set; } public ulong MinStakingEndsTs { get; set; } public ulong CooldownEndsTs { get; set; } public FarmerReward RewardA { get; set; } public FarmerReward RewardB { get; set; } public byte[] Reserved { get; set; } public static Farmer Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } Farmer result = new Farmer(); result.Farm = _data.GetPubKey(offset); offset += 32; result.Identity = _data.GetPubKey(offset); offset += 32; result.Vault = _data.GetPubKey(offset); offset += 32; result.State = (FarmerState)_data.GetU8(offset); offset += 1; result.GemsStaked = _data.GetU64(offset); offset += 8; result.RarityPointsStaked = _data.GetU64(offset); offset += 8; result.MinStakingEndsTs = _data.GetU64(offset); offset += 8; result.CooldownEndsTs = _data.GetU64(offset); offset += 8; offset += FarmerReward.Deserialize(_data, offset, out var resultRewardA); result.RewardA = resultRewardA; offset += FarmerReward.Deserialize(_data, offset, out var resultRewardB); result.RewardB = resultRewardB; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return result; } } public partial class Farm { public static ulong ACCOUNT_DISCRIMINATOR => 18029388129992154273UL; public static ReadOnlySpan<byte> ACCOUNT_DISCRIMINATOR_BYTES => new byte[]{161, 156, 211, 253, 250, 64, 53, 250}; public static string ACCOUNT_DISCRIMINATOR_B58 => "U2qzmZH87sw"; public ushort Version { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmTreasury { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey FarmAuthoritySeed { get; set; } public byte[] FarmAuthorityBumpSeed { get; set; } public PublicKey Bank { get; set; } public FarmConfig Config { get; set; } public ulong FarmerCount { get; set; } public ulong StakedFarmerCount { get; set; } public ulong GemsStaked { get; set; } public ulong RarityPointsStaked { get; set; } public ulong AuthorizedFunderCount { get; set; } public FarmReward RewardA { get; set; } public FarmReward RewardB { get; set; } public MaxCounts MaxCounts { get; set; } public byte[] Reserved { get; set; } public byte[] Reserved2 { get; set; } public byte[] Reserved3 { get; set; } public static Farm Deserialize(ReadOnlySpan<byte> _data) { int offset = 0; ulong accountHashValue = _data.GetU64(offset); offset += 8; if (accountHashValue != ACCOUNT_DISCRIMINATOR) { return null; } Farm result = new Farm(); result.Version = _data.GetU16(offset); offset += 2; result.FarmManager = _data.GetPubKey(offset); offset += 32; result.FarmTreasury = _data.GetPubKey(offset); offset += 32; result.FarmAuthority = _data.GetPubKey(offset); offset += 32; result.FarmAuthoritySeed = _data.GetPubKey(offset); offset += 32; result.FarmAuthorityBumpSeed = _data.GetBytes(offset, 1); offset += 1; result.Bank = _data.GetPubKey(offset); offset += 32; offset += FarmConfig.Deserialize(_data, offset, out var resultConfig); result.Config = resultConfig; result.FarmerCount = _data.GetU64(offset); offset += 8; result.StakedFarmerCount = _data.GetU64(offset); offset += 8; result.GemsStaked = _data.GetU64(offset); offset += 8; result.RarityPointsStaked = _data.GetU64(offset); offset += 8; result.AuthorizedFunderCount = _data.GetU64(offset); offset += 8; offset += FarmReward.Deserialize(_data, offset, out var resultRewardA); result.RewardA = resultRewardA; offset += FarmReward.Deserialize(_data, offset, out var resultRewardB); result.RewardB = resultRewardB; offset += MaxCounts.Deserialize(_data, offset, out var resultMaxCounts); result.MaxCounts = resultMaxCounts; result.Reserved = _data.GetBytes(offset, 32); offset += 32; result.Reserved2 = _data.GetBytes(offset, 16); offset += 16; result.Reserved3 = _data.GetBytes(offset, 4); offset += 4; return result; } } } namespace Errors { public enum GemFarmErrorKind : uint { } } namespace Types { public partial class RarityConfig { public PublicKey Mint { get; set; } public ushort RarityPoints { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WritePubKey(Mint, offset); offset += 32; _data.WriteU16(RarityPoints, offset); offset += 2; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out RarityConfig result) { int offset = initialOffset; result = new RarityConfig(); result.Mint = _data.GetPubKey(offset); offset += 32; result.RarityPoints = _data.GetU16(offset); offset += 2; return offset - initialOffset; } } public partial class Number128 { public BigInteger N { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteBigInt(N, offset, 16, true); offset += 16; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out Number128 result) { int offset = initialOffset; result = new Number128(); result.N = _data.GetBigInt(offset, 16, false); offset += 16; return offset - initialOffset; } } public partial class FarmerReward { public ulong PaidOutReward { get; set; } public ulong AccruedReward { get; set; } public FarmerVariableRateReward VariableRate { get; set; } public FarmerFixedRateReward FixedRate { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(PaidOutReward, offset); offset += 8; _data.WriteU64(AccruedReward, offset); offset += 8; offset += VariableRate.Serialize(_data, offset); offset += FixedRate.Serialize(_data, offset); _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FarmerReward result) { int offset = initialOffset; result = new FarmerReward(); result.PaidOutReward = _data.GetU64(offset); offset += 8; result.AccruedReward = _data.GetU64(offset); offset += 8; offset += FarmerVariableRateReward.Deserialize(_data, offset, out var resultVariableRate); result.VariableRate = resultVariableRate; offset += FarmerFixedRateReward.Deserialize(_data, offset, out var resultFixedRate); result.FixedRate = resultFixedRate; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return offset - initialOffset; } } public partial class FarmerVariableRateReward { public Number128 LastRecordedAccruedRewardPerRarityPoint { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; offset += LastRecordedAccruedRewardPerRarityPoint.Serialize(_data, offset); _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FarmerVariableRateReward result) { int offset = initialOffset; result = new FarmerVariableRateReward(); offset += Number128.Deserialize(_data, offset, out var resultLastRecordedAccruedRewardPerRarityPoint); result.LastRecordedAccruedRewardPerRarityPoint = resultLastRecordedAccruedRewardPerRarityPoint; result.Reserved = _data.GetBytes(offset, 16); offset += 16; return offset - initialOffset; } } public partial class FarmerFixedRateReward { public ulong BeginStakingTs { get; set; } public ulong BeginScheduleTs { get; set; } public ulong LastUpdatedTs { get; set; } public FixedRateSchedule PromisedSchedule { get; set; } public ulong PromisedDuration { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(BeginStakingTs, offset); offset += 8; _data.WriteU64(BeginScheduleTs, offset); offset += 8; _data.WriteU64(LastUpdatedTs, offset); offset += 8; offset += PromisedSchedule.Serialize(_data, offset); _data.WriteU64(PromisedDuration, offset); offset += 8; _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FarmerFixedRateReward result) { int offset = initialOffset; result = new FarmerFixedRateReward(); result.BeginStakingTs = _data.GetU64(offset); offset += 8; result.BeginScheduleTs = _data.GetU64(offset); offset += 8; result.LastUpdatedTs = _data.GetU64(offset); offset += 8; offset += FixedRateSchedule.Deserialize(_data, offset, out var resultPromisedSchedule); result.PromisedSchedule = resultPromisedSchedule; result.PromisedDuration = _data.GetU64(offset); offset += 8; result.Reserved = _data.GetBytes(offset, 16); offset += 16; return offset - initialOffset; } } public partial class FarmConfig { public ulong MinStakingPeriodSec { get; set; } public ulong CooldownPeriodSec { get; set; } public ulong UnstakingFeeLamp { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(MinStakingPeriodSec, offset); offset += 8; _data.WriteU64(CooldownPeriodSec, offset); offset += 8; _data.WriteU64(UnstakingFeeLamp, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FarmConfig result) { int offset = initialOffset; result = new FarmConfig(); result.MinStakingPeriodSec = _data.GetU64(offset); offset += 8; result.CooldownPeriodSec = _data.GetU64(offset); offset += 8; result.UnstakingFeeLamp = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class MaxCounts { public uint MaxFarmers { get; set; } public uint MaxGems { get; set; } public uint MaxRarityPoints { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU32(MaxFarmers, offset); offset += 4; _data.WriteU32(MaxGems, offset); offset += 4; _data.WriteU32(MaxRarityPoints, offset); offset += 4; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out MaxCounts result) { int offset = initialOffset; result = new MaxCounts(); result.MaxFarmers = _data.GetU32(offset); offset += 4; result.MaxGems = _data.GetU32(offset); offset += 4; result.MaxRarityPoints = _data.GetU32(offset); offset += 4; return offset - initialOffset; } } public partial class FundsTracker { public ulong TotalFunded { get; set; } public ulong TotalRefunded { get; set; } public ulong TotalAccruedToStakers { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(TotalFunded, offset); offset += 8; _data.WriteU64(TotalRefunded, offset); offset += 8; _data.WriteU64(TotalAccruedToStakers, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FundsTracker result) { int offset = initialOffset; result = new FundsTracker(); result.TotalFunded = _data.GetU64(offset); offset += 8; result.TotalRefunded = _data.GetU64(offset); offset += 8; result.TotalAccruedToStakers = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class TimeTracker { public ulong DurationSec { get; set; } public ulong RewardEndTs { get; set; } public ulong LockEndTs { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(DurationSec, offset); offset += 8; _data.WriteU64(RewardEndTs, offset); offset += 8; _data.WriteU64(LockEndTs, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out TimeTracker result) { int offset = initialOffset; result = new TimeTracker(); result.DurationSec = _data.GetU64(offset); offset += 8; result.RewardEndTs = _data.GetU64(offset); offset += 8; result.LockEndTs = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class FarmReward { public PublicKey RewardMint { get; set; } public PublicKey RewardPot { get; set; } public RewardType RewardType { get; set; } public FixedRateReward FixedRate { get; set; } public VariableRateReward VariableRate { get; set; } public FundsTracker Funds { get; set; } public TimeTracker Times { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WritePubKey(RewardMint, offset); offset += 32; _data.WritePubKey(RewardPot, offset); offset += 32; _data.WriteU8((byte)RewardType, offset); offset += 1; offset += FixedRate.Serialize(_data, offset); offset += VariableRate.Serialize(_data, offset); offset += Funds.Serialize(_data, offset); offset += Times.Serialize(_data, offset); _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FarmReward result) { int offset = initialOffset; result = new FarmReward(); result.RewardMint = _data.GetPubKey(offset); offset += 32; result.RewardPot = _data.GetPubKey(offset); offset += 32; result.RewardType = (RewardType)_data.GetU8(offset); offset += 1; offset += FixedRateReward.Deserialize(_data, offset, out var resultFixedRate); result.FixedRate = resultFixedRate; offset += VariableRateReward.Deserialize(_data, offset, out var resultVariableRate); result.VariableRate = resultVariableRate; offset += FundsTracker.Deserialize(_data, offset, out var resultFunds); result.Funds = resultFunds; offset += TimeTracker.Deserialize(_data, offset, out var resultTimes); result.Times = resultTimes; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return offset - initialOffset; } } public partial class TierConfig { public ulong RewardRate { get; set; } public ulong RequiredTenure { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(RewardRate, offset); offset += 8; _data.WriteU64(RequiredTenure, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out TierConfig result) { int offset = initialOffset; result = new TierConfig(); result.RewardRate = _data.GetU64(offset); offset += 8; result.RequiredTenure = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class FixedRateSchedule { public ulong BaseRate { get; set; } public TierConfig Tier1 { get; set; } public TierConfig Tier2 { get; set; } public TierConfig Tier3 { get; set; } public ulong Denominator { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(BaseRate, offset); offset += 8; if (Tier1 != null) { _data.WriteU8(1, offset); offset += 1; offset += Tier1.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } if (Tier2 != null) { _data.WriteU8(1, offset); offset += 1; offset += Tier2.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } if (Tier3 != null) { _data.WriteU8(1, offset); offset += 1; offset += Tier3.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } _data.WriteU64(Denominator, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FixedRateSchedule result) { int offset = initialOffset; result = new FixedRateSchedule(); result.BaseRate = _data.GetU64(offset); offset += 8; if (_data.GetBool(offset++)) { offset += TierConfig.Deserialize(_data, offset, out var resultTier1); result.Tier1 = resultTier1; } if (_data.GetBool(offset++)) { offset += TierConfig.Deserialize(_data, offset, out var resultTier2); result.Tier2 = resultTier2; } if (_data.GetBool(offset++)) { offset += TierConfig.Deserialize(_data, offset, out var resultTier3); result.Tier3 = resultTier3; } result.Denominator = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class FixedRateConfig { public FixedRateSchedule Schedule { get; set; } public ulong Amount { get; set; } public ulong DurationSec { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; offset += Schedule.Serialize(_data, offset); _data.WriteU64(Amount, offset); offset += 8; _data.WriteU64(DurationSec, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FixedRateConfig result) { int offset = initialOffset; result = new FixedRateConfig(); offset += FixedRateSchedule.Deserialize(_data, offset, out var resultSchedule); result.Schedule = resultSchedule; result.Amount = _data.GetU64(offset); offset += 8; result.DurationSec = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class FixedRateReward { public FixedRateSchedule Schedule { get; set; } public ulong ReservedAmount { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; offset += Schedule.Serialize(_data, offset); _data.WriteU64(ReservedAmount, offset); offset += 8; _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out FixedRateReward result) { int offset = initialOffset; result = new FixedRateReward(); offset += FixedRateSchedule.Deserialize(_data, offset, out var resultSchedule); result.Schedule = resultSchedule; result.ReservedAmount = _data.GetU64(offset); offset += 8; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return offset - initialOffset; } } public partial class VariableRateConfig { public ulong Amount { get; set; } public ulong DurationSec { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; _data.WriteU64(Amount, offset); offset += 8; _data.WriteU64(DurationSec, offset); offset += 8; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out VariableRateConfig result) { int offset = initialOffset; result = new VariableRateConfig(); result.Amount = _data.GetU64(offset); offset += 8; result.DurationSec = _data.GetU64(offset); offset += 8; return offset - initialOffset; } } public partial class VariableRateReward { public Number128 RewardRate { get; set; } public ulong RewardLastUpdatedTs { get; set; } public Number128 AccruedRewardPerRarityPoint { get; set; } public byte[] Reserved { get; set; } public int Serialize(byte[] _data, int initialOffset) { int offset = initialOffset; offset += RewardRate.Serialize(_data, offset); _data.WriteU64(RewardLastUpdatedTs, offset); offset += 8; offset += AccruedRewardPerRarityPoint.Serialize(_data, offset); _data.WriteSpan(Reserved, offset); offset += Reserved.Length; return offset - initialOffset; } public static int Deserialize(ReadOnlySpan<byte> _data, int initialOffset, out VariableRateReward result) { int offset = initialOffset; result = new VariableRateReward(); offset += Number128.Deserialize(_data, offset, out var resultRewardRate); result.RewardRate = resultRewardRate; result.RewardLastUpdatedTs = _data.GetU64(offset); offset += 8; offset += Number128.Deserialize(_data, offset, out var resultAccruedRewardPerRarityPoint); result.AccruedRewardPerRarityPoint = resultAccruedRewardPerRarityPoint; result.Reserved = _data.GetBytes(offset, 32); offset += 32; return offset - initialOffset; } } public enum FarmerState : byte { Unstaked, Staked, PendingCooldown } public enum RewardType : byte { Variable, Fixed } } public partial class GemFarmClient : TransactionalBaseClient<GemFarmErrorKind> { public GemFarmClient(IRpcClient rpcClient, IStreamingRpcClient streamingRpcClient, PublicKey programId) : base(rpcClient, streamingRpcClient, programId) { } public async Task<ProgramAccountsResultWrapper<List<AuthorizationProof>>> GetAuthorizationProofsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = AuthorizationProof.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<AuthorizationProof>>(res); List<AuthorizationProof> resultingAccounts = new List<AuthorizationProof>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => AuthorizationProof.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<AuthorizationProof>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<Farmer>>> GetFarmersAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = Farmer.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<Farmer>>(res); List<Farmer> resultingAccounts = new List<Farmer>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => Farmer.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<Farmer>>(res, resultingAccounts); } public async Task<ProgramAccountsResultWrapper<List<Farm>>> GetFarmsAsync(string programAddress, Commitment commitment = Commitment.Finalized) { var list = new List<MemCmp>{new MemCmp{Bytes = Farm.ACCOUNT_DISCRIMINATOR_B58, Offset = 0}}; var res = await RpcClient.GetProgramAccountsAsync(programAddress, commitment, memCmpList: list); if (!res.WasSuccessful || !(res.Result?.Count > 0)) return new ProgramAccountsResultWrapper<List<Farm>>(res); List<Farm> resultingAccounts = new List<Farm>(res.Result.Count); resultingAccounts.AddRange(res.Result.Select(result => Farm.Deserialize(Convert.FromBase64String(result.Account.Data[0])))); return new ProgramAccountsResultWrapper<List<Farm>>(res, resultingAccounts); } public async Task<AccountResultWrapper<AuthorizationProof>> GetAuthorizationProofAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<AuthorizationProof>(res); var resultingAccount = AuthorizationProof.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<AuthorizationProof>(res, resultingAccount); } public async Task<AccountResultWrapper<Farmer>> GetFarmerAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<Farmer>(res); var resultingAccount = Farmer.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<Farmer>(res, resultingAccount); } public async Task<AccountResultWrapper<Farm>> GetFarmAsync(string accountAddress, Commitment commitment = Commitment.Finalized) { var res = await RpcClient.GetAccountInfoAsync(accountAddress, commitment); if (!res.WasSuccessful) return new AccountResultWrapper<Farm>(res); var resultingAccount = Farm.Deserialize(Convert.FromBase64String(res.Result.Value.Data[0])); return new AccountResultWrapper<Farm>(res, resultingAccount); } public async Task<SubscriptionState> SubscribeAuthorizationProofAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, AuthorizationProof> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { AuthorizationProof parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = AuthorizationProof.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeFarmerAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, Farmer> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { Farmer parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = Farmer.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<SubscriptionState> SubscribeFarmAsync(string accountAddress, Action<SubscriptionState, ResponseValue<AccountInfo>, Farm> callback, Commitment commitment = Commitment.Finalized) { SubscriptionState res = await StreamingRpcClient.SubscribeAccountInfoAsync(accountAddress, (s, e) => { Farm parsingResult = null; if (e.Value?.Data?.Count > 0) parsingResult = Farm.Deserialize(Convert.FromBase64String(e.Value.Data[0])); callback(s, e, parsingResult); }, commitment); return res; } public async Task<RequestResult<string>> SendInitFarmAsync(InitFarmAccounts accounts, byte bumpAuth, byte bumpTreasury, RewardType rewardTypeA, RewardType rewardTypeB, FarmConfig farmConfig, MaxCounts maxCounts, PublicKey farmTreasury, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.InitFarm(accounts, bumpAuth, bumpTreasury, rewardTypeA, rewardTypeB, farmConfig, maxCounts, farmTreasury, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendUpdateFarmAsync(UpdateFarmAccounts accounts, FarmConfig config, PublicKey manager, MaxCounts maxCounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.UpdateFarm(accounts, config, manager, maxCounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendPayoutFromTreasuryAsync(PayoutFromTreasuryAccounts accounts, byte bumpAuth, byte bumpTreasury, ulong lamports, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.PayoutFromTreasury(accounts, bumpAuth, bumpTreasury, lamports, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendAddToBankWhitelistAsync(AddToBankWhitelistAccounts accounts, byte bumpAuth, byte whitelistType, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.AddToBankWhitelist(accounts, bumpAuth, whitelistType, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendRemoveFromBankWhitelistAsync(RemoveFromBankWhitelistAccounts accounts, byte bumpAuth, byte bumpWl, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.RemoveFromBankWhitelist(accounts, bumpAuth, bumpWl, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendInitFarmerAsync(InitFarmerAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.InitFarmer(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendStakeAsync(StakeAccounts accounts, byte bumpAuth, byte bumpFarmer, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.Stake(accounts, bumpAuth, bumpFarmer, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendUnstakeAsync(UnstakeAccounts accounts, byte bumpAuth, byte bumpTreasury, byte bumpFarmer, bool skipRewards, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.Unstake(accounts, bumpAuth, bumpTreasury, bumpFarmer, skipRewards, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendClaimAsync(ClaimAccounts accounts, byte bumpAuth, byte bumpFarmer, byte bumpPotA, byte bumpPotB, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.Claim(accounts, bumpAuth, bumpFarmer, bumpPotA, bumpPotB, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendFlashDepositAsync(FlashDepositAccounts accounts, byte bumpFarmer, byte bumpVaultAuth, byte bumpRarity, ulong amount, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.FlashDeposit(accounts, bumpFarmer, bumpVaultAuth, bumpRarity, amount, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendRefreshFarmerAsync(RefreshFarmerAccounts accounts, byte bump, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.RefreshFarmer(accounts, bump, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendRefreshFarmerSignedAsync(RefreshFarmerSignedAccounts accounts, byte bump, bool reenroll, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.RefreshFarmerSigned(accounts, bump, reenroll, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendAuthorizeFunderAsync(AuthorizeFunderAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.AuthorizeFunder(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendDeauthorizeFunderAsync(DeauthorizeFunderAccounts accounts, byte bump, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.DeauthorizeFunder(accounts, bump, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendFundRewardAsync(FundRewardAccounts accounts, byte bumpProof, byte bumpPot, VariableRateConfig variableRateConfig, FixedRateConfig fixedRateConfig, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.FundReward(accounts, bumpProof, bumpPot, variableRateConfig, fixedRateConfig, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendCancelRewardAsync(CancelRewardAccounts accounts, byte bumpAuth, byte bumpPot, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.CancelReward(accounts, bumpAuth, bumpPot, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendLockRewardAsync(LockRewardAccounts accounts, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.LockReward(accounts, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } public async Task<RequestResult<string>> SendAddRaritiesToBankAsync(AddRaritiesToBankAccounts accounts, byte bumpAuth, RarityConfig[] rarityConfigs, PublicKey feePayer, Func<byte[], PublicKey, byte[]> signingCallback, PublicKey programId) { TransactionInstruction instr = Program.GemFarmProgram.AddRaritiesToBank(accounts, bumpAuth, rarityConfigs, programId); return await SignAndSendTransaction(instr, feePayer, signingCallback); } protected override Dictionary<uint, ProgramError<GemFarmErrorKind>> BuildErrorsDictionary() { return new Dictionary<uint, ProgramError<GemFarmErrorKind>>{}; } } namespace Program { public class InitFarmAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey RewardAPot { get; set; } public PublicKey RewardAMint { get; set; } public PublicKey RewardBPot { get; set; } public PublicKey RewardBMint { get; set; } public PublicKey Bank { get; set; } public PublicKey GemBank { get; set; } public PublicKey Payer { get; set; } public PublicKey FeeAcc { get; set; } public PublicKey Rent { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey SystemProgram { get; set; } } public class UpdateFarmAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } } public class PayoutFromTreasuryAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey FarmTreasury { get; set; } public PublicKey Destination { get; set; } public PublicKey SystemProgram { get; set; } } public class AddToBankWhitelistAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Bank { get; set; } public PublicKey AddressToWhitelist { get; set; } public PublicKey WhitelistProof { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey GemBank { get; set; } } public class RemoveFromBankWhitelistAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Bank { get; set; } public PublicKey AddressToRemove { get; set; } public PublicKey WhitelistProof { get; set; } public PublicKey GemBank { get; set; } } public class InitFarmerAccounts { public PublicKey Farm { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey GemBank { get; set; } public PublicKey Payer { get; set; } public PublicKey FeeAcc { get; set; } public PublicKey SystemProgram { get; set; } } public class StakeAccounts { public PublicKey Farm { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey GemBank { get; set; } public PublicKey FeeAcc { get; set; } public PublicKey SystemProgram { get; set; } } public class UnstakeAccounts { public PublicKey Farm { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey FarmTreasury { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey GemBank { get; set; } public PublicKey FeeAcc { get; set; } public PublicKey SystemProgram { get; set; } } public class ClaimAccounts { public PublicKey Farm { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } public PublicKey RewardAPot { get; set; } public PublicKey RewardAMint { get; set; } public PublicKey RewardADestination { get; set; } public PublicKey RewardBPot { get; set; } public PublicKey RewardBMint { get; set; } public PublicKey RewardBDestination { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey AssociatedTokenProgram { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey Rent { get; set; } } public class FlashDepositAccounts { public PublicKey Farm { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } public PublicKey Bank { get; set; } public PublicKey Vault { get; set; } public PublicKey VaultAuthority { get; set; } public PublicKey GemBox { get; set; } public PublicKey GemDepositReceipt { get; set; } public PublicKey GemSource { get; set; } public PublicKey GemMint { get; set; } public PublicKey GemRarity { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey Rent { get; set; } public PublicKey GemBank { get; set; } public PublicKey FeeAcc { get; set; } } public class RefreshFarmerAccounts { public PublicKey Farm { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } } public class RefreshFarmerSignedAccounts { public PublicKey Farm { get; set; } public PublicKey Farmer { get; set; } public PublicKey Identity { get; set; } } public class AuthorizeFunderAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FunderToAuthorize { get; set; } public PublicKey AuthorizationProof { get; set; } public PublicKey SystemProgram { get; set; } } public class DeauthorizeFunderAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FunderToDeauthorize { get; set; } public PublicKey AuthorizationProof { get; set; } public PublicKey SystemProgram { get; set; } } public class FundRewardAccounts { public PublicKey Farm { get; set; } public PublicKey AuthorizationProof { get; set; } public PublicKey AuthorizedFunder { get; set; } public PublicKey RewardPot { get; set; } public PublicKey RewardSource { get; set; } public PublicKey RewardMint { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey SystemProgram { get; set; } } public class CancelRewardAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey RewardPot { get; set; } public PublicKey RewardDestination { get; set; } public PublicKey RewardMint { get; set; } public PublicKey Receiver { get; set; } public PublicKey TokenProgram { get; set; } public PublicKey AssociatedTokenProgram { get; set; } public PublicKey SystemProgram { get; set; } public PublicKey Rent { get; set; } } public class LockRewardAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey RewardMint { get; set; } } public class AddRaritiesToBankAccounts { public PublicKey Farm { get; set; } public PublicKey FarmManager { get; set; } public PublicKey FarmAuthority { get; set; } public PublicKey Bank { get; set; } public PublicKey GemBank { get; set; } public PublicKey SystemProgram { get; set; } } public static class GemFarmProgram { public static TransactionInstruction InitFarm(InitFarmAccounts accounts, byte bumpAuth, byte bumpTreasury, RewardType rewardTypeA, RewardType rewardTypeB, FarmConfig farmConfig, MaxCounts maxCounts, PublicKey farmTreasury, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, true), AccountMeta.ReadOnly(accounts.FarmManager, true), AccountMeta.Writable(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.RewardAPot, false), AccountMeta.ReadOnly(accounts.RewardAMint, false), AccountMeta.Writable(accounts.RewardBPot, false), AccountMeta.ReadOnly(accounts.RewardBMint, false), AccountMeta.Writable(accounts.Bank, true), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.Writable(accounts.Payer, true), AccountMeta.Writable(accounts.FeeAcc, false), AccountMeta.ReadOnly(accounts.Rent, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(16663941516183059723UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpTreasury, offset); offset += 1; _data.WriteU8((byte)rewardTypeA, offset); offset += 1; _data.WriteU8((byte)rewardTypeB, offset); offset += 1; offset += farmConfig.Serialize(_data, offset); if (maxCounts != null) { _data.WriteU8(1, offset); offset += 1; offset += maxCounts.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } _data.WritePubKey(farmTreasury, offset); offset += 32; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction UpdateFarm(UpdateFarmAccounts accounts, FarmConfig config, PublicKey manager, MaxCounts maxCounts, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmManager, true)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(13662291217567917406UL, offset); offset += 8; if (config != null) { _data.WriteU8(1, offset); offset += 1; offset += config.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } if (manager != null) { _data.WriteU8(1, offset); offset += 1; _data.WritePubKey(manager, offset); offset += 32; } else { _data.WriteU8(0, offset); offset += 1; } if (maxCounts != null) { _data.WriteU8(1, offset); offset += 1; offset += maxCounts.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction PayoutFromTreasury(PayoutFromTreasuryAccounts accounts, byte bumpAuth, byte bumpTreasury, ulong lamports, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.FarmTreasury, false), AccountMeta.Writable(accounts.Destination, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(11282392250456979780UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpTreasury, offset); offset += 1; _data.WriteU64(lamports, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction AddToBankWhitelist(AddToBankWhitelistAccounts accounts, byte bumpAuth, byte whitelistType, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.AddressToWhitelist, false), AccountMeta.Writable(accounts.WhitelistProof, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.GemBank, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(8680217155010113097UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(whitelistType, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction RemoveFromBankWhitelist(RemoveFromBankWhitelistAccounts accounts, byte bumpAuth, byte bumpWl, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.Writable(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.Bank, false), AccountMeta.ReadOnly(accounts.AddressToRemove, false), AccountMeta.Writable(accounts.WhitelistProof, false), AccountMeta.ReadOnly(accounts.GemBank, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(7578980433603793535UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpWl, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction InitFarmer(InitFarmerAccounts accounts, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.ReadOnly(accounts.Identity, true), AccountMeta.Writable(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.Writable(accounts.Payer, true), AccountMeta.Writable(accounts.FeeAcc, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(16129082575378154809UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction Stake(StakeAccounts accounts, byte bumpAuth, byte bumpFarmer, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.Writable(accounts.Identity, true), AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.Writable(accounts.FeeAcc, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(7832834834166362318UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpFarmer, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction Unstake(UnstakeAccounts accounts, byte bumpAuth, byte bumpTreasury, byte bumpFarmer, bool skipRewards, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.FarmTreasury, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.Writable(accounts.Identity, true), AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.Writable(accounts.FeeAcc, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(16227169627991138138UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpTreasury, offset); offset += 1; _data.WriteU8(bumpFarmer, offset); offset += 1; _data.WriteBool(skipRewards, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction Claim(ClaimAccounts accounts, byte bumpAuth, byte bumpFarmer, byte bumpPotA, byte bumpPotB, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.Writable(accounts.Identity, true), AccountMeta.Writable(accounts.RewardAPot, false), AccountMeta.ReadOnly(accounts.RewardAMint, false), AccountMeta.Writable(accounts.RewardADestination, false), AccountMeta.Writable(accounts.RewardBPot, false), AccountMeta.ReadOnly(accounts.RewardBMint, false), AccountMeta.Writable(accounts.RewardBDestination, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.AssociatedTokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.Rent, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(15162669785878545982UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpFarmer, offset); offset += 1; _data.WriteU8(bumpPotA, offset); offset += 1; _data.WriteU8(bumpPotB, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction FlashDeposit(FlashDepositAccounts accounts, byte bumpFarmer, byte bumpVaultAuth, byte bumpRarity, ulong amount, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.Writable(accounts.Identity, true), AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.Writable(accounts.Vault, false), AccountMeta.ReadOnly(accounts.VaultAuthority, false), AccountMeta.Writable(accounts.GemBox, false), AccountMeta.Writable(accounts.GemDepositReceipt, false), AccountMeta.Writable(accounts.GemSource, false), AccountMeta.ReadOnly(accounts.GemMint, false), AccountMeta.ReadOnly(accounts.GemRarity, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.Rent, false), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.Writable(accounts.FeeAcc, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(5934815981167224049UL, offset); offset += 8; _data.WriteU8(bumpFarmer, offset); offset += 1; _data.WriteU8(bumpVaultAuth, offset); offset += 1; _data.WriteU8(bumpRarity, offset); offset += 1; _data.WriteU64(amount, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction RefreshFarmer(RefreshFarmerAccounts accounts, byte bump, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.ReadOnly(accounts.Identity, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(1423560260898551295UL, offset); offset += 8; _data.WriteU8(bump, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction RefreshFarmerSigned(RefreshFarmerSignedAccounts accounts, byte bump, bool reenroll, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.Farmer, false), AccountMeta.ReadOnly(accounts.Identity, true)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(6401765748556196514UL, offset); offset += 8; _data.WriteU8(bump, offset); offset += 1; _data.WriteBool(reenroll, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction AuthorizeFunder(AuthorizeFunderAccounts accounts, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FunderToAuthorize, false), AccountMeta.Writable(accounts.AuthorizationProof, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(15373327814036179474UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction DeauthorizeFunder(DeauthorizeFunderAccounts accounts, byte bump, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FunderToDeauthorize, false), AccountMeta.Writable(accounts.AuthorizationProof, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(2689294759396541003UL, offset); offset += 8; _data.WriteU8(bump, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction FundReward(FundRewardAccounts accounts, byte bumpProof, byte bumpPot, VariableRateConfig variableRateConfig, FixedRateConfig fixedRateConfig, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.ReadOnly(accounts.AuthorizationProof, false), AccountMeta.Writable(accounts.AuthorizedFunder, true), AccountMeta.Writable(accounts.RewardPot, false), AccountMeta.Writable(accounts.RewardSource, false), AccountMeta.ReadOnly(accounts.RewardMint, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(4550490901976789692UL, offset); offset += 8; _data.WriteU8(bumpProof, offset); offset += 1; _data.WriteU8(bumpPot, offset); offset += 1; if (variableRateConfig != null) { _data.WriteU8(1, offset); offset += 1; offset += variableRateConfig.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } if (fixedRateConfig != null) { _data.WriteU8(1, offset); offset += 1; offset += fixedRateConfig.Serialize(_data, offset); } else { _data.WriteU8(0, offset); offset += 1; } byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction CancelReward(CancelRewardAccounts accounts, byte bumpAuth, byte bumpPot, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.Writable(accounts.RewardPot, false), AccountMeta.Writable(accounts.RewardDestination, false), AccountMeta.ReadOnly(accounts.RewardMint, false), AccountMeta.Writable(accounts.Receiver, false), AccountMeta.ReadOnly(accounts.TokenProgram, false), AccountMeta.ReadOnly(accounts.AssociatedTokenProgram, false), AccountMeta.ReadOnly(accounts.SystemProgram, false), AccountMeta.ReadOnly(accounts.Rent, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(16231431113884910020UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteU8(bumpPot, offset); offset += 1; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction LockReward(LockRewardAccounts accounts, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.Writable(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.RewardMint, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(11331393439723177282UL, offset); offset += 8; byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } public static TransactionInstruction AddRaritiesToBank(AddRaritiesToBankAccounts accounts, byte bumpAuth, RarityConfig[] rarityConfigs, PublicKey programId) { List<AccountMeta> keys = new() {AccountMeta.ReadOnly(accounts.Farm, false), AccountMeta.Writable(accounts.FarmManager, true), AccountMeta.ReadOnly(accounts.FarmAuthority, false), AccountMeta.ReadOnly(accounts.Bank, false), AccountMeta.ReadOnly(accounts.GemBank, false), AccountMeta.ReadOnly(accounts.SystemProgram, false)}; byte[] _data = new byte[1200]; int offset = 0; _data.WriteU64(2505557016243900731UL, offset); offset += 8; _data.WriteU8(bumpAuth, offset); offset += 1; _data.WriteS32(rarityConfigs.Length, offset); offset += 4; foreach (var rarityConfigsElement in rarityConfigs) { offset += rarityConfigsElement.Serialize(_data, offset); } byte[] resultData = new byte[offset]; Array.Copy(_data, resultData, offset); return new TransactionInstruction{Keys = keys, ProgramId = programId.KeyBytes, Data = resultData}; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/StakingService.cs.meta
fileFormatVersion: 2 guid: b6294e8fa4ef4ba5b3071eb2feb4c89e timeCreated: 1661080754
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Staking/GemBankPDAHelper.cs
using System.Text; using Solana.Unity.Wallet; using UnityEngine; namespace SolPlay.Staking { public class GemBankPDAHelper { public static PublicKey BankProgramm = new PublicKey( "bankHHdqMuaaST4qQk6mkzxGeKPHWmqdgor6Gs8r88m" ); public static PublicKey Bank = new PublicKey( "6qow2ZSoCNLupaohidmuuNUCoJ8fFpBeddx4JCc9M6at" ); public static PublicKey FindVaultPDA(PublicKey creator, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("vault"), Bank.KeyBytes, creator.KeyBytes }, BankProgramm, out PublicKey vaultPda, out vaultBump)) { Debug.LogError("Could not find vault address"); return null; } return vaultPda; } public static PublicKey findGemBoxPDA(PublicKey vault, PublicKey mint, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("gem_box"), vault.KeyBytes, mint.KeyBytes }, BankProgramm, out PublicKey GemBoxPDA, out vaultBump)) { Debug.LogError("Could not find GemBoxPDA address"); return null; } return GemBoxPDA; } public static PublicKey findGdrPDA(PublicKey vault, PublicKey mint, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("gem_deposit_receipt"), vault.KeyBytes, mint.KeyBytes }, BankProgramm, out PublicKey GdrPDA, out vaultBump)) { Debug.LogError("Could not find GdrPDA address"); return null; } return GdrPDA; } public static PublicKey findVaultAuthorityPDA(PublicKey vault, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { vault.KeyBytes }, BankProgramm, out PublicKey VaultAuthority, out vaultBump)) { Debug.LogError("Could not find VaultAuthority address"); return null; } return VaultAuthority; } public static PublicKey findWhitelistProofPDA(PublicKey bank, PublicKey whitelistedAddress, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("whitelist"), bank.KeyBytes, whitelistedAddress.KeyBytes }, BankProgramm, out PublicKey WhitelistProof, out vaultBump)) { Debug.LogError("Could not find WhitelistProof address"); return null; } return WhitelistProof; } public static PublicKey findRarityPDA(PublicKey bank, PublicKey mint, out byte vaultBump) { if (!PublicKey.TryFindProgramAddress(new[] { Encoding.UTF8.GetBytes("gem_rarity"), bank.KeyBytes, mint.KeyBytes }, BankProgramm, out PublicKey Rarity, out vaultBump)) { Debug.LogError("Could not find Rarity address"); return null; } return Rarity; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlayNft.cs.meta
fileFormatVersion: 2 guid: 86594a55d7869473582df982b73553e9 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Utils.meta
fileFormatVersion: 2 guid: f80e9baafb1d4f8f8ac9f1c708c106a3 timeCreated: 1660466973
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui.meta
fileFormatVersion: 2 guid: bf0784cdf923a4595b4d9fd066cab2fa folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlay.cs.meta
fileFormatVersion: 2 guid: cb71c4d3291824f3ea2c4397d49cb62a MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Services.meta
fileFormatVersion: 2 guid: 02f040e78c5f4679bb0348f5a6caeaf8 timeCreated: 1666809458
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlay.cs
using Frictionless; using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.SceneManagement; namespace SolPlay.Scripts { public class SolPlay : MonoBehaviour { public static SolPlay Instance; private void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); return; } Instance = this; DontDestroyOnLoad(gameObject); ServiceFactory.RegisterSingleton(this); } public void LoadScene(string newSceneName) { MessageRouter.Reset(); ServiceFactory.Reset(); SceneManager.LoadScene(newSceneName); } public void LoadSceneAsync(string newSceneName) { MessageRouter.Reset(); ServiceFactory.Reset(); SceneManager.LoadSceneAsync(newSceneName); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlayFileLoader.cs
using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Cysharp.Threading.Tasks; using ThreeDISevenZeroR.UnityGifDecoder; using ThreeDISevenZeroR.UnityGifDecoder.Model; using UnityEngine; using UnityEngine.Networking; using Object = UnityEngine.Object; namespace SolPlay.Scripts { /// <summary> /// Originally from AllArt, but with some changes to also be able to load gifs and reduce garbage and name textures /// to be easily found in profiler. I will put this back into the UnitySDK core soon. /// </summary> public static class SolPlayFileLoader { public static async UniTask<T> LoadFile<T>(string path, string optionalName = "") { if (typeof(T) == typeof(Texture2D)) { if (path.Contains("gif")) { return await LoadGif<T>(path); } return await LoadTexture<T>(path); } #if UNITY_WEBGL return await LoadJsonWebRequest<T>(path); #else return await LoadJson<T>(path); #endif } private static async UniTask<T> LoadTexture<T>(string filePath, CancellationToken token = default) { using (UnityWebRequest uwr = UnityWebRequestTexture.GetTexture(filePath)) { await uwr.SendWebRequest(); while (!uwr.isDone && !token.IsCancellationRequested) { await Task.Yield(); } if (uwr.result is UnityWebRequest.Result.ConnectionError or UnityWebRequest.Result.ProtocolError) { Debug.Log(uwr.error); return default; } var texture = DownloadHandlerTexture.GetContent(uwr); // Important here to destroy the texture in the web request because it will leak otherwise. Object.Destroy(((DownloadHandlerTexture) uwr.downloadHandler).texture); return (T) Convert.ChangeType(texture, typeof(T)); } } public static Sprite LoadFromResources(string fileName) { return Resources.Load<Sprite>(fileName); } private static async UniTask<T> LoadGif<T>(string filePath, CancellationToken token = default) { using (UnityWebRequest uwr = UnityWebRequest.Get(filePath)) { uwr.SendWebRequest(); while (!uwr.isDone && !token.IsCancellationRequested) { await Task.Yield(); } if (uwr.result == UnityWebRequest.Result.ConnectionError) { Debug.Log(uwr.error); return default; } Texture mainTexture = GetTextureFromGifByteStream(uwr.downloadHandler.data); var changeType = (T) Convert.ChangeType(mainTexture, typeof(T)); return changeType; } } private static Texture2D GetTextureFromGifByteStream(byte[] bytes) { // Can use frame delayed for animated gifs, but i didnt to that for memory reasons var frameDelays = new List<float>(); using (var gifStream = new GifStream(bytes)) { while (gifStream.HasMoreData) { switch (gifStream.CurrentToken) { case GifStream.Token.Image: GifImage image = gifStream.ReadImage(); var frame = new Texture2D( gifStream.Header.width, gifStream.Header.height, TextureFormat.ARGB32, false); frame.SetPixels32(image.colors); frame.Apply(); frameDelays.Add(image.SafeDelaySeconds); // More about SafeDelay below //var imageSize = ServiceFactory.Resolve<NftService>().NftImageSize; //Texture2D resizedTexture = Resize(frame, imageSize, imageSize); return frame; case GifStream.Token.Comment: var commentText = gifStream.ReadComment(); Debug.Log(commentText); break; default: gifStream.SkipToken(); // Other tokens break; } } } return null; } static Texture2D Resize(Texture2D texture2D, int targetX, int targetY) { RenderTexture rt = new RenderTexture(targetX, targetY, 24); RenderTexture.active = rt; rt.name = "render texture"; Graphics.Blit(texture2D, rt); Texture2D result = new Texture2D(targetX, targetY); result.ReadPixels(new Rect(0, 0, targetX, targetY), 0, 0); result.Apply(); result.name = "resize result2d"; return result; } private static async UniTask<T> LoadJsonWebRequest<T>(string path) { using (UnityWebRequest uwr = UnityWebRequest.Get(path)) { uwr.downloadHandler = new DownloadHandlerBuffer(); uwr.SendWebRequest(); while (!uwr.isDone) { await Task.Yield(); } if (uwr.result == UnityWebRequest.Result.ConnectionError) { Debug.Log(uwr.error); return default(T); } string json = uwr.downloadHandler.text; Debug.Log(json); try { T data = Newtonsoft.Json.JsonConvert.DeserializeObject<T>(json); return data; } catch { return default; } } } private static async UniTask<T> LoadJson<T>(string path) { HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(path); response.EnsureSuccessStatusCode(); try { string responseBody = await response.Content.ReadAsStringAsync(); T data = Newtonsoft.Json.JsonConvert.DeserializeObject<T>(responseBody); client.Dispose(); return data; } catch { client.Dispose(); return default; throw; } } public static T LoadFileFromLocalPath<T>(string path) { T data; if (!File.Exists(path)) return default; byte[] bytes = System.IO.File.ReadAllBytes(path); if (typeof(T) == typeof(Texture2D)) { Texture2D texture = new Texture2D(1, 1); texture.LoadImage(bytes); return (T) Convert.ChangeType(texture, typeof(T)); } string contents = File.ReadAllText(path); try { data = JsonUtility.FromJson<T>(contents); return data; } catch { return default; } } public static void SaveToPersistenDataPath<T>(string path, T data) { if (typeof(T) == typeof(Texture2D)) { byte[] dataToByte = ((Texture2D) Convert.ChangeType(data, typeof(Texture2D))).EncodeToPNG(); File.WriteAllBytes(path, dataToByte); } else { string dataString = JsonUtility.ToJson(data); File.WriteAllText(path, dataString); } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlayNft.cs
using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Cysharp.Threading.Tasks; using Frictionless; using Solana.Unity.Metaplex.Utilities.Json; using Solana.Unity.Rpc; using Solana.Unity.Rpc.Models; using Solana.Unity.Rpc.Types; using Solana.Unity.SDK; using Solana.Unity.SDK.Nft; using Solana.Unity.Wallet; using Solana.Unity.Wallet.Utilities; using SolPlay.Scripts.Services; using UnityEngine; using Object = UnityEngine.Object; namespace SolPlay.Scripts { [Serializable] public class NftImage : iNftFile<Texture2D> { public string name { get; set; } public string extension { get; set; } public string externalUrl { get; set; } public Texture2D file { get; set; } } [Serializable] public class IgnoreTokenList { public List<string> TokenList = new List<string>(); } [Serializable] public class SolPlayNft { public Metaplex metaplexData; public AccountInfo AccountInfo; public TokenAccount TokenAccount; [NonSerialized] public Task LoadingImageTask; [NonSerialized] public string LoadingError; private static string ImagePrefix = "V5_Image_"; private static string JsonPrefix = "V5_Json_"; public SolPlayNft() { } public SolPlayNft(TokenAccount tokenAccount) { TokenAccount = tokenAccount; } public SolPlayNft(Metaplex metaplexData) { this.metaplexData = metaplexData; } public async UniTask LoadData(string mint, IRpcClient connection) { var seeds = new List<byte[]>(); seeds.Add(Encoding.UTF8.GetBytes("metadata")); seeds.Add(new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s").KeyBytes); seeds.Add(new PublicKey(mint).KeyBytes); if (!PublicKey.TryFindProgramAddress( seeds, new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"), out PublicKey metaplexDataPubKey, out var _bump)) { return; } var accountInfoResult = await connection.GetAccountInfoAsync(metaplexDataPubKey.Key, Commitment.Confirmed, BinaryEncoding.JsonParsed); AccountInfo accountInfo = accountInfoResult.Result.Value; if (accountInfo != null && accountInfo.Data != null && accountInfo.Data.Count > 0) { try { Nft.TryGetNftData(mint, Web3.Instance.WalletBase.ActiveRpcClient, false).AsUniTask().ContinueWith(nft => { metaplexData = nft.metaplexData; AccountInfo = accountInfo; LoadingImageTask = LoadImage(mint, this); if (metaplexData != null) { var nftService = ServiceFactory.Resolve<NftService>(); // TODO: removed because of magic block new version //nftService.MetaPlexNFts.Add(this); //MessageRouter.RaiseMessage(new NftJsonLoadedMessage(this)); } }).Forget(); } catch (Exception e) { ServiceFactory.Resolve<NftService>().AddToIgnoredTokenListAndSave(mint); Debug.LogWarning($"Nft data could not be parsed: {e} -> Added to ignore list"); } } else { // Only ignore the nft if account data was actually loaded if (accountInfo != null) { ServiceFactory.Resolve<NftService>().AddToIgnoredTokenListAndSave(mint); Debug.LogWarning($"Token seems to not be an NFT -> Added to ignore list"); } else { Debug.LogWarning($"Could not load token account for {metaplexDataPubKey.Key}"); } } } private async UniTask LoadJson(string mint) { MetaplexTokenStandard jsonData = await SolPlayFileLoader.LoadFile<MetaplexTokenStandard>(metaplexData.data.metadata.uri); if (jsonData != null) { metaplexData.data.offchainData = jsonData; SolPlayFileLoader.SaveToPersistenDataPath( Path.Combine(Application.persistentDataPath, $"{JsonPrefix}{mint}.json"), this); } else { LoadingError = "Could not load jsonData"; } } private static async Task LoadImage(string mint, SolPlayNft nft) { if (nft.metaplexData.data.offchainData == null) { return; } Texture2D texture = await SolPlayFileLoader.LoadFile<Texture2D>(nft.metaplexData.data.offchainData.default_image); var nftImageSize = ServiceFactory.Resolve<NftService>().NftImageSize; Texture2D compressedTexture = Resize(texture, nftImageSize, nftImageSize); if (compressedTexture) { NftImage nftImage = new NftImage(); nftImage.externalUrl = nft.metaplexData.data.offchainData.default_image; nftImage.file = compressedTexture; nft.metaplexData.nftImage = nftImage; SolPlayFileLoader.SaveToPersistenDataPath( Path.Combine(Application.persistentDataPath, $"{ImagePrefix}{mint}.png"), compressedTexture); } else { nft.LoadingError = "Could not load image"; } //MessageRouter.RaiseMessage(new NftImageLoadedMessage(nft)); } public static SolPlayNft TryLoadNftFromLocal(string mint) { SolPlayNft local = SolPlayFileLoader.LoadFileFromLocalPath<SolPlayNft>( $"{Path.Combine(Application.persistentDataPath, $"{JsonPrefix}{mint}")}.json"); if (local != null) { Texture2D tex = SolPlayFileLoader.LoadFileFromLocalPath<Texture2D>( $"{Path.Combine(Application.persistentDataPath, $"{ImagePrefix}{mint}")}.png"); if (tex) { local.metaplexData.nftImage = new NftImage(); local.metaplexData.nftImage.file = tex; } else { return null; } } return local; } /// <summary> /// Returns public key of nft /// </summary> /// <param name="seed"></param> /// <param name="programId"></param> /// <returns></returns> /// <exception cref="Exception"></exception> public static PublicKey CreateAddress(List<byte[]> seed, string programId) { List<byte> buffer = new List<byte>(); foreach (byte[] item in seed) { if (item.Length > 32) { throw new Exception("Too long"); } buffer.AddRange(item); } buffer.AddRange(seed[1]); byte[] derive = Encoding.UTF8.GetBytes("ProgramDerivedAddress"); buffer.AddRange(derive); SHA256 sha256 = SHA256.Create(); byte[] hash1 = sha256.ComputeHash(buffer.ToArray()); if (!hash1.IsOnCurve()) { throw new Exception("Not on curve"); } PublicKey publicKey = new PublicKey(hash1); return publicKey; } /// <summary> /// Returns metaplex data pubkey from mint pubkey and programId /// </summary> /// <param name="mintPublicKey"></param> /// <param name="programId"></param> /// <returns></returns> public static PublicKey FindProgramAddress(string mintPublicKey, string programId = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s") { List<byte[]> seeds = new List<byte[]>(); int nonce = 255; seeds.Add(Encoding.UTF8.GetBytes("metadata")); seeds.Add(new PublicKey(programId).KeyBytes); seeds.Add(new PublicKey(mintPublicKey).KeyBytes); seeds.Add(new[] {(byte) nonce}); PublicKey publicKey = null; while (nonce != 0) { try { seeds[3] = new[] {(byte) nonce}; publicKey = CreateAddress(seeds, programId); return publicKey; } catch { nonce--; continue; } } return publicKey; } /// <summary> /// Returns metaplex json data from forwarded jsonUrl /// </summary> public static async Task<T> GetMetaplexJsonData<T>(string jsonUrl) { HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(jsonUrl); response.EnsureSuccessStatusCode(); try { string responseBody = await response.Content.ReadAsStringAsync(); Debug.Log(responseBody); T data = Newtonsoft.Json.JsonConvert.DeserializeObject<T>(responseBody); client.Dispose(); return data; } catch { client.Dispose(); return default; throw; } } /// <summary> /// Resize great textures to small, because of performance /// </summary> public static Texture2D Resize(Texture2D texture2D, int targetX, int targetY) { RenderTexture rt = new RenderTexture(targetX, targetY, 24); RenderTexture.active = rt; Graphics.Blit(texture2D, rt); Texture2D result = new Texture2D(targetX, targetY); result.ReadPixels(new Rect(0, 0, targetX, targetY), 0, 0); result.Apply(); Object.Destroy(rt); return result; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/SolPlayFileLoader.cs.meta
fileFormatVersion: 2 guid: 4f5a68ea7462b46c490324b4b945ccab MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransferTokenPopup.cs.meta
fileFormatVersion: 2 guid: ec3976181c4ed4ac7a16a9e911009682 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/LoginScreen.cs.meta
fileFormatVersion: 2 guid: b49233f6bdd6e4595990b68ad018fea4 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/InGameWalletPopup.cs.meta
fileFormatVersion: 2 guid: 3408b6168b4c44109093fa6d77b37ccd timeCreated: 1670687527
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftListPopupUiData.cs
using Solana.Unity.SDK; using SolPlay.Scripts.Services; namespace SolPlay.Scripts.Ui { public class NftListPopupUiData : UiService.UiData { public bool RequestNfts; public WalletBase Wallet; public NftListPopupUiData(bool requestNfts, WalletBase wallet) { RequestNfts = requestNfts; Wallet = wallet; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftContextMenu.cs.meta
fileFormatVersion: 2 guid: fa2ed95613a844f5f9f1aa710c9be3ad MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/InGameWalletPopup.cs
using Frictionless; using SolPlay.DeeplinksNftExample.Utils; using SolPlay.Scripts.Services; using SolPlay.Scripts.Ui; using TMPro; using UnityEngine; using UnityEngine.UI; /// <summary> /// Popup which lets the player transfer sol to the in game wallet and withdraw it /// </summary> public class InGameWalletPopup : BasePopup { public Button DepositButton; public Button WithdrawButton; public Button AirdropButton; public TextMeshProUGUI MissingSolText; private void Awake() { DepositButton.onClick.AddListener(OnDepositButtonClicked); WithdrawButton.onClick.AddListener(OnWithdrawButtonClicked); AirdropButton.onClick.AddListener(OnAirdropButtonClicked); base.Awake(); } private async void OnAirdropButtonClicked() { AirdropButton.interactable = false; await ServiceFactory.Resolve<WalletHolderService>().RequestAirdrop(); AirdropButton.interactable = true; } public override void Open(UiService.UiData uiData) { var inGameWalletPopupUiData = (uiData as InGameWalletPopupUiData); if (inGameWalletPopupUiData == null) { Debug.LogError("Wrong ui data for ingame wallet popup"); return; } var isDevNetLogin = ServiceFactory.Resolve<WalletHolderService>().TwoWalletSetup; AirdropButton.gameObject.SetActive(true); DepositButton.interactable = !isDevNetLogin; WithdrawButton.interactable = !isDevNetLogin; MissingSolText.gameObject.SetActive(inGameWalletPopupUiData.RequiredLamports > 0); MissingSolText.text = $"You are missing {inGameWalletPopupUiData.RequiredLamports} lamports ({(inGameWalletPopupUiData.RequiredLamports / (float) SolanaUtils.SolToLamports).ToString("F2")}) sol in your in game wallet."; base.Open(uiData); } private async void OnWithdrawButtonClicked() { var transactionService = ServiceFactory.Resolve<TransactionService>(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); var result = await transactionService.TransferSolanaToPubkey(walletHolderService.InGameWallet, walletHolderService.BaseWallet.Account.PublicKey, walletHolderService.InGameWalletSolBalance - 1000000); } private async void OnDepositButtonClicked() { var transactionService = ServiceFactory.Resolve<TransactionService>(); var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); var result = await transactionService.TransferSolanaToPubkey(walletHolderService.BaseWallet, walletHolderService.InGameWallet.Account.PublicKey, SolanaUtils.SolToLamports / 2); } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/XpWidget.cs.meta
fileFormatVersion: 2 guid: ed3a3f05fe8d0440d90f10d1d43bcd95 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TextBlimp.cs
using TMPro; using UnityEngine; namespace SolPlay.Scripts.Ui { /// <summary> /// A little animated text on the screen, that disappears after some time. /// </summary> public class TextBlimp : MonoBehaviour { public TextMeshProUGUI Text; public void SetData(string text) { Text.text = text; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/InGameWalletPopupUiData.cs.meta
fileFormatVersion: 2 guid: ec40e7449ef042d88eb313d801251bc5 timeCreated: 1670693283
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/FitCameraToLoadedMeshRenderer.cs
using SolPlay.Utils; using UnityEngine; public class FitCameraToLoadedMeshRenderer : MonoBehaviour { public float marginPercentage = 1; public GameObject Target; private Camera camera; private void Awake() { camera = GetComponent<Camera>(); } void Update() { Bounds bounds = UnityUtils.GetBoundsWithChildren(Target); float maxExtent = bounds.extents.magnitude; float minDistance = (maxExtent * marginPercentage) / Mathf.Sin(Mathf.Deg2Rad * camera.fieldOfView / 2f); camera.transform.position = Target.transform.position - Vector3.forward * minDistance; camera.nearClipPlane = minDistance - maxExtent; } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/BlimpSystem.cs
using System; using System.Collections; using Frictionless; using UnityEngine; namespace SolPlay.Scripts.Ui { public class BlimpSystem : MonoBehaviour { public enum BlimpType { TextWithBackground, Boost, Score, DamageBlimp, CoinBlimp, } public class ShowLogMessage { public string BlimpText; public BlimpType BlimpType; public ShowLogMessage(string blimpText, BlimpType blimpType = BlimpType.TextWithBackground) { BlimpText = blimpText; BlimpType = blimpType; } } public class ShowBlimpMessage { public string BlimpText; public BlimpType BlimpType; public Vector3 Position; public ShowBlimpMessage(string blimpText, Vector3 position, BlimpType blimpType = BlimpType.TextWithBackground) { BlimpText = blimpText; BlimpType = blimpType; Position = position; } } public class Show3DBlimpMessage { public string BlimpText; public BlimpType BlimpType; public Vector3 Position; public Show3DBlimpMessage(string blimpText, Vector3 position, BlimpType blimpType = BlimpType.DamageBlimp) { BlimpText = blimpText; BlimpType = blimpType; Position = position; } } public TextBlimp TextBlimpPrefab; public TextBlimp BoostBlimpPrefab; public TextBlimp ScoreBlimpPrefab; public TextBlimp3D DamageBlimpPrefab; public TextBlimp3D CoinBlimpPrefab; public GameObject LogMessageRoot; public GameObject BlimpRoot; void Start() { MessageRouter.AddHandler<ShowLogMessage>(OnShowLogMessage); MessageRouter.AddHandler<ShowBlimpMessage>(OnShowBlimpMessage); MessageRouter.AddHandler<Show3DBlimpMessage>(OnShow3DBlimpMessage); Application.logMessageReceived += OnLogMessage; } private void OnShow3DBlimpMessage(Show3DBlimpMessage message) { TextBlimp3D textBlimpPrefab = null; switch (message.BlimpType) { case BlimpType.CoinBlimp: textBlimpPrefab = CoinBlimpPrefab; break; case BlimpType.DamageBlimp: textBlimpPrefab = DamageBlimpPrefab; break; } TextBlimp3D textBlimp = Instantiate(textBlimpPrefab); textBlimp.SetData(message.BlimpText); textBlimp.transform.position = message.Position; StartCoroutine(DestroyDelayed(textBlimp.gameObject)); } private void OnShowBlimpMessage(ShowBlimpMessage message) { // TODO: Pool for production TextBlimp blimpPrefab = null; string animationId = null; switch (message.BlimpType) { case BlimpType.TextWithBackground: blimpPrefab = TextBlimpPrefab; break; case BlimpType.Boost: blimpPrefab = BoostBlimpPrefab; animationId = "BoostBlimpAppear"; break; case BlimpType.Score: blimpPrefab = ScoreBlimpPrefab; break; default: throw new ArgumentOutOfRangeException(nameof(message), message, null); } var instance = Instantiate(blimpPrefab, BlimpRoot.transform); instance.transform.position = message.Position; instance.SetData(message.BlimpText); if (!string.IsNullOrEmpty(animationId)) { instance.GetComponent<Animator>().Play(animationId); } StartCoroutine(DestroyDelayed(instance.gameObject)); } private void OnDestroy() { MessageRouter.RemoveHandler<ShowLogMessage>(OnShowLogMessage); Application.logMessageReceived -= OnLogMessage; } private void OnLogMessage(string condition, string stacktrace, LogType type) { if (!Application.isPlaying) { return; } if (type == LogType.Error || type == LogType.Exception) { SpawnBlimp(condition, BlimpType.TextWithBackground); Debug.Log("Error" + stacktrace); } } private void OnShowLogMessage(ShowLogMessage message) { SpawnBlimp(message.BlimpText, message.BlimpType); } private void SpawnBlimp(string message, BlimpType blimpType) { // TODO: Pool for production TextBlimp blimpPrefab = null; string animationId = null; switch (blimpType) { case BlimpType.TextWithBackground: blimpPrefab = TextBlimpPrefab; break; case BlimpType.Boost: blimpPrefab = BoostBlimpPrefab; animationId = "BoostBlimpAppear"; break; case BlimpType.Score: blimpPrefab = ScoreBlimpPrefab; break; default: throw new ArgumentOutOfRangeException(nameof(blimpType), blimpType, null); } var instance = Instantiate(blimpPrefab, LogMessageRoot.transform); instance.SetData(message); if (!string.IsNullOrEmpty(animationId)) { instance.GetComponent<Animator>().Play(animationId); } StartCoroutine(DestroyDelayed(instance.gameObject)); } private IEnumerator DestroyDelayed(GameObject go) { yield return new WaitForSeconds(2.5f); Destroy(go); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenItemView.cs.meta
fileFormatVersion: 2 guid: ba5abb5cbe28405d83bf4d99542d26cb timeCreated: 1667819716
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/FitCameraToLoadedMeshRenderer.cs.meta
fileFormatVersion: 2 guid: 9683fbc226071441cb681464e8c1999a MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransferNftPopup.cs
using BarcodeScanner; using BarcodeScanner.Scanner; using System; using System.Collections; using AllArt.Solana.Example; using Frictionless; using Solana.Unity.SDK.Nft; using Solana.Unity.Wallet; using SolPlay.Orca; using SolPlay.Scripts; using SolPlay.Scripts.Services; using SolPlay.Scripts.Ui; using TMPro; using UnityEngine; using UnityEngine.UI; /// <summary> /// Popup with a QrCode Scanner to scan Solana Addresses. /// </summary> public class TransferNftPopup : BasePopup { public TMP_InputField AdressInput; public RawImage CameraRawImage; public AudioSource Audio; public NftItemView NftItemView; public Button TransferButton; private float RestartTime; private QrCodeData CurrentQrCodeData; private IScanner BarcodeScanner; private Nft currentNft; private Token currentToken; private new void Awake() { TransferButton.onClick.AddListener(OnTransferClicked); base.Awake(); } // Disable Screen Rotation on that screen (Not sure if needed) void OnEnable() { // Screen.autorotateToPortrait = false; // Screen.autorotateToPortraitUpsideDown = false; } private void Open(Nft nft) { currentNft = nft; NftItemView.gameObject.SetActive(true); NftItemView.SetData(nft, view => { }); } public override void Open(UiService.UiData uiData) { var transferPopupUiData = (uiData as TransferNftPopupUiData); if (transferPopupUiData == null) { Debug.LogError("Wrong ui data for transfer popup"); return; } base.Open(uiData); if (transferPopupUiData.NftToTransfer != null) { Open(transferPopupUiData.NftToTransfer); } StartCoroutine(InitScanner()); } public override void Close() { StartCoroutine(StopCamera(() => { base.Close(); })); } private async void OnTransferClicked() { if (currentNft != null) { string destinationAddress = AdressInput.text; PublicKey address = new PublicKey(destinationAddress); var result = await ServiceFactory.Resolve<TransactionService>() .TransferNftToPubkey(address, currentNft); } Close(); } IEnumerator InitScanner() { yield return Application.RequestUserAuthorization(UserAuthorization.WebCam); if (Application.HasUserAuthorization(UserAuthorization.WebCam)) { CameraRawImage.gameObject.SetActive(true); Debug.Log("webcam found"); } else { CameraRawImage.gameObject.SetActive(false); Debug.Log("webcam not found"); } // Create a basic scanner BarcodeScanner = new Scanner(); BarcodeScanner.Camera.Play(); // Display the camera texture through a RawImage BarcodeScanner.OnReady += (sender, arg) => { // Set Orientation & Texture CameraRawImage.transform.localEulerAngles = BarcodeScanner.Camera.GetEulerAngles(); CameraRawImage.transform.localScale = BarcodeScanner.Camera.GetScale(); CameraRawImage.texture = BarcodeScanner.Camera.Texture; // Keep Image Aspect Ratio var rect = CameraRawImage.GetComponent<RectTransform>(); var newHeight = rect.sizeDelta.x * BarcodeScanner.Camera.Height / BarcodeScanner.Camera.Width; rect.sizeDelta = new Vector2(rect.sizeDelta.x, newHeight); RestartTime = Time.realtimeSinceStartup; }; } /// <summary> /// Start a scan and wait for the callback (wait 1s after a scan success to avoid scanning multiple time the same element) /// </summary> private void StartScanner() { BarcodeScanner.Scan((barCodeType, barCodeValue) => { BarcodeScanner.Stop(); if (AdressInput.text.Length > 250) { AdressInput.text = ""; } Debug.Log("Found: " + barCodeType + " / " + barCodeValue + "\n"); AdressInput.text = barCodeValue; // You can do this if you want to add extra information in the QR code. // I used this one to put a sol amount in for example and then use this to request an amount, like // in solana pay //CurrentQrCodeData = JsonUtility.FromJson<QrCodeData>(barCodeValue); //Debug.Log($"Current data scanne: {CurrentQrCodeData.SolAdress} {CurrentQrCodeData.SolValue} "); //TransferScreen.SetQrCodeData(qrCodeData); RestartTime += Time.realtimeSinceStartup + 1f; Audio.Play(); #if UNITY_ANDROID || UNITY_IOS Handheld.Vibrate(); #endif }); } /// <summary> /// The Update method from unity need to be propagated /// </summary> void Update() { if (!Root.gameObject.activeInHierarchy) { return; } if (BarcodeScanner != null) { BarcodeScanner.Update(); } // Check if the Scanner need to be started or restarted if (RestartTime != 0 && RestartTime < Time.realtimeSinceStartup) { StartScanner(); RestartTime = 0; } } /// <summary> /// This coroutine is used because of a bug with unity (http://forum.unity3d.com/threads/closing-scene-with-active-webcamtexture-crashes-on-android-solved.363566/) /// Trying to stop the camera in OnDestroy provoke random crash on Android /// </summary> /// <param name="callback"></param> /// <returns></returns> public IEnumerator StopCamera(Action callback) { // Stop Scanning BarcodeScanner.Stop(); BarcodeScanner.Camera.Stop(); CameraRawImage.texture = null; // Wait a bit yield return new WaitForSeconds(0.1f); callback.Invoke(); } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransactionInfoListItemView.cs.meta
fileFormatVersion: 2 guid: add3a61dd51f74927a6c7e14e505f662 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftItemListView.cs.meta
fileFormatVersion: 2 guid: d0e266ef90f54494bbd77ded7a8f4201 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/BasePopup.cs.meta
fileFormatVersion: 2 guid: b54549bd3faf4cb399338343fb9093d2 timeCreated: 1664440654
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftListPopup.cs
using System.Threading.Tasks; using Frictionless; using SolPlay.DeeplinksNftExample.Scripts; using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { /// <summary> /// Screen that loads all NFTs when opened /// </summary> public class NftListPopup : BasePopup { public Button GetNFtsDataButton; public Button GetNFtsNotCachedButton; public Button GetBeaverButton; public Button MintInAppButton; public Button MintInApp3DButton; public NftItemListView NftItemListView; public GameObject YouDontOwnABeaverRoot; public GameObject YouOwnABeaverRoot; public GameObject LoadingSpinner; public GameObject MinitingBlocker; async void Start() { GetNFtsDataButton.onClick.AddListener(OnGetNftButtonClicked); GetNFtsNotCachedButton.onClick.AddListener(OnNFtsNotCachedButtonClicked); GetBeaverButton.onClick.AddListener(OnOpenMinitingUrlButtonClicked); MintInAppButton.onClick.AddListener(OnMintInAppButtonClicked); MintInApp3DButton.onClick.AddListener(OnMintInApp3DButtonClicked); MessageRouter .AddHandler<NftLoadingStartedMessage>(OnNftLoadingStartedMessage); MessageRouter .AddHandler<NftLoadingFinishedMessage>(OnNftLoadingFinishedMessage); MessageRouter .AddHandler<NftLoadedMessage>(OnNftLoadedMessage); MessageRouter .AddHandler<NftMintFinishedMessage>(OnNftMintFinishedMessage); MessageRouter .AddHandler<WalletLoggedInMessage>(OnWalletLoggedInMessage); } public override void Open(UiService.UiData uiData) { var nftListPopupUiData = (uiData as NftListPopupUiData); if (nftListPopupUiData == null) { Debug.LogError("Wrong ui data for nft list popup"); return; } NftItemListView.UpdateContent(); NftItemListView.SetData(nft => { // when an nft was selected we want to close the popup so we can start the game. Close(); }); base.Open(uiData); } private async void OnWalletLoggedInMessage(WalletLoggedInMessage message) { await OnLogin(); } private async Task OnLogin() { await RequestNfts(true); } private async void OnMintInApp3DButtonClicked() { if (MinitingBlocker != null) { MinitingBlocker.gameObject.SetActive(true); } var signature = await ServiceFactory.Resolve<NftMintingService>() .MintNftWithMetaData( "https://arweave.net/x-NmscUWB6zzdROsLsX1-CfRVVlYcuBL2rQ5vk8Fslo", "Alpha Racing", "Test", b => { if (MinitingBlocker != null) { MinitingBlocker.gameObject.SetActive(false); } }); } private async void OnMintInAppButtonClicked() { if (MinitingBlocker != null) { MinitingBlocker.gameObject.SetActive(true); } // Mint a pirate sship var signature = await ServiceFactory.Resolve<NftMintingService>() .MintNftWithMetaData( "https://shdw-drive.genesysgo.net/QZNGUVnJgkw6sGQddwZVZkhyUWSUXAjXF9HQAjiVZ55/DummyPirateShipMetaData.json", "Simple Pirate Ship", "Pirate", b => { if (MinitingBlocker != null) { MinitingBlocker.gameObject.SetActive(false); } }); // Mint a baloon beaver /* var signature = await ServiceFactory.Resolve<NftMintingService>() .MintNftWithMetaData( "https://shdw-drive.genesysgo.net/2TvgCDMEcSGnfuSUZNHvKpHL9Z5hLn19YqvgeUpS6rSs/manifest.json", "Balloon Beaver", "Beaver", b => { if (MinitingBlocker != null) { MinitingBlocker.gameObject.SetActive(false); } }); */ // Mint a solandy /*LoggingService.Log("Start minting a 'SolAndy' nft", true); var signature = await ServiceFactory.Resolve<NftMintingService>().MintNftWithMetaData("https://shdw-drive.genesysgo.net/4JaYMUSY8f56dFzmdhuzE1QUqhkJYhsC6wZPaWg9Zx7f/manifest.json", "SolAndy", "SolPlay"); ServiceFactory.Resolve<TransactionService>().CheckSignatureStatus(signature, () => { RequestNfts(true); LoggingService.Log("Mint Successfull! Woop woop!", true); });*/ // Mint from a candy machine (This one is from zen republic, i only used it for testing) //var signature = await ServiceFactory.Resolve<NftMintingService>() // .MintNFTFromCandyMachineV2(new PublicKey("3eqPffoeSj7e2ZkyHJHyYPc7qm8rbGDZFwM9oYSW4Z5w")); } private void OnOpenMinitingUrlButtonClicked() { // Here you can just open the link to your minting page within phantom mobile browser PhantomUtils.OpenUrlInWalletBrowser("https://beavercrush.com"); } private void OnNftLoadedMessage(NftLoadedMessage message) { NftItemListView.AddNFt(message.Nft); UpdateBeaverStatus(); } private bool UpdateBeaverStatus() { var nftService = ServiceFactory.Resolve<NftService>(); bool ownsBeaver = nftService.OwnsNftOfMintAuthority(NftService.BeaverNftMintAuthority); YouDontOwnABeaverRoot.gameObject.SetActive(!ownsBeaver); YouOwnABeaverRoot.gameObject.SetActive(ownsBeaver); return ownsBeaver; } private async void OnGetNftButtonClicked() { await RequestNfts(true); } private async void OnNFtsNotCachedButtonClicked() { await RequestNfts(false); } private void OnNftLoadingStartedMessage(NftLoadingStartedMessage message) { GetNFtsDataButton.interactable = false; GetNFtsNotCachedButton.interactable = false; } private void OnNftLoadingFinishedMessage(NftLoadingFinishedMessage message) { NftItemListView.UpdateContent(); } private void OnNftMintFinishedMessage(NftMintFinishedMessage message) { RequestNfts(true); } private void Update() { var nftService = ServiceFactory.Resolve<NftService>(); if (nftService != null) { GetNFtsDataButton.interactable = !nftService.IsLoadingTokenAccounts; GetNFtsNotCachedButton.interactable = !nftService.IsLoadingTokenAccounts; LoadingSpinner.gameObject.SetActive(nftService.IsLoadingTokenAccounts); } } private async Task RequestNfts(bool tryUseLocalCache) { ServiceFactory.Resolve<NftService>().LoadNfts(); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenPanel.cs.meta
fileFormatVersion: 2 guid: b3585658f03574e5a97ec9242044a592 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftListScreen.cs
using System.Threading.Tasks; using Frictionless; using SolPlay.DeeplinksNftExample.Scripts; using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { /// <summary> /// Screen that loads all NFTs when opened /// </summary> public class NftListScreen : MonoBehaviour { public Button GetNFtsDataButton; public Button GetNFtsNotCachedButton; public Button GetBeaverButton; public Button MintInAppButton; public Button MintInApp3DButton; public NftItemListView NftItemListView; public GameObject YouDontOwnABeaverRoot; public GameObject YouOwnABeaverRoot; public GameObject LoadingSpinner; public GameObject InteractionBlockerRoot; async void Start() { GetNFtsDataButton.onClick.AddListener(OnGetNftButtonClicked); GetNFtsNotCachedButton.onClick.AddListener(OnNFtsNotCachedButtonClicked); GetBeaverButton.onClick.AddListener(OnGetBeaverButtonClicked); MintInAppButton.onClick.AddListener(OnMintInAppButtonClicked); MintInApp3DButton.onClick.AddListener(OnMintInApp3DButtonClicked); // #if UNITY_IOS // If you have minting of NFTs in your app it may be hard to get into the AppStore //GetBeaverButton.gameObject.SetActive(false); // #endif MessageRouter.AddHandler<NftLoadedMessage>(OnNftLoadedMessage); MessageRouter .AddHandler<NftLoadingStartedMessage>(OnNftLoadingStartedMessage); MessageRouter .AddHandler<NftLoadingFinishedMessage>(OnNftLoadingFinishedMessage); MessageRouter .AddHandler<NftMintFinishedMessage>(OnNftMintFinishedMessage); MessageRouter .AddHandler<WalletLoggedInMessage>(OnWalletLoggedInMessage); if (ServiceFactory.Resolve<WalletHolderService>().IsLoggedIn) { await RequestNfts(true); UpdateBeaverStatus(); } } private async void OnWalletLoggedInMessage(WalletLoggedInMessage message) { await OnLogin(); } private async Task OnLogin() { await RequestNfts(true); } private async void OnMintInApp3DButtonClicked() { if (InteractionBlockerRoot != null) { InteractionBlockerRoot.gameObject.SetActive(true); } var signature = await ServiceFactory.Resolve<NftMintingService>() .MintNftWithMetaData( "https://arweave.net/x-NmscUWB6zzdROsLsX1-CfRVVlYcuBL2rQ5vk8Fslo", "Alpha Racing Dummy", "Test3D", b => { if (InteractionBlockerRoot != null) { InteractionBlockerRoot.gameObject.SetActive(false); } }); } private async void OnMintInAppButtonClicked() { if (InteractionBlockerRoot != null) { InteractionBlockerRoot.gameObject.SetActive(true); } // Mint a baloon beaver var signature = await ServiceFactory.Resolve<NftMintingService>() .MintNftWithMetaData( "https://shdw-drive.genesysgo.net/2TvgCDMEcSGnfuSUZNHvKpHL9Z5hLn19YqvgeUpS6rSs/manifest.json", "Balloon Beaver", "Beaver", b => { if (InteractionBlockerRoot != null) { InteractionBlockerRoot.gameObject.SetActive(false); } }); // Mint a solandy /*LoggingService.Log("Start minting a 'SolAndy' nft", true); var signature = await ServiceFactory.Resolve<NftMintingService>().MintNftWithMetaData("https://shdw-drive.genesysgo.net/4JaYMUSY8f56dFzmdhuzE1QUqhkJYhsC6wZPaWg9Zx7f/manifest.json", "SolAndy", "SolPlay"); ServiceFactory.Resolve<TransactionService>().CheckSignatureStatus(signature, () => { RequestNfts(true); LoggingService.Log("Mint Successfull! Woop woop!", true); });*/ // Mint from a candy machine (This one is from zen republic, i only used it for testing) //var signature = await ServiceFactory.Resolve<NftMintingService>() // .MintNFTFromCandyMachineV2(new PublicKey("3eqPffoeSj7e2ZkyHJHyYPc7qm8rbGDZFwM9oYSW4Z5w")); } private void OnGetBeaverButtonClicked() { // Here you can just open the link to your minting page within phantom mobile browser PhantomUtils.OpenUrlInWalletBrowser("https://beavercrush.com"); } private void OnNftLoadedMessage(NftLoadedMessage message) { NftItemListView.AddNFt(message.Nft); UpdateBeaverStatus(); } private bool UpdateBeaverStatus() { var nftService = ServiceFactory.Resolve<NftService>(); bool ownsBeaver = nftService.OwnsNftOfMintAuthority(NftService.BeaverNftMintAuthority); YouDontOwnABeaverRoot.gameObject.SetActive(!ownsBeaver); YouOwnABeaverRoot.gameObject.SetActive(ownsBeaver); return ownsBeaver; } private async void OnGetNftButtonClicked() { await RequestNfts(true); } private async void OnNFtsNotCachedButtonClicked() { await RequestNfts(false); } private void OnNftLoadingStartedMessage(NftLoadingStartedMessage message) { GetNFtsDataButton.interactable = false; GetNFtsNotCachedButton.interactable = false; } private void OnNftLoadingFinishedMessage(NftLoadingFinishedMessage message) { NftItemListView.UpdateContent(); } private void OnNftMintFinishedMessage(NftMintFinishedMessage message) { RequestNfts(true); } private void Update() { var nftService = ServiceFactory.Resolve<NftService>(); if (nftService != null) { GetNFtsDataButton.interactable = !nftService.IsLoadingTokenAccounts; GetNFtsNotCachedButton.interactable = !nftService.IsLoadingTokenAccounts; LoadingSpinner.gameObject.SetActive(nftService.IsLoadingTokenAccounts); } } private async Task RequestNfts(bool tryUseLocalCache) { ServiceFactory.Resolve<NftService>() .LoadNfts(); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenItemView.cs
using System; using SolPlay.DeeplinksNftExample.Scripts; using SolPlay.Orca; using TMPro; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { /// <summary> /// Show the image of a Token. Tokens are currently coming from the orca API so we dont need to always get /// Token account info. /// </summary> public class TokenItemView : MonoBehaviour { public Token CurrentToken; public Image Icon; public TextMeshProUGUI Headline; public Button Button; private Action<TokenItemView> onButtonClickedAction; public async void SetData(Token token, Action<TokenItemView> onButtonClicked = null) { if (token == null) { return; } CurrentToken = token; Icon.gameObject.SetActive(false); if (gameObject.activeInHierarchy) { Icon.gameObject.SetActive(true); Icon.sprite = await OrcaWhirlpoolService.GetTokenIconSprite(token.mint, token.symbol); } Headline.text = CurrentToken.symbol; Button.onClick.AddListener(OnButtonClicked); onButtonClickedAction = onButtonClicked; } private void OnButtonClicked() { onButtonClickedAction?.Invoke(this); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenScreen.cs
using Frictionless; using Solana.Unity.Wallet; using SolPlay.DeeplinksNftExample.Scripts; using SolPlay.DeeplinksNftExample.Utils; using SolPlay.Orca; using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { public class TokenScreen : MonoBehaviour { public Button GetSolPlayTokenButton; public Button TransferSolButton; public Button TokenTransactionButton; void Awake() { GetSolPlayTokenButton.onClick.AddListener(OnGetSolPlayTokenButtonClicked); TransferSolButton.onClick.AddListener(OnTransferSolButtonClicked); TokenTransactionButton.onClick.AddListener(OnTokenTransactionButtonClicked); } private async void OnTokenTransactionButtonClicked() { Token usdcToken = ServiceFactory.Resolve<OrcaWhirlpoolService>() .GetToken(new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v")); ServiceFactory.Resolve<UiService>().OpenPopup(UiService.ScreenType.TransferTokenPopup, new TransferTokenPopupUiData(usdcToken)); } private async void OnTransferSolButtonClicked() { Token wrappedSolToken = ServiceFactory.Resolve<OrcaWhirlpoolService>() .GetToken(new PublicKey("So11111111111111111111111111111111111111112")); ServiceFactory.Resolve<UiService>().OpenPopup(UiService.ScreenType.TransferTokenPopup, new TransferTokenPopupUiData(wrappedSolToken)); } private void OnGetSolPlayTokenButtonClicked() { // To let people buy a token just put the direct raydium link to your token and open it with a phantom deeplink. PhantomUtils.OpenUrlInWalletBrowser( "https://raydium.io/swap/?inputCurrency=sol&outputCurrency=PLAyKbtrwQWgWkpsEaMHPMeDLDourWEWVrx824kQN8P&inputAmount=0.1&outputAmount=0.9&fixed=in"); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransactionInfoListItemView.cs
using System; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using Frictionless; using Solana.Unity.Rpc.Core.Http; using Solana.Unity.Rpc.Messages; using Solana.Unity.Rpc.Models; using Solana.Unity.Rpc.Types; using SolPlay.Scripts.Services; using SolPlay.Scripts.Ui; using TMPro; using UnityEngine; using UnityEngine.PlayerLoop; public class TransactionInfoListItemView : MonoBehaviour { public TextMeshProUGUI TransactionName; public TextMeshProUGUI Confirmations; public GameObject SuccessRoot; public GameObject FailRoot; public GameObject RunnigRoot; public GameObject InitializingRoot; private ulong? confirmations; private TransactionInfoSystem.TransactionInfoObject transactionInfoObject; int retryCounter = 0; const int maxTries = 30; private enum TransactionStatus { Running, Failed, Success, Initializing } public void SetData(TransactionInfoSystem.TransactionInfoObject transactionInfoObject) { this.transactionInfoObject = transactionInfoObject; TransactionName.text = transactionInfoObject.TransactionName; UpdateContent(TransactionStatus.Initializing); transactionInfoObject.OnError = error => { UpdateContent(TransactionStatus.Failed); Confirmations.text = error; StartCoroutine(DestroyDelayed()); }; if (!string.IsNullOrEmpty(transactionInfoObject.Signature)) { StartCoroutine(ConfirmTransaction(transactionInfoObject)); } else { transactionInfoObject.OnSignatureReady = s => { transactionInfoObject.Signature = s; StartCoroutine(ConfirmTransaction(transactionInfoObject)); }; } } private IEnumerator ConfirmTransaction(TransactionInfoSystem.TransactionInfoObject transactionInfoObject) { bool transactionFinalized = false; UpdateContent(TransactionStatus.Running); while (!transactionFinalized && retryCounter < maxTries) { retryCounter++; Task<RequestResult<ResponseValue<List<SignatureStatusInfo>>>> task = transactionInfoObject.Wallet.ActiveRpcClient.GetSignatureStatusesAsync(new List<string>() {transactionInfoObject.Signature}, true); yield return new WaitUntil(() => task.IsCompleted); RequestResult<ResponseValue<List<SignatureStatusInfo>>> signatureResult = task.Result; if (signatureResult.Result == null) { UpdateContent(TransactionStatus.Failed); yield return new WaitForSeconds(0.5f); continue; } foreach (var signatureStatusInfo in signatureResult.Result.Value) { if (signatureStatusInfo == null) { UpdateContent(TransactionStatus.Running); } else { confirmations = signatureStatusInfo.Confirmations; if (signatureStatusInfo.ConfirmationStatus == Enum.GetName(typeof(TransactionService.TransactionResult), transactionInfoObject.Commitment) || signatureStatusInfo.ConfirmationStatus == Enum.GetName( typeof(TransactionService.TransactionResult), TransactionService.TransactionResult.finalized)) { MessageRouter.RaiseMessage(new TokenValueChangedMessage()); UpdateContent(TransactionStatus.Success); transactionFinalized = true; } else { UpdateContent(TransactionStatus.Running); } } } yield return new WaitForSeconds(0.2f); if (retryCounter >= maxTries) { UpdateContent(TransactionStatus.Failed); StartCoroutine(DestroyDelayed()); } } } private void UpdateContent(TransactionStatus transactionStatus) { FailRoot.gameObject.SetActive(transactionStatus == TransactionStatus.Failed); SuccessRoot.gameObject.SetActive(transactionStatus == TransactionStatus.Success); RunnigRoot.gameObject.SetActive(transactionStatus == TransactionStatus.Running); InitializingRoot.gameObject.SetActive(transactionStatus == TransactionStatus.Initializing); if (transactionInfoObject.Commitment == Commitment.Confirmed) { Confirmations.text = $"{confirmations}/1"; } else { Confirmations.text = $"{confirmations}/31"; } if (transactionStatus == TransactionStatus.Success) { StartCoroutine(DestroyDelayed()); } else if (transactionStatus == TransactionStatus.Failed) { Confirmations.text = $"<color=red>{retryCounter}/{maxTries}</color>"; } else if (transactionStatus == TransactionStatus.Running && retryCounter > 0) { Confirmations.text = $"<color=red>{retryCounter}/{maxTries}</color>"; } } private IEnumerator DestroyDelayed() { yield return new WaitForSeconds(2); Destroy(gameObject); } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftItemListView.cs
using System; using System.Collections.Generic; using Frictionless; using Solana.Unity.SDK.Nft; using SolPlay.Scripts.Services; using UnityEngine; namespace SolPlay.Scripts.Ui { public class NftItemListView : MonoBehaviour { public GameObject ItemRoot; public NftItemView itemPrefab; public string FilterSymbol; public string BlackList; private List<NftItemView> allNftItemViews = new List<NftItemView>(); private Action<Nft> onNftSelected; public void OnEnable() { UpdateContent(); } public void Start() { MessageRouter.AddHandler<NftSelectedMessage>(OnNFtSelectedMessage); MessageRouter.AddHandler<NewHighScoreLoadedMessage>(OnHighscoreLoadedMessage); } public void SetData(Action<Nft> onNftSelected) { this.onNftSelected = onNftSelected; } private void OnHighscoreLoadedMessage(NewHighScoreLoadedMessage message) { foreach (var itemView in allNftItemViews) { if (itemView.CurrentSolPlayNft.metaplexData.data.mint == message.HighscoreEntry.Seed) { itemView.PowerLevel.text = $"Score: {message.HighscoreEntry.Highscore}"; } } } private void OnNFtSelectedMessage(NftSelectedMessage message) { UpdateContent(); } public void UpdateContent() { var nftService = ServiceFactory.Resolve<NftService>(); if (nftService == null) { return; } foreach (Nft nft in nftService.MetaPlexNFts) { AddNFt(nft); } List<NftItemView> notExistingNfts = new List<NftItemView>(); foreach (NftItemView nftItemView in allNftItemViews) { bool existsInWallet = false; foreach (Nft walletNft in nftService.MetaPlexNFts) { if (nftItemView.CurrentSolPlayNft.metaplexData.data.mint == walletNft.metaplexData.data.mint) { existsInWallet = true; break; } } if (!existsInWallet) { notExistingNfts.Add(nftItemView); } } for (var index = notExistingNfts.Count - 1; index >= 0; index--) { var nftView = notExistingNfts[index]; allNftItemViews.Remove(nftView); Destroy(nftView.gameObject); } } public void AddNFt(Nft newSolPlayNft) { foreach (var nft in allNftItemViews) { if (nft.CurrentSolPlayNft.metaplexData.data.mint == newSolPlayNft.metaplexData.data.mint) { // already exists return; } } InstantiateListNftItem(newSolPlayNft); } private void InstantiateListNftItem(Nft solPlayNft) { if (string.IsNullOrEmpty(solPlayNft.metaplexData.data.mint)) { return; } if (!string.IsNullOrEmpty(FilterSymbol) && solPlayNft.metaplexData.data.offchainData.symbol != FilterSymbol) { return; } if (!string.IsNullOrEmpty(BlackList) && solPlayNft.metaplexData.data.offchainData.symbol == BlackList) { return; } NftItemView nftItemView = Instantiate(itemPrefab, ItemRoot.transform); nftItemView.SetData(solPlayNft, OnItemClicked); allNftItemViews.Add(nftItemView); } private void OnItemClicked(NftItemView itemView) { //Debug.Log("Item Clicked: " + itemView.CurrentSolPlayNft.metaplexData.data.offchainData.name); ServiceFactory.Resolve<NftContextMenu>().Open(itemView, onNftSelected); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/SafeArea.cs
using UnityEngine; namespace SolPlay.Scripts.Ui { /// <summary> /// Safe area implementation for notched mobile devices. Usage: /// (1) Add this component to the top level of any GUI panel. /// (2) If the panel uses a full screen background image, then create an immediate child and put the component on that instead, with all other elements childed below it. /// This will allow the background image to stretch to the full extents of the screen behind the notch, which looks nicer. /// (3) For other cases that use a mixture of full horizontal and vertical background stripes, use the Conform X & Y controls on separate elements as needed. /// </summary> public class SafeArea : MonoBehaviour { #region Simulations /// <summary> /// Simulation device that uses safe area due to a physical notch or software home bar. For use in Editor only. /// </summary> public enum SimDevice { /// <summary> /// Don't use a simulated safe area - GUI will be full screen as normal. /// </summary> None, /// <summary> /// Simulate the iPhone X and Xs (identical safe areas). /// </summary> iPhoneX, /// <summary> /// Simulate the iPhone Xs Max and XR (identical safe areas). /// </summary> iPhoneXsMax, /// <summary> /// Simulate the Google Pixel 3 XL using landscape left. /// </summary> Pixel3XL_LSL, /// <summary> /// Simulate the Google Pixel 3 XL using landscape right. /// </summary> Pixel3XL_LSR } /// <summary> /// Simulation mode for use in editor only. This can be edited at runtime to toggle between different safe areas. /// </summary> public static SimDevice Sim = SimDevice.None; /// <summary> /// Normalised safe areas for iPhone X with Home indicator (ratios are identical to Xs, 11 Pro). Absolute values: /// PortraitU x=0, y=102, w=1125, h=2202 on full extents w=1125, h=2436; /// PortraitD x=0, y=102, w=1125, h=2202 on full extents w=1125, h=2436 (not supported, remains in Portrait Up); /// LandscapeL x=132, y=63, w=2172, h=1062 on full extents w=2436, h=1125; /// LandscapeR x=132, y=63, w=2172, h=1062 on full extents w=2436, h=1125. /// Aspect Ratio: ~19.5:9. /// </summary> Rect[] NSA_iPhoneX = new Rect[] { new Rect(0f, 102f / 2436f, 1f, 2202f / 2436f), // Portrait new Rect(132f / 2436f, 63f / 1125f, 2172f / 2436f, 1062f / 1125f) // Landscape }; /// <summary> /// Normalised safe areas for iPhone Xs Max with Home indicator (ratios are identical to XR, 11, 11 Pro Max). Absolute values: /// PortraitU x=0, y=102, w=1242, h=2454 on full extents w=1242, h=2688; /// PortraitD x=0, y=102, w=1242, h=2454 on full extents w=1242, h=2688 (not supported, remains in Portrait Up); /// LandscapeL x=132, y=63, w=2424, h=1179 on full extents w=2688, h=1242; /// LandscapeR x=132, y=63, w=2424, h=1179 on full extents w=2688, h=1242. /// Aspect Ratio: ~19.5:9. /// </summary> Rect[] NSA_iPhoneXsMax = new Rect[] { new Rect(0f, 102f / 2688f, 1f, 2454f / 2688f), // Portrait new Rect(132f / 2688f, 63f / 1242f, 2424f / 2688f, 1179f / 1242f) // Landscape }; /// <summary> /// Normalised safe areas for Pixel 3 XL using landscape left. Absolute values: /// PortraitU x=0, y=0, w=1440, h=2789 on full extents w=1440, h=2960; /// PortraitD x=0, y=0, w=1440, h=2789 on full extents w=1440, h=2960; /// LandscapeL x=171, y=0, w=2789, h=1440 on full extents w=2960, h=1440; /// LandscapeR x=0, y=0, w=2789, h=1440 on full extents w=2960, h=1440. /// Aspect Ratio: 18.5:9. /// </summary> Rect[] NSA_Pixel3XL_LSL = new Rect[] { new Rect(0f, 0f, 1f, 2789f / 2960f), // Portrait new Rect(0f, 0f, 2789f / 2960f, 1f) // Landscape }; /// <summary> /// Normalised safe areas for Pixel 3 XL using landscape right. Absolute values and aspect ratio same as above. /// </summary> Rect[] NSA_Pixel3XL_LSR = new Rect[] { new Rect(0f, 0f, 1f, 2789f / 2960f), // Portrait new Rect(171f / 2960f, 0f, 2789f / 2960f, 1f) // Landscape }; #endregion RectTransform Panel; Rect LastSafeArea = new Rect(0, 0, 0, 0); Vector2Int LastScreenSize = new Vector2Int(0, 0); ScreenOrientation LastOrientation = ScreenOrientation.AutoRotation; [SerializeField] bool ConformX = true; // Conform to screen safe area on X-axis (default true, disable to ignore) [SerializeField] bool ConformY = true; // Conform to screen safe area on Y-axis (default true, disable to ignore) [SerializeField] bool Logging = false; // Conform to screen safe area on Y-axis (default true, disable to ignore) void Awake() { Panel = GetComponent<RectTransform>(); if (Panel == null) { Debug.LogError("Cannot apply safe area - no RectTransform found on " + name); Destroy(gameObject); } Refresh(); } void Update() { Refresh(); } void Refresh() { Rect safeArea = GetSafeArea(); if (safeArea != LastSafeArea || Screen.width != LastScreenSize.x || Screen.height != LastScreenSize.y || Screen.orientation != LastOrientation) { // Fix for having auto-rotate off and manually forcing a screen orientation. // See https://forum.unity.com/threads/569236/#post-4473253 and https://forum.unity.com/threads/569236/page-2#post-5166467 LastScreenSize.x = Screen.width; LastScreenSize.y = Screen.height; LastOrientation = Screen.orientation; ApplySafeArea(safeArea); } } Rect GetSafeArea() { Rect safeArea = Screen.safeArea; if (Application.isEditor && Sim != SimDevice.None) { Rect nsa = new Rect(0, 0, Screen.width, Screen.height); switch (Sim) { case SimDevice.iPhoneX: if (Screen.height > Screen.width) // Portrait nsa = NSA_iPhoneX[0]; else // Landscape nsa = NSA_iPhoneX[1]; break; case SimDevice.iPhoneXsMax: if (Screen.height > Screen.width) // Portrait nsa = NSA_iPhoneXsMax[0]; else // Landscape nsa = NSA_iPhoneXsMax[1]; break; case SimDevice.Pixel3XL_LSL: if (Screen.height > Screen.width) // Portrait nsa = NSA_Pixel3XL_LSL[0]; else // Landscape nsa = NSA_Pixel3XL_LSL[1]; break; case SimDevice.Pixel3XL_LSR: if (Screen.height > Screen.width) // Portrait nsa = NSA_Pixel3XL_LSR[0]; else // Landscape nsa = NSA_Pixel3XL_LSR[1]; break; default: break; } safeArea = new Rect(Screen.width * nsa.x, Screen.height * nsa.y, Screen.width * nsa.width, Screen.height * nsa.height); } return safeArea; } void ApplySafeArea(Rect r) { LastSafeArea = r; // Ignore x-axis? if (!ConformX) { r.x = 0; r.width = Screen.width; } // Ignore y-axis? if (!ConformY) { r.y = 0; r.height = Screen.height; } // Check for invalid screen startup state on some Samsung devices (see below) if (Screen.width > 0 && Screen.height > 0) { // Convert safe area rectangle from absolute pixels to normalised anchor coordinates Vector2 anchorMin = r.position; Vector2 anchorMax = r.position + r.size; anchorMin.x /= Screen.width; anchorMin.y /= Screen.height; anchorMax.x /= Screen.width; anchorMax.y /= Screen.height; // Fix for some Samsung devices (e.g. Note 10+, A71, S20) where Refresh gets called twice and the first time returns NaN anchor coordinates // See https://forum.unity.com/threads/569236/page-2#post-6199352 if (anchorMin.x >= 0 && anchorMin.y >= 0 && anchorMax.x >= 0 && anchorMax.y >= 0) { Panel.anchorMin = anchorMin; Panel.anchorMax = anchorMax; } } if (Logging) { Debug.LogFormat("New safe area applied to {0}: x={1}, y={2}, w={3}, h={4} on full extents w={5}, h={6}", name, r.x, r.y, r.width, r.height, Screen.width, Screen.height); } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftListPopup.cs.meta
fileFormatVersion: 2 guid: bda8f1b024824e39a4b5ee376ae1b15b timeCreated: 1670795422
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransferNftPopup.cs.meta
fileFormatVersion: 2 guid: 0fbedb869cee0495785cc3816fd97fc5 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftItemView.cs.meta
fileFormatVersion: 2 guid: 4c804afde22164dbf8f244573e9ac776 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/InGameWalletPopupUiData.cs
using SolPlay.Scripts.Services; namespace SolPlay.Scripts.Ui { public class InGameWalletPopupUiData : UiService.UiData { public long RequiredLamports; public InGameWalletPopupUiData(long requiredLamports) { RequiredLamports = requiredLamports; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TextBlimp3D.cs.meta
fileFormatVersion: 2 guid: e445356f58e64a4e9841cfce843260dc timeCreated: 1683543338
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenScreen.cs.meta
fileFormatVersion: 2 guid: b34c4c81199b6495d8fcfac484d4d464 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/LoginScreen.cs
using Frictionless; using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.Serialization; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { /// <summary> /// Screen will enable the connected root as soon as the wallet is logged in /// </summary> public class LoginScreen : MonoBehaviour { [FormerlySerializedAs("PhantomLoginButton")] public Button DevnetLoginButton; public Button DevnetInGameWalletButton; public Button LocalhostInGameWalletButton; public Button MainNetButton; public GameObject ConnectedRoot; public GameObject NotConnectedRoot; public GameObject TabBarRoot; public GameObject LoadingRoot; private void Awake() { if (DevnetLoginButton) { DevnetLoginButton.onClick.AddListener(OnPhantomButtonClicked); } if (DevnetInGameWalletButton) { DevnetInGameWalletButton.onClick.AddListener(OnDevnetInGameWalletButtonClicked); } if (LocalhostInGameWalletButton) { LocalhostInGameWalletButton.onClick.AddListener(OnLocalhostInGameWalletButtonClicked); } if (MainNetButton) { MainNetButton.onClick.AddListener(OnMainnetButtonClicked); } SetLoadingRoot(false); } private void Start() { UpdateContent(); } private async void OnDevnetInGameWalletButtonClicked() { SetLoadingRoot(true); await ServiceFactory.Resolve<WalletHolderService>().Login(WalletHolderService.Network.Devnet, true); UpdateContent(); } private async void OnLocalhostInGameWalletButtonClicked() { SetLoadingRoot(true); await ServiceFactory.Resolve<WalletHolderService>().Login(WalletHolderService.Network.LocalNet, true); UpdateContent(); } private async void OnPhantomButtonClicked() { SetLoadingRoot(true); await ServiceFactory.Resolve<WalletHolderService>().Login(WalletHolderService.Network.Devnet, false); UpdateContent(); } private async void OnMainnetButtonClicked() { SetLoadingRoot(true); await ServiceFactory.Resolve<WalletHolderService>().Login(WalletHolderService.Network.Mainnet, false); UpdateContent(); } private void UpdateContent() { SetLoadingRoot(false); bool isLoggedIn = ServiceFactory.Resolve<WalletHolderService>().IsLoggedIn; ConnectedRoot.gameObject.SetActive(isLoggedIn); NotConnectedRoot.gameObject.SetActive(!isLoggedIn); if (TabBarRoot != null) { TabBarRoot.gameObject.SetActive(isLoggedIn); } } private void SetLoadingRoot(bool active) { if (LoadingRoot != null) { LoadingRoot.SetActive(active); } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TabBarComponent.cs
using Frictionless; using UnityEngine; using UnityEngine.UI; using UnityEngine.UI.Extensions; namespace SolPlay.Scripts.Ui { public class TabBarComponent : MonoBehaviour { public HorizontalScrollSnap HorizontalScrollSnap; private void Awake() { ServiceFactory.RegisterSingleton(this); int counter = 0; foreach (var toggle in GetComponentsInChildren<Button>()) { var counter1 = counter; toggle.onClick.AddListener(delegate { HorizontalScrollSnap.ChangePage(counter1); }); counter++; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftListPopupUiData.cs.meta
fileFormatVersion: 2 guid: 73f7cfe92c3e4891a7c7009b03f84c06 timeCreated: 1670851110
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/LinkButton.cs.meta
fileFormatVersion: 2 guid: 350b9575120a432ea1f88ad3f077fd88 timeCreated: 1669842129
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TextBlimp3D.cs
using TMPro; using UnityEngine; namespace SolPlay.Scripts.Ui { /// <summary> /// A little animated text on the screen, that disappears after some time. /// </summary> public class TextBlimp3D : MonoBehaviour { public TextMeshPro Text; public void SetData(string text) { Text.text = text; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/NftContextMenu.cs
using System; using Frictionless; using Solana.Unity.Programs; using Solana.Unity.SDK.Nft; using Solana.Unity.Wallet; using SolPlay.Orca; using SolPlay.Scripts.Services; using TMPro; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { /// <summary> /// When clicking a Nft this context menu opens and shows some information about the Nft /// </summary> public class NftContextMenu : MonoBehaviour { public GameObject Root; public Button CloseButton; public TextMeshProUGUI NftNameText; public TextMeshProUGUI PowerLevelText; public Button SelectButton; public Button TransferButton; public Nft currentNft; private Action<Nft> onNftSelected; private void Awake() { ServiceFactory.RegisterSingleton(this); Root.gameObject.SetActive(false); CloseButton.onClick.AddListener(OnCloseButtonClicked); SelectButton.onClick.AddListener(OnSelectClicked); TransferButton.onClick.AddListener(OnTransferClicked); } private void OnTransferClicked() { ServiceFactory.Resolve<UiService>().OpenPopup(UiService.ScreenType.TransferNftPopup, new TransferNftPopupUiData(currentNft)); Close(); } private async void OnSelectClicked() { ServiceFactory.Resolve<NftService>().SelectNft(currentNft); MessageRouter.RaiseMessage( new BlimpSystem.ShowLogMessage($"{currentNft.metaplexData.data.offchainData.name} selected")); Close(); var tabBarComponent = ServiceFactory.Resolve<TabBarComponent>(); if (tabBarComponent != null) { tabBarComponent.HorizontalScrollSnap.ChangePage(1); } else { // In case you want to load another scene please use the SolPlay instance // SolPlay.Instance.LoadScene("FlappyGameExample"); onNftSelected?.Invoke(currentNft); } } private void OnCloseButtonClicked() { Close(); } private void Close() { Root.gameObject.SetActive(false); } public void Open(NftItemView nftItemView, Action<Nft> onNftSelected) { this.onNftSelected = onNftSelected; currentNft = nftItemView.CurrentSolPlayNft; Root.gameObject.SetActive(true); NftNameText.text = nftItemView.CurrentSolPlayNft.metaplexData.data.offchainData.name; transform.position = nftItemView.transform.position; var powerLevelService = ServiceFactory.Resolve<HighscoreService>(); if (powerLevelService.TryGetHighscoreForSeed(nftItemView.CurrentSolPlayNft.metaplexData.data.mint, out HighscoreEntry highscoreEntry)) { PowerLevelText.text = $"High score: {highscoreEntry.Highscore}"; } } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TransferNftPopupUiData.cs
using Solana.Unity.SDK.Nft; using SolPlay.Orca; using SolPlay.Scripts.Services; namespace SolPlay.Scripts.Ui { public class TransferNftPopupUiData : UiService.UiData { public Nft NftToTransfer; public TransferNftPopupUiData(Nft solPlayNft) { NftToTransfer = solPlayNft; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/TokenPanel.cs
using Frictionless; using Solana.Unity.Programs; using Solana.Unity.Rpc.Types; using Solana.Unity.Wallet; using SolPlay.Scripts.Services; using TMPro; using UnityEngine; namespace SolPlay.Scripts.Ui { /// <summary> /// Shows the amount of the token "TokenMintAddress" from the connected Wallet. /// TODO: Add socket connection for constant updates /// </summary> public class TokenPanel : MonoBehaviour { public TextMeshProUGUI TokenAmount; public string TokenMintAdress = "PLAyKbtrwQWgWkpsEaMHPMeDLDourWEWVrx824kQN8P"; // Solplay Token, replace with whatever token you like. private PublicKey _associatedTokenAddress; void Start() { MessageRouter.AddHandler<WalletLoggedInMessage>(OnWalletLoggedInMessage); MessageRouter.AddHandler<SocketServerConnectedMessage>(OnSocketConnectedMessage); MessageRouter.AddHandler<TokenValueChangedMessage>(OnTokenValueChangedMessage); if (ServiceFactory.Resolve<WalletHolderService>().IsLoggedIn) { UpdateTokenAmount(); } } private void OnSocketConnectedMessage(SocketServerConnectedMessage obj) { // TODO: instead of only updating the token on the Token value updated message it would be better to subscribe to the // associated token account for live updates. /* ServiceFactory.Resolve<SolPlayWebSocketService>().SubscribeToPubKeyData(new PublicKey("CsEhX6bJDwaPZ9on7fFw6rdK44mRpeiVwe2oZ3uBfk8j"), result => { Debug.Log(result); });*/ } private void OnTokenValueChangedMessage(TokenValueChangedMessage message) { UpdateTokenAmount(); } private void OnWalletLoggedInMessage(WalletLoggedInMessage message) { UpdateTokenAmount(); } private async void UpdateTokenAmount() { var walletHolderService = ServiceFactory.Resolve<WalletHolderService>(); if (!walletHolderService.IsLoggedIn) { return; } var wallet = walletHolderService.BaseWallet; if (wallet != null && wallet.Account.PublicKey != null) { _associatedTokenAddress = AssociatedTokenAccountProgram.DeriveAssociatedTokenAccount(wallet.Account.PublicKey, new PublicKey(TokenMintAdress)); } if (_associatedTokenAddress == null) { return; } var tokenBalance = await wallet.ActiveRpcClient.GetTokenAccountBalanceAsync(_associatedTokenAddress, Commitment.Confirmed); if (tokenBalance.Result == null || tokenBalance.Result.Value == null) { TokenAmount.text = "0"; return; } TokenAmount.text = tokenBalance.Result.Value.UiAmountString; } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/BasePopup.cs
using SolPlay.Scripts.Services; using UnityEngine; using UnityEngine.UI; namespace SolPlay.Scripts.Ui { public class BasePopup : MonoBehaviour { public GameObject Root; public Button CloseButton; protected void Awake() { Root.gameObject.SetActive(false); } public virtual void Open(UiService.UiData uiData) { if (CloseButton != null) { CloseButton.onClick.RemoveAllListeners(); CloseButton.onClick.AddListener(OnCloseButtonClicked); } Root.gameObject.SetActive(true); } public virtual void Close() { Root.gameObject.SetActive(false); } private void OnCloseButtonClicked() { Close(); } } }
0
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts
solana_public_repos/solana-game-examples/seven-seas/unity/Assets/SolPlay/Scripts/Ui/BlimpSystem.cs.meta
fileFormatVersion: 2 guid: 492d4f12d474f4ad88eea097480e2c65 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
0