diff --git a/Runtime/Algorand.Unity.Net.meta b/Runtime/Algorand.Unity.Net.meta deleted file mode 100644 index 12fea23b7..000000000 --- a/Runtime/Algorand.Unity.Net.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 379f2d50831484256a27ef729ee2957e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef b/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef deleted file mode 100644 index b7337cc37..000000000 --- a/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "Algorand.Unity.Net", - "rootNamespace": "Algorand.Unity.Net", - "references": [ - "GUID:45ab5c0c2cb4a0e4ba897b731349c490", - "GUID:f51ebe6a0ceec4240a699833d6309b23", - "GUID:9f8c967ec86c9324c9b2928ff73b4cf1", - "GUID:e0cd26848372d4e5c891c569017e11f1", - "GUID:f8b80ea32105bf74aa022a9a7e066bc1" - ], - "includePlatforms": [], - "excludePlatforms": [ - "WebGL" - ], - "allowUnsafeCode": true, - "overrideReferences": true, - "precompiledReferences": [ - "Algorand.dll" - ], - "autoReferenced": false, - "defineConstraints": [], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef.meta b/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef.meta deleted file mode 100644 index 3e7b6eece..000000000 --- a/Runtime/Algorand.Unity.Net/Algorand.Unity.Net.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: fcad2fa76b6fb4da6ae66b0f5e8f959f -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions.meta b/Runtime/Algorand.Unity.Net/Extensions.meta deleted file mode 100644 index cecd28eac..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0b79cd637fb6647b7ac35f41c62d0d3e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs deleted file mode 100644 index 16042b78c..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Algorand.Unity.Net -{ - public static class AddressExtensions - { - public static Algorand.Address ToDotnet(this Address from) - { - return new Algorand.Address(from); - } - - public static Address ToUnity(this Algorand.Address from) - { - return from.EncodeAsString(); - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs.meta deleted file mode 100644 index a3a1a57be..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/AddressExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 228f731b6cf854b04944013850b0031d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients.meta b/Runtime/Algorand.Unity.Net/Extensions/Clients.meta deleted file mode 100644 index c449818b2..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b86b87741188d465d86a9d63603bc74e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs deleted file mode 100644 index 23a66cda8..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; - -namespace Algorand.Unity.Net -{ - public static class AlgoApiClientExtensions - { - public static UnityHttpClient ToHttpClient(this T client) - where T : IAlgoApiClient - { - var timeout = System.Threading.Timeout.InfiniteTimeSpan; - return client.ToHttpClient(timeout); - } - - public static UnityHttpClient ToHttpClient(this T client, TimeSpan timeout) - where T : IAlgoApiClient - { - var address = client.Address; - (string headers, string value)[] headers; - if (client.Headers == null) - { - if (string.IsNullOrEmpty(client.Token)) - { - return new UnityHttpClient(address, timeout); - } - - headers = new (string headers, string value)[1]; - headers[0] = (client.TokenHeader, client.Token); - return new UnityHttpClient(address, timeout, headers); - } - - if (string.IsNullOrEmpty(client.Token)) - { - headers = new (string headers, string value)[client.Headers.Length]; - for (var i = 0; i < headers.Length; i++) - headers[i] = client.Headers[i]; - return new UnityHttpClient(address, timeout, headers); - } - - headers = new (string headers, string value)[client.Headers.Length + 1]; - for (var i = 0; i < client.Headers.Length; i++) - headers[i] = client.Headers[i]; - headers[client.Headers.Length] = (client.TokenHeader, client.Token); - return new UnityHttpClient(address, timeout, headers); - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs.meta deleted file mode 100644 index 2f9f35979..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgoApiClientExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ac0ba64d30b0c46d082d7fd92b528014 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs deleted file mode 100644 index 4118af263..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Algorand.Algod; - -namespace Algorand.Unity.Net -{ - public static class AlgodClientExtensions - { - /// - /// Convert to the Algorand2 . - /// - /// The Unity Serializable . - /// An Algorand2 - public static DefaultApi ToDefaultApi(this AlgodClient algod) - { - return new DefaultApi(algod.ToHttpClient()); - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs.meta deleted file mode 100644 index 9843c8d75..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/AlgodClientExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b83a17180ff174e6e8fd5a2febf739fc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs deleted file mode 100644 index fd9354c75..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Algorand.Indexer; - -namespace Algorand.Unity.Net -{ - public static class IndexerClientExtensions - { - public static CommonApi ToCommonApi(this IndexerClient indexer) - { - return new CommonApi(indexer.ToHttpClient()); - } - - public static SearchApi ToSearchApi(this IndexerClient indexer) - { - return new SearchApi(indexer.ToHttpClient()); - } - - public static LookupApi ToLookupApi(this IndexerClient indexer) - { - return new LookupApi(indexer.ToHttpClient()); - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs.meta deleted file mode 100644 index 008747b37..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Clients/IndexerClientExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2a195664eec124372954262de921e7fb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs deleted file mode 100644 index dda11858f..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Algorand.Unity.Net -{ - public static class CompiledTealExtensions - { - public static TEALProgram ToDotnet(this CompiledTeal from) - { - return new TEALProgram(from.Bytes); - } - - public static CompiledTeal ToUnity(this TEALProgram from) - { - return from.Bytes; - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs.meta deleted file mode 100644 index 043e1a1fd..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/CompiledTealExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0eae4a8147fd948b985b2425a37ae7d5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Models.meta b/Runtime/Algorand.Unity.Net/Extensions/Models.meta deleted file mode 100644 index c496be0f7..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Models.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7b12b696076684480bcafa3675687230 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs b/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs deleted file mode 100644 index bf010ad19..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs +++ /dev/null @@ -1,684 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using Algorand.Unity.Algod; -using Algorand.Unity.LowLevel; -using Unity.Collections; -using UnityEngine; -using Algorand.Unity.Net; - -using Dotnet = Algorand.Algod.Model; - -namespace Algorand.Unity.Algod.Net -{ - public static class StateProofMessageExtensions - { - public static Dotnet.StateProofMessage ToDotnet(this StateProofMessage from) - { - return from.Convert().ToDotnet(); - } - - public static StateProofMessage ToUnity(this Dotnet.StateProofMessage from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationParamsExtensions - { - public static Dotnet.ApplicationParams ToDotnet(this ApplicationParams from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationParams ToUnity(this Dotnet.ApplicationParams from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountDeltasExtensions - { - public static Dotnet.AccountDeltas ToDotnet(this AccountDeltas from) - { - return from.Convert().ToDotnet(); - } - - public static AccountDeltas ToUnity(this Dotnet.AccountDeltas from) - { - return from.Convert().ToUnity(); - } - } - - public static class TealValueExtensions - { - public static Dotnet.TealValue ToDotnet(this TealValue from) - { - return from.Convert().ToDotnet(); - } - - public static TealValue ToUnity(this Dotnet.TealValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class ParticipationKeyExtensions - { - public static Dotnet.ParticipationKey ToDotnet(this ParticipationKey from) - { - return from.Convert().ToDotnet(); - } - - public static ParticipationKey ToUnity(this Dotnet.ParticipationKey from) - { - return from.Convert().ToUnity(); - } - } - - public static class EvalDeltaExtensions - { - public static Dotnet.EvalDelta ToDotnet(this EvalDelta from) - { - return from.Convert().ToDotnet(); - } - - public static EvalDelta ToUnity(this Dotnet.EvalDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class KvDeltaExtensions - { - public static Dotnet.KvDelta ToDotnet(this KvDelta from) - { - return from.Convert().ToDotnet(); - } - - public static KvDelta ToUnity(this Dotnet.KvDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationStateSchemaExtensions - { - public static Dotnet.ApplicationStateSchema ToDotnet(this ApplicationStateSchema from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationStateSchema ToUnity(this Dotnet.ApplicationStateSchema from) - { - return from.Convert().ToUnity(); - } - } - - public static class ModifiedAppExtensions - { - public static Dotnet.ModifiedApp ToDotnet(this ModifiedApp from) - { - return from.Convert().ToDotnet(); - } - - public static ModifiedApp ToUnity(this Dotnet.ModifiedApp from) - { - return from.Convert().ToUnity(); - } - } - - public static class DryrunStateExtensions - { - public static Dotnet.DryrunState ToDotnet(this DryrunState from) - { - return from.Convert().ToDotnet(); - } - - public static DryrunState ToUnity(this Dotnet.DryrunState from) - { - return from.Convert().ToUnity(); - } - } - - public static class BoxExtensions - { - public static Dotnet.Box ToDotnet(this Box from) - { - return from.Convert().ToDotnet(); - } - - public static Box ToUnity(this Dotnet.Box from) - { - return from.Convert().ToUnity(); - } - } - - public static class AppResourceRecordExtensions - { - public static Dotnet.AppResourceRecord ToDotnet(this AppResourceRecord from) - { - return from.Convert().ToDotnet(); - } - - public static AppResourceRecord ToUnity(this Dotnet.AppResourceRecord from) - { - return from.Convert().ToUnity(); - } - } - - public static class BuildVersionExtensions - { - public static Dotnet.BuildVersion ToDotnet(this BuildVersion from) - { - return from.Convert().ToDotnet(); - } - - public static BuildVersion ToUnity(this Dotnet.BuildVersion from) - { - return from.Convert().ToUnity(); - } - } - - public static class DryrunRequestExtensions - { - public static Dotnet.DryrunRequest ToDotnet(this DryrunRequest from) - { - return from.Convert().ToDotnet(); - } - - public static DryrunRequest ToUnity(this Dotnet.DryrunRequest from) - { - return from.Convert().ToUnity(); - } - } - - public static class StateProofExtensions - { - public static Dotnet.StateProof ToDotnet(this StateProof from) - { - return from.Convert().ToDotnet(); - } - - public static StateProof ToUnity(this Dotnet.StateProof from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetExtensions - { - public static Dotnet.Asset ToDotnet(this Asset from) - { - return from.Convert().ToDotnet(); - } - - public static Asset ToUnity(this Dotnet.Asset from) - { - return from.Convert().ToUnity(); - } - } - - public static class TealKeyValueExtensions - { - public static Dotnet.TealKeyValue ToDotnet(this TealKeyValue from) - { - return from.Convert().ToDotnet(); - } - - public static TealKeyValue ToUnity(this Dotnet.TealKeyValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class TxLeaseExtensions - { - public static Dotnet.TxLease ToDotnet(this TxLease from) - { - return from.Convert().ToDotnet(); - } - - public static TxLease ToUnity(this Dotnet.TxLease from) - { - return from.Convert().ToUnity(); - } - } - - public static class PendingTransactionResponseExtensions - { - public static Dotnet.Transactions.IReturnableTransaction ToDotnet(this PendingTransactionResponse from) - { - return from.Convert().ToDotnet(); - } - - public static PendingTransactionResponse ToUnity(this Dotnet.Transactions.IReturnableTransaction from) - { - return from.Convert().ToUnity(); - } - } - - public static class DryrunSourceExtensions - { - public static Dotnet.DryrunSource ToDotnet(this DryrunSource from) - { - return from.Convert().ToDotnet(); - } - - public static DryrunSource ToUnity(this Dotnet.DryrunSource from) - { - return from.Convert().ToUnity(); - } - } - - public static class ModifiedAssetExtensions - { - public static Dotnet.ModifiedAsset ToDotnet(this ModifiedAsset from) - { - return from.Convert().ToDotnet(); - } - - public static ModifiedAsset ToUnity(this Dotnet.ModifiedAsset from) - { - return from.Convert().ToUnity(); - } - } - - public static class EvalDeltaKeyValueExtensions - { - public static Dotnet.EvalDeltaKeyValue ToDotnet(this EvalDeltaKeyValue from) - { - return from.Convert().ToDotnet(); - } - - public static EvalDeltaKeyValue ToUnity(this Dotnet.EvalDeltaKeyValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetHoldingExtensions - { - public static Dotnet.AssetHolding ToDotnet(this AssetHolding from) - { - return from.Convert().ToDotnet(); - } - - public static AssetHolding ToUnity(this Dotnet.AssetHolding from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountExtensions - { - public static Dotnet.Account ToDotnet(this Account from) - { - return from.Convert().ToDotnet(); - } - - public static Account ToUnity(this Dotnet.Account from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountTotalsExtensions - { - public static Dotnet.AccountTotals ToDotnet(this AccountTotals from) - { - return from.Convert().ToDotnet(); - } - - public static AccountTotals ToUnity(this Dotnet.AccountTotals from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountStateDeltaExtensions - { - public static Dotnet.AccountStateDelta ToDotnet(this AccountStateDelta from) - { - return from.Convert().ToDotnet(); - } - - public static AccountStateDelta ToUnity(this Dotnet.AccountStateDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountBalanceRecordExtensions - { - public static Dotnet.AccountBalanceRecord ToDotnet(this AccountBalanceRecord from) - { - return from.Convert().ToDotnet(); - } - - public static AccountBalanceRecord ToUnity(this Dotnet.AccountBalanceRecord from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetResourceRecordExtensions - { - public static Dotnet.AssetResourceRecord ToDotnet(this AssetResourceRecord from) - { - return from.Convert().ToDotnet(); - } - - public static AssetResourceRecord ToUnity(this Dotnet.AssetResourceRecord from) - { - return from.Convert().ToUnity(); - } - } - - public static class LightBlockHeaderProofExtensions - { - public static Dotnet.LightBlockHeaderProof ToDotnet(this LightBlockHeaderProof from) - { - return from.Convert().ToDotnet(); - } - - public static LightBlockHeaderProof ToUnity(this Dotnet.LightBlockHeaderProof from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationExtensions - { - public static Dotnet.Application ToDotnet(this Application from) - { - return from.Convert().ToDotnet(); - } - - public static Application ToUnity(this Dotnet.Application from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationLocalStateExtensions - { - public static Dotnet.ApplicationLocalState ToDotnet(this ApplicationLocalState from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationLocalState ToUnity(this Dotnet.ApplicationLocalState from) - { - return from.Convert().ToUnity(); - } - } - - public static class BoxDescriptorExtensions - { - public static Dotnet.BoxDescriptor ToDotnet(this BoxDescriptor from) - { - return from.Convert().ToDotnet(); - } - - public static BoxDescriptor ToUnity(this Dotnet.BoxDescriptor from) - { - return from.Convert().ToUnity(); - } - } - - public static class LedgerStateDeltaExtensions - { - public static Dotnet.LedgerStateDelta ToDotnet(this LedgerStateDelta from) - { - return from.Convert().ToDotnet(); - } - - public static LedgerStateDelta ToUnity(this Dotnet.LedgerStateDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountParticipationExtensions - { - public static Dotnet.AccountParticipation ToDotnet(this AccountParticipation from) - { - return from.Convert().ToDotnet(); - } - - public static AccountParticipation ToUnity(this Dotnet.AccountParticipation from) - { - return from.Convert().ToUnity(); - } - } - - public static class VersionExtensions - { - public static Dotnet.Version ToDotnet(this Version from) - { - return from.Convert().ToDotnet(); - } - - public static Version ToUnity(this Dotnet.Version from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetParamsExtensions - { - public static Dotnet.AssetParams ToDotnet(this AssetParams from) - { - return from.Convert().ToDotnet(); - } - - public static AssetParams ToUnity(this Dotnet.AssetParams from) - { - return from.Convert().ToUnity(); - } - } - - public static class DryrunTxnResultExtensions - { - public static Dotnet.DryrunTxnResult ToDotnet(this DryrunTxnResult from) - { - return from.Convert().ToDotnet(); - } - - public static DryrunTxnResult ToUnity(this Dotnet.DryrunTxnResult from) - { - return from.Convert().ToUnity(); - } - } - - public static class GetSyncRoundResponseExtensions - { - public static Dotnet.GetSyncRoundResponse ToDotnet(this GetSyncRoundResponse from) - { - return from.Convert().ToDotnet(); - } - - public static GetSyncRoundResponse ToUnity(this Dotnet.GetSyncRoundResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountAssetResponseExtensions - { - public static Dotnet.AccountAssetResponse ToDotnet(this AccountAssetResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AccountAssetResponse ToUnity(this Dotnet.AccountAssetResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class BoxesResponseExtensions - { - public static Dotnet.BoxesResponse ToDotnet(this BoxesResponse from) - { - return from.Convert().ToDotnet(); - } - - public static BoxesResponse ToUnity(this Dotnet.BoxesResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionProofResponseExtensions - { - public static Dotnet.TransactionProofResponse ToDotnet(this TransactionProofResponse from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionProofResponse ToUnity(this Dotnet.TransactionProofResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class BlockHashResponseExtensions - { - public static Dotnet.BlockHashResponse ToDotnet(this BlockHashResponse from) - { - return from.Convert().ToDotnet(); - } - - public static BlockHashResponse ToUnity(this Dotnet.BlockHashResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class CompileResponseExtensions - { - public static Dotnet.CompileResponse ToDotnet(this CompileResponse from) - { - return from.Convert().ToDotnet(); - } - - public static CompileResponse ToUnity(this Dotnet.CompileResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class DisassembleResponseExtensions - { - public static Dotnet.DisassembleResponse ToDotnet(this DisassembleResponse from) - { - return from.Convert().ToDotnet(); - } - - public static DisassembleResponse ToUnity(this Dotnet.DisassembleResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class NodeStatusResponseExtensions - { - public static Dotnet.NodeStatusResponse ToDotnet(this NodeStatusResponse from) - { - return from.Convert().ToDotnet(); - } - - public static NodeStatusResponse ToUnity(this Dotnet.NodeStatusResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionParametersResponseExtensions - { - public static Dotnet.TransactionParametersResponse ToDotnet(this TransactionParametersResponse from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionParametersResponse ToUnity(this Dotnet.TransactionParametersResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class SupplyResponseExtensions - { - public static Dotnet.SupplyResponse ToDotnet(this SupplyResponse from) - { - return from.Convert().ToDotnet(); - } - - public static SupplyResponse ToUnity(this Dotnet.SupplyResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class PendingTransactionsResponseExtensions - { - public static Dotnet.PendingTransactions ToDotnet(this PendingTransactionsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static PendingTransactionsResponse ToUnity(this Dotnet.PendingTransactions from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountApplicationResponseExtensions - { - public static Dotnet.AccountApplicationResponse ToDotnet(this AccountApplicationResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AccountApplicationResponse ToUnity(this Dotnet.AccountApplicationResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class PostTransactionsResponseExtensions - { - public static Dotnet.PostTransactionsResponse ToDotnet(this PostTransactionsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static PostTransactionsResponse ToUnity(this Dotnet.PostTransactionsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class DryrunResponseExtensions - { - public static Dotnet.DryrunResponse ToDotnet(this DryrunResponse from) - { - return from.Convert().ToDotnet(); - } - - public static DryrunResponse ToUnity(this Dotnet.DryrunResponse from) - { - return from.Convert().ToUnity(); - } - } - -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs.meta deleted file mode 100644 index 2818e7cb7..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Models/AlgodConverters.gen.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 93862cb656cf44dc18c5a20bffd9e0b6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs b/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs deleted file mode 100644 index 22737fb2a..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs +++ /dev/null @@ -1,606 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using Algorand.Unity.Indexer; -using Algorand.Unity.LowLevel; -using Unity.Collections; -using UnityEngine; -using Algorand.Unity.Net; - -using Dotnet = Algorand.Indexer.Model; - -namespace Algorand.Unity.Indexer.Net -{ - public static class BlockExtensions - { - public static Dotnet.Block ToDotnet(this Block from) - { - return from.Convert().ToDotnet(); - } - - public static Block ToUnity(this Dotnet.Block from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionSignatureMultisigExtensions - { - public static Dotnet.TransactionSignatureMultisig ToDotnet(this TransactionSignatureMultisig from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionSignatureMultisig ToUnity(this Dotnet.TransactionSignatureMultisig from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationParamsExtensions - { - public static Dotnet.ApplicationParams ToDotnet(this ApplicationParams from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationParams ToUnity(this Dotnet.ApplicationParams from) - { - return from.Convert().ToUnity(); - } - } - - public static class TealValueExtensions - { - public static Dotnet.TealValue ToDotnet(this TealValue from) - { - return from.Convert().ToDotnet(); - } - - public static TealValue ToUnity(this Dotnet.TealValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionSignatureLogicsigExtensions - { - public static Dotnet.TransactionSignatureLogicsig ToDotnet(this TransactionSignatureLogicsig from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionSignatureLogicsig ToUnity(this Dotnet.TransactionSignatureLogicsig from) - { - return from.Convert().ToUnity(); - } - } - - public static class EvalDeltaExtensions - { - public static Dotnet.EvalDelta ToDotnet(this EvalDelta from) - { - return from.Convert().ToDotnet(); - } - - public static EvalDelta ToUnity(this Dotnet.EvalDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionApplicationExtensions - { - public static Dotnet.TransactionApplication ToDotnet(this TransactionApplication from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionApplication ToUnity(this Dotnet.TransactionApplication from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationStateSchemaExtensions - { - public static Dotnet.ApplicationStateSchema ToDotnet(this ApplicationStateSchema from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationStateSchema ToUnity(this Dotnet.ApplicationStateSchema from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionAssetConfigExtensions - { - public static Dotnet.TransactionAssetConfig ToDotnet(this TransactionAssetConfig from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionAssetConfig ToUnity(this Dotnet.TransactionAssetConfig from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionPaymentExtensions - { - public static Dotnet.TransactionPayment ToDotnet(this TransactionPayment from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionPayment ToUnity(this Dotnet.TransactionPayment from) - { - return from.Convert().ToUnity(); - } - } - - public static class MiniAssetHoldingExtensions - { - public static Dotnet.MiniAssetHolding ToDotnet(this MiniAssetHolding from) - { - return from.Convert().ToDotnet(); - } - - public static MiniAssetHolding ToUnity(this Dotnet.MiniAssetHolding from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationLogDataExtensions - { - public static Dotnet.ApplicationLogData ToDotnet(this ApplicationLogData from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationLogData ToUnity(this Dotnet.ApplicationLogData from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionAssetFreezeExtensions - { - public static Dotnet.TransactionAssetFreeze ToDotnet(this TransactionAssetFreeze from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionAssetFreeze ToUnity(this Dotnet.TransactionAssetFreeze from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionKeyregExtensions - { - public static Dotnet.TransactionKeyreg ToDotnet(this TransactionKeyreg from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionKeyreg ToUnity(this Dotnet.TransactionKeyreg from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionSignatureExtensions - { - public static Dotnet.TransactionSignature ToDotnet(this TransactionSignature from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionSignature ToUnity(this Dotnet.TransactionSignature from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetExtensions - { - public static Dotnet.Asset ToDotnet(this Asset from) - { - return from.Convert().ToDotnet(); - } - - public static Asset ToUnity(this Dotnet.Asset from) - { - return from.Convert().ToUnity(); - } - } - - public static class TealKeyValueExtensions - { - public static Dotnet.TealKeyValue ToDotnet(this TealKeyValue from) - { - return from.Convert().ToDotnet(); - } - - public static TealKeyValue ToUnity(this Dotnet.TealKeyValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class HealthCheckExtensions - { - public static Dotnet.HealthCheck ToDotnet(this HealthCheck from) - { - return from.Convert().ToDotnet(); - } - - public static HealthCheck ToUnity(this Dotnet.HealthCheck from) - { - return from.Convert().ToUnity(); - } - } - - public static class EvalDeltaKeyValueExtensions - { - public static Dotnet.EvalDeltaKeyValue ToDotnet(this EvalDeltaKeyValue from) - { - return from.Convert().ToDotnet(); - } - - public static EvalDeltaKeyValue ToUnity(this Dotnet.EvalDeltaKeyValue from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetHoldingExtensions - { - public static Dotnet.AssetHolding ToDotnet(this AssetHolding from) - { - return from.Convert().ToDotnet(); - } - - public static AssetHolding ToUnity(this Dotnet.AssetHolding from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountExtensions - { - public static Dotnet.Account ToDotnet(this Account from) - { - return from.Convert().ToDotnet(); - } - - public static Account ToUnity(this Dotnet.Account from) - { - return from.Convert().ToUnity(); - } - } - - public static class BlockRewardsExtensions - { - public static Dotnet.BlockRewards ToDotnet(this BlockRewards from) - { - return from.Convert().ToDotnet(); - } - - public static BlockRewards ToUnity(this Dotnet.BlockRewards from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountStateDeltaExtensions - { - public static Dotnet.AccountStateDelta ToDotnet(this AccountStateDelta from) - { - return from.Convert().ToDotnet(); - } - - public static AccountStateDelta ToUnity(this Dotnet.AccountStateDelta from) - { - return from.Convert().ToUnity(); - } - } - - public static class BlockUpgradeVoteExtensions - { - public static Dotnet.BlockUpgradeVote ToDotnet(this BlockUpgradeVote from) - { - return from.Convert().ToDotnet(); - } - - public static BlockUpgradeVote ToUnity(this Dotnet.BlockUpgradeVote from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationExtensions - { - public static Dotnet.Application ToDotnet(this Application from) - { - return from.Convert().ToDotnet(); - } - - public static Application ToUnity(this Dotnet.Application from) - { - return from.Convert().ToUnity(); - } - } - - public static class StateSchemaExtensions - { - public static Dotnet.StateSchema ToDotnet(this StateSchema from) - { - return from.Convert().ToDotnet(); - } - - public static StateSchema ToUnity(this Dotnet.StateSchema from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationLocalStateExtensions - { - public static Dotnet.ApplicationLocalState ToDotnet(this ApplicationLocalState from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationLocalState ToUnity(this Dotnet.ApplicationLocalState from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionSignatureMultisigSubsignatureExtensions - { - public static Dotnet.TransactionSignatureMultisigSubsignature ToDotnet(this TransactionSignatureMultisigSubsignature from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionSignatureMultisigSubsignature ToUnity(this Dotnet.TransactionSignatureMultisigSubsignature from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountParticipationExtensions - { - public static Dotnet.AccountParticipation ToDotnet(this AccountParticipation from) - { - return from.Convert().ToDotnet(); - } - - public static AccountParticipation ToUnity(this Dotnet.AccountParticipation from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionAssetTransferExtensions - { - public static Dotnet.TransactionAssetTransfer ToDotnet(this TransactionAssetTransfer from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionAssetTransfer ToUnity(this Dotnet.TransactionAssetTransfer from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionExtensions - { - public static Dotnet.Transaction ToDotnet(this Transaction from) - { - return from.Convert().ToDotnet(); - } - - public static Transaction ToUnity(this Dotnet.Transaction from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetParamsExtensions - { - public static Dotnet.AssetParams ToDotnet(this AssetParams from) - { - return from.Convert().ToDotnet(); - } - - public static AssetParams ToUnity(this Dotnet.AssetParams from) - { - return from.Convert().ToUnity(); - } - } - - public static class BlockUpgradeStateExtensions - { - public static Dotnet.BlockUpgradeState ToDotnet(this BlockUpgradeState from) - { - return from.Convert().ToDotnet(); - } - - public static BlockUpgradeState ToUnity(this Dotnet.BlockUpgradeState from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetHoldingsResponseExtensions - { - public static Dotnet.AssetHoldingsResponse ToDotnet(this AssetHoldingsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AssetHoldingsResponse ToUnity(this Dotnet.AssetHoldingsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationResponseExtensions - { - public static Dotnet.ApplicationResponse ToDotnet(this ApplicationResponse from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationResponse ToUnity(this Dotnet.ApplicationResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionsResponseExtensions - { - public static Dotnet.TransactionsResponse ToDotnet(this TransactionsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionsResponse ToUnity(this Dotnet.TransactionsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountsResponseExtensions - { - public static Dotnet.AccountsResponse ToDotnet(this AccountsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AccountsResponse ToUnity(this Dotnet.AccountsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetResponseExtensions - { - public static Dotnet.AssetResponse ToDotnet(this AssetResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AssetResponse ToUnity(this Dotnet.AssetResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetBalancesResponseExtensions - { - public static Dotnet.AssetBalancesResponse ToDotnet(this AssetBalancesResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AssetBalancesResponse ToUnity(this Dotnet.AssetBalancesResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AccountResponseExtensions - { - public static Dotnet.AccountResponse ToDotnet(this AccountResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AccountResponse ToUnity(this Dotnet.AccountResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationsResponseExtensions - { - public static Dotnet.ApplicationsResponse ToDotnet(this ApplicationsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationsResponse ToUnity(this Dotnet.ApplicationsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class TransactionResponseExtensions - { - public static Dotnet.TransactionResponse ToDotnet(this TransactionResponse from) - { - return from.Convert().ToDotnet(); - } - - public static TransactionResponse ToUnity(this Dotnet.TransactionResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationLogsResponseExtensions - { - public static Dotnet.ApplicationLogsResponse ToDotnet(this ApplicationLogsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationLogsResponse ToUnity(this Dotnet.ApplicationLogsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class AssetsResponseExtensions - { - public static Dotnet.AssetsResponse ToDotnet(this AssetsResponse from) - { - return from.Convert().ToDotnet(); - } - - public static AssetsResponse ToUnity(this Dotnet.AssetsResponse from) - { - return from.Convert().ToUnity(); - } - } - - public static class ApplicationLocalStatesResponseExtensions - { - public static Dotnet.ApplicationLocalStatesResponse ToDotnet(this ApplicationLocalStatesResponse from) - { - return from.Convert().ToDotnet(); - } - - public static ApplicationLocalStatesResponse ToUnity(this Dotnet.ApplicationLocalStatesResponse from) - { - return from.Convert().ToUnity(); - } - } - -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs.meta deleted file mode 100644 index e5a270327..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/Models/IndexerConverters.gen.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d51a2cdb860014f73befa08ccf77ce3c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs deleted file mode 100644 index b964dbbe6..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Algorand.Unity.LowLevel; -using Algorand.Utils.Crypto; -using Algorand.Crypto; - -namespace Algorand.Unity.Net -{ - public static class PrivateKeyExtensions - { - public static KeyPair ToDotnet(this PrivateKey from) - { - var fsr = new FixedSecureRandom(from.ToArray()); - return new KeyPair(fsr); - } - - public static PrivateKey ToUnity(this KeyPair from) - { - var pkBytes = from.ClearTextPrivateKey; - var result = new PrivateKey(); - result.CopyFrom(pkBytes, 0, 32); - return result; - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs.meta deleted file mode 100644 index 1ba023e13..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/PrivateKeyExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bb3d00052f6e549e4a98eac6ac921f5a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs b/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs deleted file mode 100644 index 26a01bb4b..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System.Linq; -using Algorand.Unity.Crypto; -using Algorand.Unity.LowLevel; -using Unity.Collections; - -namespace Algorand.Unity.Net -{ - public static class SignatureExtensions - { - public static Signature ToDotnet(this Sig from) - { - return from == default ? null : new Signature(from.ToArray()); - } - - public static Sig ToUnity(this Signature from) - { - if (from == null) - { - return default; - } - var bytes = from.Bytes; - var sig = default(Sig); - sig.CopyFrom(bytes, 0); - return sig; - } - - public static MultisigSignature ToDotnet(this MultisigSig from) - { - return new MultisigSignature - { - Version = from.Version, - Threshold = from.Threshold, - Subsigs = from.Subsigs.Select(ToDotnet).ToList() - }; - } - - public static MultisigSig ToUnity(this MultisigSignature from) - { - return new MultisigSig - { - Subsigs = from.Subsigs.Select(ToUnity).ToArray(), - Threshold = (byte)from.Threshold, - Version = (byte)from.Version - }; - } - - public static MultisigSubsig ToDotnet(this MultisigSig.Subsig from) - { - return new MultisigSubsig(from.PublicKey.ToArray(), from.Sig.ToArray()); - } - - public static MultisigSig.Subsig ToUnity(this MultisigSubsig from) - { - var pk = new Ed25519.PublicKey(); - var subsigKeyBytes = from.key.GetEncoded(); - pk.CopyFrom(subsigKeyBytes, 0); - return new MultisigSig.Subsig - { - PublicKey = pk, - Sig = from.sig.ToUnity() - }; - } - - public static LogicsigSignature ToDotnet(this LogicSig from) - { - return new Algorand.LogicsigSignature( - from.Program, - from.Args.Select(a => a.ToArray()).ToList(), - from.Sig == default ? null : from.Sig.ToArray(), - from.Multisig.ToDotnet() - ); - } - - public static LogicSig ToUnity(this LogicsigSignature from) - { - var args = new FixedList128Bytes[from.Args.Count]; - for (var i = 0; i < args.Length; i++) - { - args[i] = new FixedList128Bytes(); - for (var j = 0; j < from.Args[i].Length; j++) - { - args[i][j] = from.Args[i][j]; - } - } - - return new LogicSig - { - Program = from.Logic, - Args = args, - Multisig = from.Msig.ToUnity(), - Sig = from.Sig.ToUnity() - }; - } - } -} diff --git a/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs.meta b/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs.meta deleted file mode 100644 index 9c9041d11..000000000 --- a/Runtime/Algorand.Unity.Net/Extensions/SignatureExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 94e9047c2422c4fe591a2e9611fd9489 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/MsgPackConvert.cs b/Runtime/Algorand.Unity.Net/MsgPackConvert.cs deleted file mode 100644 index ccdeb3ca0..000000000 --- a/Runtime/Algorand.Unity.Net/MsgPackConvert.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Algorand.Utils; - -namespace Algorand.Unity.Net -{ - public static class ConversionExtensions - { - public static MsgPackConvert Convert(this T from) - { - return new MsgPackConvert(from); - } - } - - public readonly struct MsgPackConvert - { - private readonly TIn from; - - public MsgPackConvert(TIn from) - { - this.from = from; - } - - public TOut ToDotnet() - { - var msgPack = AlgoApiSerializer.SerializeMessagePack(from); - return Encoder.DecodeFromMsgPack(msgPack); - } - - public TOut ToUnity() - { - var msgPack = Encoder.EncodeToMsgPackNoOrder(from); - return AlgoApiSerializer.DeserializeMessagePack(msgPack); - } - } -} diff --git a/Runtime/Algorand.Unity.Net/MsgPackConvert.cs.meta b/Runtime/Algorand.Unity.Net/MsgPackConvert.cs.meta deleted file mode 100644 index befebb189..000000000 --- a/Runtime/Algorand.Unity.Net/MsgPackConvert.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1bedf8dc64991437dbbfdc172a7d0642 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/UnityHttpClient.cs b/Runtime/Algorand.Unity.Net/UnityHttpClient.cs deleted file mode 100644 index db6726c8d..000000000 --- a/Runtime/Algorand.Unity.Net/UnityHttpClient.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Net.Http; - -namespace Algorand.Unity.Net -{ - public class UnityHttpClient : HttpClient - { - public readonly UnityHttpMessageHandler MessageHandler; - - protected UnityHttpClient(UnityHttpMessageHandler messageHandler) - : base(messageHandler) - { - MessageHandler = messageHandler; - } - - public UnityHttpClient( - string address - ) - : this(address, System.Threading.Timeout.InfiniteTimeSpan) - { - } - - public UnityHttpClient( - string address, - TimeSpan timeout - ) - : this(new UnityHttpMessageHandler()) - { - BaseAddress = FormatAddress(address); - Timeout = timeout; - } - - public UnityHttpClient( - string address, - params (string header, string value)[] headers - ) - : this(address, System.Threading.Timeout.InfiniteTimeSpan, headers) - { - } - - public UnityHttpClient( - string address, - TimeSpan timeout, - params (string header, string value)[] headers - ) - : this(new UnityHttpMessageHandler()) - { - BaseAddress = FormatAddress(address); - Timeout = timeout; - - if (headers == null) - { - return; - } - - foreach (var (key, value) in headers) - { - DefaultRequestHeaders.Add(key, value); - } - } - - private static Uri FormatAddress(string address) - { - if (!address.EndsWith("/")) - address += "/"; - var addressUri = new Uri(address); - if (!addressUri.IsAbsoluteUri) - throw new ArgumentException("Given host must be an absolute path.", nameof(address)); - return addressUri; - } - } -} \ No newline at end of file diff --git a/Runtime/Algorand.Unity.Net/UnityHttpClient.cs.meta b/Runtime/Algorand.Unity.Net/UnityHttpClient.cs.meta deleted file mode 100644 index bc59ae1c3..000000000 --- a/Runtime/Algorand.Unity.Net/UnityHttpClient.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 71fa6caed6ad743bdaaa653141becfde -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs b/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs deleted file mode 100644 index 6d6aa536e..000000000 --- a/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using UnityEngine; -using UnityEngine.Networking; -using Cysharp.Threading.Tasks; -using System.Collections.Generic; - -namespace Algorand.Unity.Net -{ - public class UnityHttpMessageHandler : HttpMessageHandler - { - public UnityWebRequestAsyncOperation LastSentRequest { get; protected set; } - - protected override async Task SendAsync( - HttpRequestMessage request, - CancellationToken cancellationToken - ) - { - var requestBytes = request.Content?.ReadAsByteArrayAsync().Result; - using var uploadHandler = new UploadHandlerRaw(requestBytes); - using var downloadHandler = new DownloadHandlerBuffer(); - using var unityWebRequest = new UnityWebRequest - { - url = request.RequestUri.ToString(), - method = request.Method.Method.ToUpperInvariant(), - uploadHandler = uploadHandler, - downloadHandler = downloadHandler, - }; - foreach (var header in request.Headers) - { - var key = header.Key; - var value = header.Value.First(); - unityWebRequest.SetRequestHeader(key, value); - } - - var sentRequest = unityWebRequest.SendWebRequest(); - LastSentRequest = sentRequest; - await sentRequest.WithCancellation(cancellationToken); - var responseCode = (HttpStatusCode)unityWebRequest.responseCode; - var responseContent = new ByteArrayContent(unityWebRequest.downloadHandler.data); - var responseMessage = new HttpResponseMessage(responseCode) { Content = responseContent }; - foreach (var header in unityWebRequest.GetResponseHeaders()) - { - try - { - if (IsContentHeader(header)) - responseMessage.Content.Headers.Add(header.Key, header.Value); - else - responseMessage.Headers.Add(header.Key, header.Value); - } - catch (System.Exception ex) - { - var aggregate = new System.Exception($"Issue with header: {header}", ex); - Debug.LogException(aggregate); - throw; - } - } - return responseMessage; - } - - private static bool IsContentHeader(KeyValuePair header) - { - var headerKeyLower = header.Key.ToLower(); - return headerKeyLower == "content-type" || headerKeyLower == "content-length"; - } - } -} diff --git a/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs.meta b/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs.meta deleted file mode 100644 index 41fe4a07c..000000000 --- a/Runtime/Algorand.Unity.Net/UnityHttpMessageHandler.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 658c8d124be2d40a3a842885165549fa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/dotnet-algorand-sdk.meta b/Runtime/dotnet-algorand-sdk.meta deleted file mode 100644 index 2e20b5bd5..000000000 --- a/Runtime/dotnet-algorand-sdk.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2ba284eae63454f0c8bc44c876fa8d21 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/dotnet-algorand-sdk/Plugins.meta b/Runtime/dotnet-algorand-sdk/Plugins.meta deleted file mode 100644 index e7894cc45..000000000 --- a/Runtime/dotnet-algorand-sdk/Plugins.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8f0a15e2a809342f5b46c275aff747c5 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll b/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll deleted file mode 100644 index 57422faa9..000000000 Binary files a/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll and /dev/null differ diff --git a/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll.meta b/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll.meta deleted file mode 100644 index 7aefb4bb3..000000000 --- a/Runtime/dotnet-algorand-sdk/Plugins/Algorand.dll.meta +++ /dev/null @@ -1,87 +0,0 @@ -fileFormatVersion: 2 -guid: b5ccd700318634ebba0343fb820d2c13 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 1 - isExplicitlyReferenced: 1 - validateReferences: 1 - platformData: - - first: - : Any - second: - enabled: 0 - settings: - Exclude Android: 0 - Exclude Editor: 0 - Exclude Linux64: 0 - Exclude OSXUniversal: 0 - Exclude WebGL: 1 - Exclude Win: 0 - Exclude Win64: 0 - Exclude iOS: 0 - - first: - Android: Android - second: - enabled: 1 - settings: - CPU: ARMv7 - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: AnyOS - - first: - Standalone: Linux64 - second: - enabled: 1 - settings: - CPU: AnyCPU - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 1 - settings: - CPU: x86 - - first: - Standalone: Win64 - second: - enabled: 1 - settings: - CPU: x86_64 - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - iPhone: iOS - second: - enabled: 1 - settings: - AddToEmbeddedBinaries: false - CPU: AnyCPU - CompileFlags: - FrameworkDependencies: - userData: - assetBundleName: - assetBundleVariant: