diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiFormatterLookup.gen.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiFormatterLookup.gen.cs index 08c5c5f9c..6286e62ec 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiFormatterLookup.gen.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiFormatterLookup.gen.cs @@ -10,15 +10,15 @@ namespace AlgoSdk { - - + + public sealed partial class AlgoApiFormatterLookup { - + private static void EnsureLookupInitialized() { AlgoSdk.AlgoApiFormatterLookup.InitLookup(); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Account), new AlgoSdk.AlgoApiObjectFormatter().Assign("address", null, (AlgoSdk.Account x) => x.Address, (ref AlgoSdk.Account x, AlgoSdk.Address value) => x.Address = value, false).Assign("amount", null, (AlgoSdk.Account x) => x.Amount, (ref AlgoSdk.Account x, System.UInt64 value) => x.Amount = value, false).Assign("amount-without-pending-rewards", null, (AlgoSdk.Account x) => x.AmountWithoutPendingRewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.AmountWithoutPendingRewards = value, false).Assign("apps-local-state", null, (AlgoSdk.Account x) => x.ApplicationsLocalState, (ref AlgoSdk.Account x, AlgoSdk.ApplicationLocalState[] value) => x.ApplicationsLocalState = value, AlgoSdk.ArrayComparer.Instance, false).Assign("apps-total-extra-pages", null, (AlgoSdk.Account x) => x.ApplicationsTotalExtraPages, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.ApplicationsTotalExtraPages = value, false).Assign("apps-total-schema", null, (AlgoSdk.Account x) => x.ApplicationsTotalSchema, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.ApplicationsTotalSchema = value, false).Assign("assets", null, (AlgoSdk.Account x) => x.Assets, (ref AlgoSdk.Account x, AlgoSdk.AssetHolding[] value) => x.Assets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("auth-addr", null, (AlgoSdk.Account x) => x.AuthAddress, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.AuthAddress = value, false).Assign("created-apps", null, (AlgoSdk.Account x) => x.CreatedApplications, (ref AlgoSdk.Account x, AlgoSdk.Application[] value) => x.CreatedApplications = value, AlgoSdk.ArrayComparer.Instance, false).Assign("created-assets", null, (AlgoSdk.Account x) => x.CreatedAssets, (ref AlgoSdk.Account x, AlgoSdk.Asset[] value) => x.CreatedAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("participation", null, (AlgoSdk.Account x) => x.Participation, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.Participation = value, false).Assign("pending-rewards", null, (AlgoSdk.Account x) => x.PendingRewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.PendingRewards = value, false).Assign("reward-base", null, (AlgoSdk.Account x) => x.RewardBase, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.RewardBase = value, false).Assign("rewards", null, (AlgoSdk.Account x) => x.Rewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.Rewards = value, false).Assign("round", null, (AlgoSdk.Account x) => x.Round, (ref AlgoSdk.Account x, System.UInt64 value) => x.Round = value, false).Assign("sig-type", null, (AlgoSdk.Account x) => x.SignatureType, (ref AlgoSdk.Account x, AlgoSdk.SignatureType value) => x.SignatureType = value, AlgoSdk.SignatureTypeComparer.Instance, false).Assign("status", null, (AlgoSdk.Account x) => x.Status, (ref AlgoSdk.Account x, Unity.Collections.FixedString32Bytes value) => x.Status = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Account), new AlgoSdk.AlgoApiObjectFormatter().Assign("address", null, (AlgoSdk.Account x) => x.Address, (ref AlgoSdk.Account x, AlgoSdk.Address value) => x.Address = value, false).Assign("amount", null, (AlgoSdk.Account x) => x.Amount, (ref AlgoSdk.Account x, System.UInt64 value) => x.Amount = value, false).Assign("amount-without-pending-rewards", null, (AlgoSdk.Account x) => x.AmountWithoutPendingRewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.AmountWithoutPendingRewards = value, false).Assign("apps-local-state", null, (AlgoSdk.Account x) => x.ApplicationsLocalState, (ref AlgoSdk.Account x, AlgoSdk.ApplicationLocalState[] value) => x.ApplicationsLocalState = value, AlgoSdk.ArrayComparer.Instance, false).Assign("apps-total-extra-pages", null, (AlgoSdk.Account x) => x.ApplicationsTotalExtraPages, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.ApplicationsTotalExtraPages = value, false).Assign("apps-total-schema", null, (AlgoSdk.Account x) => x.ApplicationsTotalSchema, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.ApplicationsTotalSchema = value, false).Assign("assets", null, (AlgoSdk.Account x) => x.Assets, (ref AlgoSdk.Account x, AlgoSdk.AssetHolding[] value) => x.Assets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("auth-addr", null, (AlgoSdk.Account x) => x.AuthAddress, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.AuthAddress = value, false).Assign("created-apps", null, (AlgoSdk.Account x) => x.CreatedApplications, (ref AlgoSdk.Account x, AlgoSdk.Application[] value) => x.CreatedApplications = value, AlgoSdk.ArrayComparer.Instance, false).Assign("created-assets", null, (AlgoSdk.Account x) => x.CreatedAssets, (ref AlgoSdk.Account x, AlgoSdk.Asset[] value) => x.CreatedAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("participation", null, (AlgoSdk.Account x) => x.Participation, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.Participation = value, false).Assign("pending-rewards", null, (AlgoSdk.Account x) => x.PendingRewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.PendingRewards = value, false).Assign("reward-base", null, (AlgoSdk.Account x) => x.RewardBase, (ref AlgoSdk.Account x, AlgoSdk.Optional value) => x.RewardBase = value, false).Assign("rewards", null, (AlgoSdk.Account x) => x.Rewards, (ref AlgoSdk.Account x, System.UInt64 value) => x.Rewards = value, false).Assign("round", null, (AlgoSdk.Account x) => x.Round, (ref AlgoSdk.Account x, System.UInt64 value) => x.Round = value, false).Assign("sig-type", null, (AlgoSdk.Account x) => x.SignatureType, (ref AlgoSdk.Account x, AlgoSdk.SignatureType value) => x.SignatureType = value, AlgoSdk.SignatureTypeComparer.Instance, false).Assign("status", null, (AlgoSdk.Account x) => x.Status, (ref AlgoSdk.Account x, Unity.Collections.FixedString32Bytes value) => x.Status = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationLocalState[]), new AlgoSdk.Formatters.ArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.AssetHolding[]), new AlgoSdk.Formatters.ArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Application[]), new AlgoSdk.Formatters.ArrayFormatter()); @@ -27,11 +27,11 @@ private static void EnsureLookupInitialized() AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.AccountStateDelta), new AlgoSdk.AlgoApiObjectFormatter().Assign("address", null, (AlgoSdk.AccountStateDelta x) => x.Address, (ref AlgoSdk.AccountStateDelta x, AlgoSdk.Address value) => x.Address = value, false).Assign("delta", null, (AlgoSdk.AccountStateDelta x) => x.Delta, (ref AlgoSdk.AccountStateDelta x, AlgoSdk.EvalDeltaKeyValue[] value) => x.Delta = value, AlgoSdk.ArrayComparer.Instance, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.EvalDeltaKeyValue[]), new AlgoSdk.Formatters.ArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Application), new AlgoSdk.AlgoApiObjectFormatter().Assign("created-at-round", null, (AlgoSdk.Application x) => x.CreatedAtRound, (ref AlgoSdk.Application x, AlgoSdk.Optional value) => x.CreatedAtRound = value, false).Assign("deleted", null, (AlgoSdk.Application x) => x.Deleted, (ref AlgoSdk.Application x, AlgoSdk.Optional value) => x.Deleted = value, false).Assign("deleted-at-round", null, (AlgoSdk.Application x) => x.DeletedAtRound, (ref AlgoSdk.Application x, AlgoSdk.Optional value) => x.DeletedAtRound = value, false).Assign("id", null, (AlgoSdk.Application x) => x.Id, (ref AlgoSdk.Application x, System.UInt64 value) => x.Id = value, false).Assign("params", null, (AlgoSdk.Application x) => x.Params, (ref AlgoSdk.Application x, AlgoSdk.ApplicationParams value) => x.Params = value, false)); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationLocalState), new AlgoSdk.AlgoApiObjectFormatter().Assign("closed-out-at-round", null, (AlgoSdk.ApplicationLocalState x) => x.ClosedOutAtRound, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.ClosedOutAtRound = value, false).Assign("deleted", null, (AlgoSdk.ApplicationLocalState x) => x.Deleted, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.Deleted = value, false).Assign("id", null, (AlgoSdk.ApplicationLocalState x) => x.Id, (ref AlgoSdk.ApplicationLocalState x, System.UInt64 value) => x.Id = value, false).Assign("key-value", null, (AlgoSdk.ApplicationLocalState x) => x.KeyValues, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.TealKeyValue[] value) => x.KeyValues = value, AlgoSdk.ArrayComparer.Instance, false).Assign("opted-in-at-round", null, (AlgoSdk.ApplicationLocalState x) => x.OptedInAtRound, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.OptedInAtRound = value, false).Assign("schema", null, (AlgoSdk.ApplicationLocalState x) => x.Schema, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.ApplicationStateSchema value) => x.Schema = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationLocalState), new AlgoSdk.AlgoApiObjectFormatter().Assign("closed-out-at-round", null, (AlgoSdk.ApplicationLocalState x) => x.ClosedOutAtRound, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.ClosedOutAtRound = value, false).Assign("deleted", null, (AlgoSdk.ApplicationLocalState x) => x.Deleted, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.Deleted = value, false).Assign("id", null, (AlgoSdk.ApplicationLocalState x) => x.Id, (ref AlgoSdk.ApplicationLocalState x, System.UInt64 value) => x.Id = value, false).Assign("key-value", null, (AlgoSdk.ApplicationLocalState x) => x.KeyValues, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.TealKeyValue[] value) => x.KeyValues = value, AlgoSdk.ArrayComparer.Instance, false).Assign("opted-in-at-round", null, (AlgoSdk.ApplicationLocalState x) => x.OptedInAtRound, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.Optional value) => x.OptedInAtRound = value, false).Assign("schema", null, (AlgoSdk.ApplicationLocalState x) => x.Schema, (ref AlgoSdk.ApplicationLocalState x, AlgoSdk.StateSchema value) => x.Schema = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.TealKeyValue[]), new AlgoSdk.Formatters.ArrayFormatter()); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationParams), new AlgoSdk.AlgoApiObjectFormatter().Assign("approval-program", null, (AlgoSdk.ApplicationParams x) => x.ApprovalProgram, (ref AlgoSdk.ApplicationParams x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("clear-state-program", null, (AlgoSdk.ApplicationParams x) => x.ClearStateProgram, (ref AlgoSdk.ApplicationParams x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("creator", null, (AlgoSdk.ApplicationParams x) => x.Creator, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Address value) => x.Creator = value, false).Assign("extra-program-pages", null, (AlgoSdk.ApplicationParams x) => x.ExtraProgramPages, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false).Assign("global-state", null, (AlgoSdk.ApplicationParams x) => x.GlobalState, (ref AlgoSdk.ApplicationParams x, AlgoSdk.TealKeyValue[] value) => x.GlobalState = value, AlgoSdk.ArrayComparer.Instance, false).Assign("global-state-schema", null, (AlgoSdk.ApplicationParams x) => x.GlobalStateSchema, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign("local-state-schema", null, (AlgoSdk.ApplicationParams x) => x.LocalStateSchema, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationParams), new AlgoSdk.AlgoApiObjectFormatter().Assign("approval-program", null, (AlgoSdk.ApplicationParams x) => x.ApprovalProgram, (ref AlgoSdk.ApplicationParams x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("clear-state-program", null, (AlgoSdk.ApplicationParams x) => x.ClearStateProgram, (ref AlgoSdk.ApplicationParams x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("creator", null, (AlgoSdk.ApplicationParams x) => x.Creator, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Address value) => x.Creator = value, false).Assign("extra-program-pages", null, (AlgoSdk.ApplicationParams x) => x.ExtraProgramPages, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false).Assign("global-state", null, (AlgoSdk.ApplicationParams x) => x.GlobalState, (ref AlgoSdk.ApplicationParams x, AlgoSdk.TealKeyValue[] value) => x.GlobalState = value, AlgoSdk.ArrayComparer.Instance, false).Assign("global-state-schema", null, (AlgoSdk.ApplicationParams x) => x.GlobalStateSchema, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign("local-state-schema", null, (AlgoSdk.ApplicationParams x) => x.LocalStateSchema, (ref AlgoSdk.ApplicationParams x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(byte[]), new AlgoSdk.Formatters.ArrayFormatter()); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.ApplicationStateSchema), new AlgoSdk.AlgoApiObjectFormatter().Assign("num-byte-slice", "nbs", (AlgoSdk.ApplicationStateSchema x) => x.NumByteSlices, (ref AlgoSdk.ApplicationStateSchema x, System.UInt64 value) => x.NumByteSlices = value, false).Assign("num-uint", "nui", (AlgoSdk.ApplicationStateSchema x) => x.NumUints, (ref AlgoSdk.ApplicationStateSchema x, System.UInt64 value) => x.NumUints = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.StateSchema), new AlgoSdk.AlgoApiObjectFormatter().Assign("num-byte-slice", "nbs", (AlgoSdk.StateSchema x) => x.NumByteSlices, (ref AlgoSdk.StateSchema x, System.UInt64 value) => x.NumByteSlices = value, false).Assign("num-uint", "nui", (AlgoSdk.StateSchema x) => x.NumUints, (ref AlgoSdk.StateSchema x, System.UInt64 value) => x.NumUints = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Asset), new AlgoSdk.AlgoApiObjectFormatter().Assign("created-at-round", null, (AlgoSdk.Asset x) => x.CreatedAtRound, (ref AlgoSdk.Asset x, AlgoSdk.Optional value) => x.CreatedAtRound = value, false).Assign("deleted", null, (AlgoSdk.Asset x) => x.Deleted, (ref AlgoSdk.Asset x, AlgoSdk.Optional value) => x.Deleted = value, false).Assign("destroyed-at-round", null, (AlgoSdk.Asset x) => x.DestroyedAtRound, (ref AlgoSdk.Asset x, AlgoSdk.Optional value) => x.DestroyedAtRound = value, false).Assign("index", null, (AlgoSdk.Asset x) => x.Index, (ref AlgoSdk.Asset x, System.UInt64 value) => x.Index = value, false).Assign("params", null, (AlgoSdk.Asset x) => x.Params, (ref AlgoSdk.Asset x, AlgoSdk.AssetParams value) => x.Params = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.AssetHolding), new AlgoSdk.AlgoApiObjectFormatter().Assign("amount", null, (AlgoSdk.AssetHolding x) => x.Amount, (ref AlgoSdk.AssetHolding x, System.UInt64 value) => x.Amount = value, false).Assign("asset-id", null, (AlgoSdk.AssetHolding x) => x.AssetId, (ref AlgoSdk.AssetHolding x, System.UInt64 value) => x.AssetId = value, false).Assign("creator", null, (AlgoSdk.AssetHolding x) => x.Creator, (ref AlgoSdk.AssetHolding x, AlgoSdk.Address value) => x.Creator = value, false).Assign("deleted", null, (AlgoSdk.AssetHolding x) => x.Deleted, (ref AlgoSdk.AssetHolding x, AlgoSdk.Optional value) => x.Deleted = value, false).Assign("is-frozen", null, (AlgoSdk.AssetHolding x) => x.IsFrozen, (ref AlgoSdk.AssetHolding x, System.Boolean value) => x.IsFrozen = value, false).Assign("opted-in-at-round", null, (AlgoSdk.AssetHolding x) => x.OptedInAtRound, (ref AlgoSdk.AssetHolding x, AlgoSdk.Optional value) => x.OptedInAtRound = value, false).Assign("opted-out-at-round", null, (AlgoSdk.AssetHolding x) => x.OptedOutAtRound, (ref AlgoSdk.AssetHolding x, AlgoSdk.Optional value) => x.OptedOutAtRound = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.AssetParams), new AlgoSdk.AlgoApiObjectFormatter().Assign("clawback", null, (AlgoSdk.AssetParams x) => x.Clawback, (ref AlgoSdk.AssetParams x, AlgoSdk.Address value) => x.Clawback = value, false).Assign("creator", null, (AlgoSdk.AssetParams x) => x.Creator, (ref AlgoSdk.AssetParams x, AlgoSdk.Address value) => x.Creator = value, false).Assign("decimals", null, (AlgoSdk.AssetParams x) => x.Decimals, (ref AlgoSdk.AssetParams x, System.UInt64 value) => x.Decimals = value, false).Assign("default-frozen", null, (AlgoSdk.AssetParams x) => x.DefaultFrozen, (ref AlgoSdk.AssetParams x, AlgoSdk.Optional value) => x.DefaultFrozen = value, false).Assign("freeze", null, (AlgoSdk.AssetParams x) => x.Freeze, (ref AlgoSdk.AssetParams x, AlgoSdk.Address value) => x.Freeze = value, false).Assign("manager", null, (AlgoSdk.AssetParams x) => x.Manager, (ref AlgoSdk.AssetParams x, AlgoSdk.Address value) => x.Manager = value, false).Assign("metadata-hash", null, (AlgoSdk.AssetParams x) => x.MetadataHash, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString128Bytes value) => x.MetadataHash = value, false).Assign("name", null, (AlgoSdk.AssetParams x) => x.Name, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString64Bytes value) => x.Name = value, false).Assign("name-b64", null, (AlgoSdk.AssetParams x) => x.NameBase64, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString128Bytes value) => x.NameBase64 = value, false).Assign("reserve", null, (AlgoSdk.AssetParams x) => x.Reserve, (ref AlgoSdk.AssetParams x, AlgoSdk.Address value) => x.Reserve = value, false).Assign("total", null, (AlgoSdk.AssetParams x) => x.Total, (ref AlgoSdk.AssetParams x, System.UInt64 value) => x.Total = value, false).Assign("unit-name", null, (AlgoSdk.AssetParams x) => x.UnitName, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString64Bytes value) => x.UnitName = value, false).Assign("unit-name-b64", null, (AlgoSdk.AssetParams x) => x.UnitNameBase64, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString128Bytes value) => x.UnitNameBase64 = value, false).Assign("url", null, (AlgoSdk.AssetParams x) => x.Url, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString512Bytes value) => x.Url = value, false).Assign("url-b64", null, (AlgoSdk.AssetParams x) => x.UrlBase64, (ref AlgoSdk.AssetParams x, Unity.Collections.FixedString512Bytes value) => x.UrlBase64 = value, false)); @@ -61,7 +61,7 @@ private static void EnsureLookupInitialized() AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.LogicSig), new AlgoSdk.AlgoApiObjectFormatter().Assign(null, "l", (AlgoSdk.LogicSig x) => x.Program, (ref AlgoSdk.LogicSig x, System.Byte[] value) => x.Program = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "arg", (AlgoSdk.LogicSig x) => x.Args, (ref AlgoSdk.LogicSig x, Unity.Collections.FixedList128Bytes[] value) => x.Args = value, AlgoSdk.ArrayComparer>.Instance, false).Assign(null, "sig", (AlgoSdk.LogicSig x) => x.Sig, (ref AlgoSdk.LogicSig x, AlgoSdk.Signature value) => x.Sig = value, false).Assign(null, "msig", (AlgoSdk.LogicSig x) => x.MultiSig, (ref AlgoSdk.LogicSig x, AlgoSdk.MultiSig value) => x.MultiSig = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(Unity.Collections.FixedList128Bytes[]), new AlgoSdk.Formatters.ArrayFormatter>()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.MerkleProof), new AlgoSdk.AlgoApiObjectFormatter().Assign("idx", null, (AlgoSdk.MerkleProof x) => x.TransactionIndex, (ref AlgoSdk.MerkleProof x, System.UInt64 value) => x.TransactionIndex = value, false).Assign("proof", null, (AlgoSdk.MerkleProof x) => x.Proof, (ref AlgoSdk.MerkleProof x, System.String value) => x.Proof = value, false).Assign("stibhash", null, (AlgoSdk.MerkleProof x) => x.SignedTransactionHash, (ref AlgoSdk.MerkleProof x, System.String value) => x.SignedTransactionHash = value, false)); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Transaction.ApplicationCall.Params), new AlgoSdk.AlgoApiObjectFormatter().Assign("application-id", "apid", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ApplicationId, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.UInt64 value) => x.ApplicationId = value, false).Assign("on-completion", "on-completion", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.OnComplete, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.UInt64 value) => x.OnComplete = value, false).Assign("accounts", "apat", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.Accounts, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer.Instance, false).Assign("approval-program", "apap", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ApprovalProgram, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("application-args", "apaa", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.AppArguments, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.AppArguments = value, AlgoSdk.ArrayComparer.Instance, false).Assign("clear-state-program", "apsu", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ClearStateProgram, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("foreign-apps", "apfa", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ForeignApps, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.ForeignApps = value, AlgoSdk.ArrayComparer.Instance, false).Assign("foreign-assets", "apas", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ForeignAssets, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.ForeignAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("global-state-schema", "global-state-schema", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.GlobalStateSchema, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign("local-state-schema", "local-state-schema", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.LocalStateSchema, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false).Assign("extra-program-pages", "epp", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ExtraProgramPages, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Transaction.ApplicationCall.Params), new AlgoSdk.AlgoApiObjectFormatter().Assign("application-id", "apid", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ApplicationId, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.UInt64 value) => x.ApplicationId = value, false).Assign("on-completion", "on-completion", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.OnComplete, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.UInt64 value) => x.OnComplete = value, false).Assign("accounts", "apat", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.Accounts, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer.Instance, false).Assign("approval-program", "apap", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ApprovalProgram, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("application-args", "apaa", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.AppArguments, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.AppArguments = value, AlgoSdk.ArrayComparer.Instance, false).Assign("clear-state-program", "apsu", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ClearStateProgram, (ref AlgoSdk.Transaction.ApplicationCall.Params x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign("foreign-apps", "apfa", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ForeignApps, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.ForeignApps = value, AlgoSdk.ArrayComparer.Instance, false).Assign("foreign-assets", "apas", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ForeignAssets, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Address[] value) => x.ForeignAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign("global-state-schema", "global-state-schema", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.GlobalStateSchema, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign("local-state-schema", "local-state-schema", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.LocalStateSchema, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false).Assign("extra-program-pages", "epp", (AlgoSdk.Transaction.ApplicationCall.Params x) => x.ExtraProgramPages, (ref AlgoSdk.Transaction.ApplicationCall.Params x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Address[]), new AlgoSdk.Formatters.ArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Transaction.AssetConfiguration.Params), new AlgoSdk.AlgoApiObjectFormatter().Assign("asset-id", "xaid", (AlgoSdk.Transaction.AssetConfiguration.Params x) => x.ConfigAsset, (ref AlgoSdk.Transaction.AssetConfiguration.Params x, System.UInt64 value) => x.ConfigAsset = value, false).Assign("params", "params", (AlgoSdk.Transaction.AssetConfiguration.Params x) => x.AssetParams, (ref AlgoSdk.Transaction.AssetConfiguration.Params x, AlgoSdk.AssetParams value) => x.AssetParams = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Transaction.Payment.Params), new AlgoSdk.AlgoApiObjectFormatter().Assign("receiver", "rcv", (AlgoSdk.Transaction.Payment.Params x) => x.Receiver, (ref AlgoSdk.Transaction.Payment.Params x, AlgoSdk.Address value) => x.Receiver = value, false).Assign("amount", "amt", (AlgoSdk.Transaction.Payment.Params x) => x.Amount, (ref AlgoSdk.Transaction.Payment.Params x, System.UInt64 value) => x.Amount = value, false).Assign("close-remainder-to", "close", (AlgoSdk.Transaction.Payment.Params x) => x.CloseRemainderTo, (ref AlgoSdk.Transaction.Payment.Params x, AlgoSdk.Address value) => x.CloseRemainderTo = value, false).Assign("close-amount", "close-amount", (AlgoSdk.Transaction.Payment.Params x) => x.CloseAmount, (ref AlgoSdk.Transaction.Payment.Params x, AlgoSdk.Optional value) => x.CloseAmount = value, false)); @@ -69,7 +69,7 @@ private static void EnsureLookupInitialized() AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.PendingTransactions), new AlgoSdk.AlgoApiObjectFormatter().Assign("top-transactions", null, (AlgoSdk.PendingTransactions x) => x.TopTransactions, (ref AlgoSdk.PendingTransactions x, AlgoSdk.PendingTransaction[] value) => x.TopTransactions = value, AlgoSdk.ArrayComparer.Instance, false).Assign("total-transactions", null, (AlgoSdk.PendingTransactions x) => x.TotalTransactions, (ref AlgoSdk.PendingTransactions x, System.UInt64 value) => x.TotalTransactions = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.PendingTransaction[]), new AlgoSdk.Formatters.ArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.RawSignedTransaction), new AlgoSdk.AlgoApiObjectFormatter().Assign("txn", "txn", (AlgoSdk.RawSignedTransaction x) => x.Transaction, (ref AlgoSdk.RawSignedTransaction x, AlgoSdk.RawTransaction value) => x.Transaction = value, false).Assign("sig", "sig", (AlgoSdk.RawSignedTransaction x) => x.Sig, (ref AlgoSdk.RawSignedTransaction x, AlgoSdk.Signature value) => x.Sig = value, false).Assign("msig", "msig", (AlgoSdk.RawSignedTransaction x) => x.MultiSig, (ref AlgoSdk.RawSignedTransaction x, AlgoSdk.MultiSig value) => x.MultiSig = value, false).Assign("lsig", "lsig", (AlgoSdk.RawSignedTransaction x) => x.LogicSig, (ref AlgoSdk.RawSignedTransaction x, AlgoSdk.LogicSig value) => x.LogicSig = value, false)); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.RawTransaction), new AlgoSdk.AlgoApiObjectFormatter().Assign(null, "apid", (AlgoSdk.RawTransaction x) => x.ApplicationId, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ApplicationId = value, false).Assign(null, "apan", (AlgoSdk.RawTransaction x) => x.OnComplete, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.OnComplete = value, false).Assign(null, "apat", (AlgoSdk.RawTransaction x) => x.Accounts, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apap", (AlgoSdk.RawTransaction x) => x.ApprovalProgram, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apaa", (AlgoSdk.RawTransaction x) => x.AppArguments, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.AppArguments = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apsu", (AlgoSdk.RawTransaction x) => x.ClearStateProgram, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apfa", (AlgoSdk.RawTransaction x) => x.ForeignApps, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.ForeignApps = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apas", (AlgoSdk.RawTransaction x) => x.ForeignAssets, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.ForeignAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apgs", (AlgoSdk.RawTransaction x) => x.GlobalStateSchema, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign(null, "apls", (AlgoSdk.RawTransaction x) => x.LocalStateSchema, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false).Assign(null, "apep", (AlgoSdk.RawTransaction x) => x.ExtraProgramPages, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false).Assign(null, "caid", (AlgoSdk.RawTransaction x) => x.ConfigAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ConfigAsset = value, false).Assign(null, "apar", (AlgoSdk.RawTransaction x) => x.AssetParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.AssetParams value) => x.AssetParams = value, false).Assign(null, "fadd", (AlgoSdk.RawTransaction x) => x.FreezeAccount, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.FreezeAccount = value, false).Assign(null, "faid", (AlgoSdk.RawTransaction x) => x.FreezeAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.FreezeAsset = value, false).Assign(null, "afrz", (AlgoSdk.RawTransaction x) => x.AssetFrozen, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.AssetFrozen = value, false).Assign(null, "xaid", (AlgoSdk.RawTransaction x) => x.XferAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.XferAsset = value, false).Assign(null, "aamt", (AlgoSdk.RawTransaction x) => x.AssetAmount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.AssetAmount = value, false).Assign(null, "asnd", (AlgoSdk.RawTransaction x) => x.AssetSender, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetSender = value, false).Assign(null, "arcv", (AlgoSdk.RawTransaction x) => x.AssetReceiver, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetReceiver = value, false).Assign(null, "aclose", (AlgoSdk.RawTransaction x) => x.AssetCloseTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetCloseTo = value, false).Assign("fee", "fee", (AlgoSdk.RawTransaction x) => x.Fee, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.Fee = value, false).Assign("first-valid", "fv", (AlgoSdk.RawTransaction x) => x.FirstValidRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.FirstValidRound = value, false).Assign("genesis-hash", "gh", (AlgoSdk.RawTransaction x) => x.GenesisHash, (ref AlgoSdk.RawTransaction x, AlgoSdk.GenesisHash value) => x.GenesisHash = value, false).Assign("last-valid", "lv", (AlgoSdk.RawTransaction x) => x.LastValidRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.LastValidRound = value, false).Assign("sender", "snd", (AlgoSdk.RawTransaction x) => x.Sender, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Sender = value, false).Assign("tx-type", "type", (AlgoSdk.RawTransaction x) => x.TransactionType, (ref AlgoSdk.RawTransaction x, AlgoSdk.TransactionType value) => x.TransactionType = value, AlgoSdk.TransactionTypeComparer.Instance, false).Assign("genesis-id", "gen", (AlgoSdk.RawTransaction x) => x.GenesisId, (ref AlgoSdk.RawTransaction x, Unity.Collections.FixedString32Bytes value) => x.GenesisId = value, false).Assign("group", "grp", (AlgoSdk.RawTransaction x) => x.Group, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Group = value, false).Assign("lease", "lx", (AlgoSdk.RawTransaction x) => x.Lease, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Lease = value, false).Assign("note", "note", (AlgoSdk.RawTransaction x) => x.Note, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.Note = value, AlgoSdk.ArrayComparer.Instance, false).Assign("rekey-to", "rekey", (AlgoSdk.RawTransaction x) => x.RekeyTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.RekeyTo = value, false).Assign("id", "id", (AlgoSdk.RawTransaction x) => x.Id, (ref AlgoSdk.RawTransaction x, AlgoSdk.TransactionId value) => x.Id = value, false).Assign("auth-addr", "sgnr", (AlgoSdk.RawTransaction x) => x.AuthAddress, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AuthAddress = value, false).Assign("close-rewards", "rc", (AlgoSdk.RawTransaction x) => x.CloseRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CloseRewards = value, false).Assign("closing-amount", "ca", (AlgoSdk.RawTransaction x) => x.ClosingAmount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ClosingAmount = value, false).Assign("confirmed-round", null, (AlgoSdk.RawTransaction x) => x.ConfirmedRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ConfirmedRound = value, false).Assign("created-application-index", null, (AlgoSdk.RawTransaction x) => x.CreatedApplicationIndex, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CreatedApplicationIndex = value, false).Assign("created-asset-index", null, (AlgoSdk.RawTransaction x) => x.CreatedAssetIndex, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CreatedAssetIndex = value, false).Assign("intra-round-offset", null, (AlgoSdk.RawTransaction x) => x.IntraRoundOffset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.IntraRoundOffset = value, false).Assign("global-state-delta", "gd", (AlgoSdk.RawTransaction x) => x.GlobalStateDelta, (ref AlgoSdk.RawTransaction x, AlgoSdk.EvalDeltaKeyValue[] value) => x.GlobalStateDelta = value, AlgoSdk.ArrayComparer.Instance, false).Assign("local-state-delta", "ld", (AlgoSdk.RawTransaction x) => x.LocalStateDelta, (ref AlgoSdk.RawTransaction x, AlgoSdk.AccountStateDelta[] value) => x.LocalStateDelta = value, AlgoSdk.ArrayComparer.Instance, false).Assign("receiver-rewards", "rr", (AlgoSdk.RawTransaction x) => x.ReceiverRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ReceiverRewards = value, false).Assign("round-time", null, (AlgoSdk.RawTransaction x) => x.RoundTime, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.RoundTime = value, false).Assign("sender-rewards", "rs", (AlgoSdk.RawTransaction x) => x.SenderRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.SenderRewards = value, false).Assign(null, "votekey", (AlgoSdk.RawTransaction x) => x.VotePk, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.VotePk = value, false).Assign(null, "selkey", (AlgoSdk.RawTransaction x) => x.SelectionPk, (ref AlgoSdk.RawTransaction x, AlgoSdk.VrfPubkey value) => x.SelectionPk = value, false).Assign(null, "votefst", (AlgoSdk.RawTransaction x) => x.VoteFirst, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteFirst = value, false).Assign(null, "votelst", (AlgoSdk.RawTransaction x) => x.VoteLast, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteLast = value, false).Assign(null, "votekd", (AlgoSdk.RawTransaction x) => x.VoteKeyDilution, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteKeyDilution = value, false).Assign(null, "nonpart", (AlgoSdk.RawTransaction x) => x.NonParticipation, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.NonParticipation = value, false).Assign(null, "rcv", (AlgoSdk.RawTransaction x) => x.Receiver, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Receiver = value, false).Assign(null, "amt", (AlgoSdk.RawTransaction x) => x.Amount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.Amount = value, false).Assign(null, "close", (AlgoSdk.RawTransaction x) => x.CloseRemainderTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.CloseRemainderTo = value, false).Assign("payment-transaction", null, (AlgoSdk.RawTransaction x) => x.PaymentParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.Payment.Params value) => x.PaymentParams = value, false).Assign("asset-config-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetConfigurationParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetConfiguration.Params value) => x.AssetConfigurationParams = value, false).Assign("asset-transfer-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetTransferParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetTransfer.Params value) => x.AssetTransferParams = value, false).Assign("asset-freeze-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetFreezeParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetFreeze.Params value) => x.AssetFreezeParams = value, false).Assign("application-transaction", null, (AlgoSdk.RawTransaction x) => x.ApplicationCallParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.ApplicationCall.Params value) => x.ApplicationCallParams = value, false).Assign("keyreg-transaction", null, (AlgoSdk.RawTransaction x) => x.KeyRegistrationParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.KeyRegistration.Params value) => x.KeyRegistrationParams = value, false)); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.RawTransaction), new AlgoSdk.AlgoApiObjectFormatter().Assign(null, "apid", (AlgoSdk.RawTransaction x) => x.ApplicationId, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ApplicationId = value, false).Assign(null, "apan", (AlgoSdk.RawTransaction x) => x.OnComplete, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.OnComplete = value, false).Assign(null, "apat", (AlgoSdk.RawTransaction x) => x.Accounts, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apap", (AlgoSdk.RawTransaction x) => x.ApprovalProgram, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.ApprovalProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apaa", (AlgoSdk.RawTransaction x) => x.AppArguments, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.AppArguments = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apsu", (AlgoSdk.RawTransaction x) => x.ClearStateProgram, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.ClearStateProgram = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apfa", (AlgoSdk.RawTransaction x) => x.ForeignApps, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.ForeignApps = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apas", (AlgoSdk.RawTransaction x) => x.ForeignAssets, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address[] value) => x.ForeignAssets = value, AlgoSdk.ArrayComparer.Instance, false).Assign(null, "apgs", (AlgoSdk.RawTransaction x) => x.GlobalStateSchema, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.GlobalStateSchema = value, false).Assign(null, "apls", (AlgoSdk.RawTransaction x) => x.LocalStateSchema, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.LocalStateSchema = value, false).Assign(null, "apep", (AlgoSdk.RawTransaction x) => x.ExtraProgramPages, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.ExtraProgramPages = value, false).Assign(null, "caid", (AlgoSdk.RawTransaction x) => x.ConfigAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ConfigAsset = value, false).Assign(null, "apar", (AlgoSdk.RawTransaction x) => x.AssetParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.AssetParams value) => x.AssetParams = value, false).Assign(null, "fadd", (AlgoSdk.RawTransaction x) => x.FreezeAccount, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.FreezeAccount = value, false).Assign(null, "faid", (AlgoSdk.RawTransaction x) => x.FreezeAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.FreezeAsset = value, false).Assign(null, "afrz", (AlgoSdk.RawTransaction x) => x.AssetFrozen, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.AssetFrozen = value, false).Assign(null, "xaid", (AlgoSdk.RawTransaction x) => x.XferAsset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.XferAsset = value, false).Assign(null, "aamt", (AlgoSdk.RawTransaction x) => x.AssetAmount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.AssetAmount = value, false).Assign(null, "asnd", (AlgoSdk.RawTransaction x) => x.AssetSender, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetSender = value, false).Assign(null, "arcv", (AlgoSdk.RawTransaction x) => x.AssetReceiver, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetReceiver = value, false).Assign(null, "aclose", (AlgoSdk.RawTransaction x) => x.AssetCloseTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AssetCloseTo = value, false).Assign("fee", "fee", (AlgoSdk.RawTransaction x) => x.Fee, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.Fee = value, false).Assign("first-valid", "fv", (AlgoSdk.RawTransaction x) => x.FirstValidRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.FirstValidRound = value, false).Assign("genesis-hash", "gh", (AlgoSdk.RawTransaction x) => x.GenesisHash, (ref AlgoSdk.RawTransaction x, AlgoSdk.GenesisHash value) => x.GenesisHash = value, false).Assign("last-valid", "lv", (AlgoSdk.RawTransaction x) => x.LastValidRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.LastValidRound = value, false).Assign("sender", "snd", (AlgoSdk.RawTransaction x) => x.Sender, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Sender = value, false).Assign("tx-type", "type", (AlgoSdk.RawTransaction x) => x.TransactionType, (ref AlgoSdk.RawTransaction x, AlgoSdk.TransactionType value) => x.TransactionType = value, AlgoSdk.TransactionTypeComparer.Instance, false).Assign("genesis-id", "gen", (AlgoSdk.RawTransaction x) => x.GenesisId, (ref AlgoSdk.RawTransaction x, Unity.Collections.FixedString32Bytes value) => x.GenesisId = value, false).Assign("group", "grp", (AlgoSdk.RawTransaction x) => x.Group, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Group = value, false).Assign("lease", "lx", (AlgoSdk.RawTransaction x) => x.Lease, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Lease = value, false).Assign("note", "note", (AlgoSdk.RawTransaction x) => x.Note, (ref AlgoSdk.RawTransaction x, System.Byte[] value) => x.Note = value, AlgoSdk.ArrayComparer.Instance, false).Assign("rekey-to", "rekey", (AlgoSdk.RawTransaction x) => x.RekeyTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.RekeyTo = value, false).Assign("id", "id", (AlgoSdk.RawTransaction x) => x.Id, (ref AlgoSdk.RawTransaction x, AlgoSdk.TransactionId value) => x.Id = value, false).Assign("auth-addr", "sgnr", (AlgoSdk.RawTransaction x) => x.AuthAddress, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.AuthAddress = value, false).Assign("close-rewards", "rc", (AlgoSdk.RawTransaction x) => x.CloseRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CloseRewards = value, false).Assign("closing-amount", "ca", (AlgoSdk.RawTransaction x) => x.ClosingAmount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ClosingAmount = value, false).Assign("confirmed-round", null, (AlgoSdk.RawTransaction x) => x.ConfirmedRound, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ConfirmedRound = value, false).Assign("created-application-index", null, (AlgoSdk.RawTransaction x) => x.CreatedApplicationIndex, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CreatedApplicationIndex = value, false).Assign("created-asset-index", null, (AlgoSdk.RawTransaction x) => x.CreatedAssetIndex, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.CreatedAssetIndex = value, false).Assign("intra-round-offset", null, (AlgoSdk.RawTransaction x) => x.IntraRoundOffset, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.IntraRoundOffset = value, false).Assign("global-state-delta", "gd", (AlgoSdk.RawTransaction x) => x.GlobalStateDelta, (ref AlgoSdk.RawTransaction x, AlgoSdk.EvalDeltaKeyValue[] value) => x.GlobalStateDelta = value, AlgoSdk.ArrayComparer.Instance, false).Assign("local-state-delta", "ld", (AlgoSdk.RawTransaction x) => x.LocalStateDelta, (ref AlgoSdk.RawTransaction x, AlgoSdk.AccountStateDelta[] value) => x.LocalStateDelta = value, AlgoSdk.ArrayComparer.Instance, false).Assign("receiver-rewards", "rr", (AlgoSdk.RawTransaction x) => x.ReceiverRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.ReceiverRewards = value, false).Assign("round-time", null, (AlgoSdk.RawTransaction x) => x.RoundTime, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.RoundTime = value, false).Assign("sender-rewards", "rs", (AlgoSdk.RawTransaction x) => x.SenderRewards, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.SenderRewards = value, false).Assign(null, "votekey", (AlgoSdk.RawTransaction x) => x.VotePk, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.VotePk = value, false).Assign(null, "selkey", (AlgoSdk.RawTransaction x) => x.SelectionPk, (ref AlgoSdk.RawTransaction x, AlgoSdk.VrfPubkey value) => x.SelectionPk = value, false).Assign(null, "votefst", (AlgoSdk.RawTransaction x) => x.VoteFirst, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteFirst = value, false).Assign(null, "votelst", (AlgoSdk.RawTransaction x) => x.VoteLast, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteLast = value, false).Assign(null, "votekd", (AlgoSdk.RawTransaction x) => x.VoteKeyDilution, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.VoteKeyDilution = value, false).Assign(null, "nonpart", (AlgoSdk.RawTransaction x) => x.NonParticipation, (ref AlgoSdk.RawTransaction x, AlgoSdk.Optional value) => x.NonParticipation = value, false).Assign(null, "rcv", (AlgoSdk.RawTransaction x) => x.Receiver, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.Receiver = value, false).Assign(null, "amt", (AlgoSdk.RawTransaction x) => x.Amount, (ref AlgoSdk.RawTransaction x, System.UInt64 value) => x.Amount = value, false).Assign(null, "close", (AlgoSdk.RawTransaction x) => x.CloseRemainderTo, (ref AlgoSdk.RawTransaction x, AlgoSdk.Address value) => x.CloseRemainderTo = value, false).Assign("payment-transaction", null, (AlgoSdk.RawTransaction x) => x.PaymentParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.Payment.Params value) => x.PaymentParams = value, false).Assign("asset-config-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetConfigurationParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetConfiguration.Params value) => x.AssetConfigurationParams = value, false).Assign("asset-transfer-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetTransferParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetTransfer.Params value) => x.AssetTransferParams = value, false).Assign("asset-freeze-transaction", null, (AlgoSdk.RawTransaction x) => x.AssetFreezeParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.AssetFreeze.Params value) => x.AssetFreezeParams = value, false).Assign("application-transaction", null, (AlgoSdk.RawTransaction x) => x.ApplicationCallParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.ApplicationCall.Params value) => x.ApplicationCallParams = value, false).Assign("keyreg-transaction", null, (AlgoSdk.RawTransaction x) => x.KeyRegistrationParams, (ref AlgoSdk.RawTransaction x, AlgoSdk.Transaction.KeyRegistration.Params value) => x.KeyRegistrationParams = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Status), new AlgoSdk.AlgoApiObjectFormatter().Assign("catchpoint", null, (AlgoSdk.Status x) => x.Catchpoint, (ref AlgoSdk.Status x, System.String value) => x.Catchpoint = value, false).Assign("catchpoint-acquired-blocks", null, (AlgoSdk.Status x) => x.CatchpointAcquiredBlocks, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchpointAcquiredBlocks = value, false).Assign("catchpoint-processed-accounts", null, (AlgoSdk.Status x) => x.CatchpointProcessedAmounts, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchpointProcessedAmounts = value, false).Assign("catchpoint-total-accounts", null, (AlgoSdk.Status x) => x.CatchpointTotalAccounts, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchpointTotalAccounts = value, false).Assign("catchpoint-total-blocks", null, (AlgoSdk.Status x) => x.CatchpointTotalBlocks, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchpointTotalBlocks = value, false).Assign("catchpoint-verified-accounts", null, (AlgoSdk.Status x) => x.CatchpointVerifiedAccounts, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchpointVerifiedAccounts = value, false).Assign("catchup-time", null, (AlgoSdk.Status x) => x.CatchupTime, (ref AlgoSdk.Status x, System.UInt64 value) => x.CatchupTime = value, false).Assign("last-catchpoint", null, (AlgoSdk.Status x) => x.LastCatchpoint, (ref AlgoSdk.Status x, System.String value) => x.LastCatchpoint = value, false).Assign("last-round", null, (AlgoSdk.Status x) => x.LastRound, (ref AlgoSdk.Status x, System.UInt64 value) => x.LastRound = value, false).Assign("last-version", null, (AlgoSdk.Status x) => x.LastVersion, (ref AlgoSdk.Status x, System.String value) => x.LastVersion = value, false).Assign("next-version", null, (AlgoSdk.Status x) => x.NextVersion, (ref AlgoSdk.Status x, System.String value) => x.NextVersion = value, false).Assign("next-version-round", null, (AlgoSdk.Status x) => x.NextVersionRound, (ref AlgoSdk.Status x, System.UInt64 value) => x.NextVersionRound = value, false).Assign("next-version-supported", null, (AlgoSdk.Status x) => x.NextVersionSupported, (ref AlgoSdk.Status x, System.Boolean value) => x.NextVersionSupported = value, false).Assign("stopped-at-unsupported-round", null, (AlgoSdk.Status x) => x.StoppedAtUnsupportedRound, (ref AlgoSdk.Status x, System.Boolean value) => x.StoppedAtUnsupportedRound = value, false).Assign("time-since-last-round", null, (AlgoSdk.Status x) => x.TimeSinceLastRound, (ref AlgoSdk.Status x, System.UInt64 value) => x.TimeSinceLastRound = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.TealCompilationResult), new AlgoSdk.AlgoApiObjectFormatter().Assign("hash", null, (AlgoSdk.TealCompilationResult x) => x.Hash, (ref AlgoSdk.TealCompilationResult x, AlgoSdk.Crypto.Sha512_256_Hash value) => x.Hash = value, false).Assign("result", null, (AlgoSdk.TealCompilationResult x) => x.BytesBase64, (ref AlgoSdk.TealCompilationResult x, System.String value) => x.BytesBase64 = value, false)); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.TealKeyValue), new AlgoSdk.AlgoApiObjectFormatter().Assign("key", null, (AlgoSdk.TealKeyValue x) => x.Key, (ref AlgoSdk.TealKeyValue x, Unity.Collections.FixedString128Bytes value) => x.Key = value, false).Assign("value", null, (AlgoSdk.TealKeyValue x) => x.Value, (ref AlgoSdk.TealKeyValue x, AlgoSdk.TealValue value) => x.Value = value, false)); @@ -84,7 +84,7 @@ private static void EnsureLookupInitialized() AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Optional), new AlgoSdk.Formatters.OptionalFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Optional), new AlgoSdk.Formatters.OptionalFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Optional), new AlgoSdk.Formatters.OptionalFormatter()); - AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Optional), new AlgoSdk.Formatters.OptionalFormatter()); + AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Optional), new AlgoSdk.Formatters.OptionalFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.Signature), new AlgoSdk.Formatters.ByteArrayFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.SignedTransaction), new AlgoSdk.Formatters.SignedTransactionFormatter()); AlgoSdk.AlgoApiFormatterLookup.AddFormatter(typeof(AlgoSdk.SignedTransaction), new AlgoSdk.Formatters.SignedTransactionFormatter()); diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/Account.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/Account.cs index 3bfb3fd39..01348a0ae 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/Account.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/Account.cs @@ -23,7 +23,7 @@ public struct Account public Optional ApplicationsTotalExtraPages; [AlgoApiField("apps-total-schema", null)] - public Optional ApplicationsTotalSchema; + public Optional ApplicationsTotalSchema; [AlgoApiField("assets", null)] public AssetHolding[] Assets; diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationLocalState.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationLocalState.cs index 54eb6aa57..7cb3aea99 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationLocalState.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationLocalState.cs @@ -22,7 +22,7 @@ public struct ApplicationLocalState public Optional OptedInAtRound; [AlgoApiField("schema", null)] - public ApplicationStateSchema Schema; + public StateSchema Schema; public bool Equals(ApplicationLocalState other) { diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationParams.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationParams.cs index 2b0262f06..35eb01eed 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationParams.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationParams.cs @@ -22,10 +22,10 @@ public struct ApplicationParams public TealKeyValue[] GlobalState; [AlgoApiField("global-state-schema", null)] - public Optional GlobalStateSchema; + public Optional GlobalStateSchema; [AlgoApiField("local-state-schema", null)] - public Optional LocalStateSchema; + public Optional LocalStateSchema; public bool Equals(ApplicationParams other) { diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/RawTransaction/RawTransaction.ApplicationCall.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/RawTransaction/RawTransaction.ApplicationCall.cs index deb33eaf4..cb4967cde 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/RawTransaction/RawTransaction.ApplicationCall.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/RawTransaction/RawTransaction.ApplicationCall.cs @@ -59,14 +59,14 @@ public Address[] ForeignAssets } [AlgoApiField(null, "apgs")] - public Optional GlobalStateSchema + public Optional GlobalStateSchema { get => ApplicationCallParams.GlobalStateSchema; set => ApplicationCallParams.GlobalStateSchema = value; } [AlgoApiField(null, "apls")] - public Optional LocalStateSchema + public Optional LocalStateSchema { get => ApplicationCallParams.LocalStateSchema; set => ApplicationCallParams.LocalStateSchema = value; diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationStateSchema.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/StateSchema.cs similarity index 72% rename from Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationStateSchema.cs rename to Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/StateSchema.cs index 26a05db57..de001dc77 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationStateSchema.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/StateSchema.cs @@ -3,8 +3,8 @@ namespace AlgoSdk { [AlgoApiObject] - public struct ApplicationStateSchema - : IEquatable + public struct StateSchema + : IEquatable { [AlgoApiField("num-byte-slice", "nbs")] public ulong NumByteSlices; @@ -12,7 +12,7 @@ public struct ApplicationStateSchema [AlgoApiField("num-uint", "nui")] public ulong NumUints; - public bool Equals(ApplicationStateSchema other) + public bool Equals(StateSchema other) { return NumByteSlices.Equals(other.NumByteSlices) && NumUints.Equals(other.NumUints) diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationStateSchema.cs.meta b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/StateSchema.cs.meta similarity index 100% rename from Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/ApplicationStateSchema.cs.meta rename to Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/StateSchema.cs.meta diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Optional.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Optional.cs index bc1c95093..b5bf6305e 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Optional.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Optional.cs @@ -7,7 +7,7 @@ namespace AlgoSdk [AlgoApiFormatter(typeof(OptionalFormatter))] [AlgoApiFormatter(typeof(OptionalFormatter
))] [AlgoApiFormatter(typeof(OptionalFormatter))] - [AlgoApiFormatter(typeof(OptionalFormatter))] + [AlgoApiFormatter(typeof(OptionalFormatter))] public struct Optional : IEquatable> where T : struct, IEquatable diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Transaction/Transaction.ApplicationCall.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Transaction/Transaction.ApplicationCall.cs index 076a21a9b..3d97392d2 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Transaction/Transaction.ApplicationCall.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Transaction/Transaction.ApplicationCall.cs @@ -118,12 +118,12 @@ public Address[] ForeignAssets get => @params.ForeignAssets; set => @params.ForeignAssets = value; } - public Optional GlobalStateSchema + public Optional GlobalStateSchema { get => @params.GlobalStateSchema; set => @params.GlobalStateSchema = value; } - public Optional LocalStateSchema + public Optional LocalStateSchema { get => @params.LocalStateSchema; set => @params.LocalStateSchema = value; @@ -209,10 +209,10 @@ public struct Params public Address[] ForeignAssets; [AlgoApiField("global-state-schema", "global-state-schema")] - public Optional GlobalStateSchema; + public Optional GlobalStateSchema; [AlgoApiField("local-state-schema", "local-state-schema")] - public Optional LocalStateSchema; + public Optional LocalStateSchema; [AlgoApiField("extra-program-pages", "epp")] public Optional ExtraProgramPages;