Skip to content

Commit

Permalink
feat(algod): add latest algod client features
Browse files Browse the repository at this point in the history
add `TealDisassemble` method, and `hashtype`, `sourcemap` arguments
  • Loading branch information
jasonboukheir committed Jul 16, 2022
1 parent 1acbed3 commit 8873de7
Show file tree
Hide file tree
Showing 11 changed files with 194 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public partial struct DryrunTxnResult

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.DryrunTxnResult>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.DryrunTxnResult>(false).Assign("app-call-messages", (AlgoSdk.Algod.DryrunTxnResult x) => x.AppCallMessages, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.AppCallMessages = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("disassembly", (AlgoSdk.Algod.DryrunTxnResult x) => x.Disassembly, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.Disassembly = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("logs", (AlgoSdk.Algod.DryrunTxnResult x) => x.Logs, (ref AlgoSdk.Algod.DryrunTxnResult x, System.Byte[][] value) => x.Logs = value, AlgoSdk.ArrayComparer<System.Byte[], AlgoSdk.ArrayComparer<System.Byte>>.Instance).Assign("logic-sig-disassembly", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigDisassembly, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.LogicSigDisassembly = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("local-deltas", (AlgoSdk.Algod.DryrunTxnResult x) => x.LocalDeltas, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.AccountStateDelta[] value) => x.LocalDeltas = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.AccountStateDelta>.Instance).Assign("logic-sig-trace", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigTrace, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.DryrunState[] value) => x.LogicSigTrace = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.DryrunState>.Instance).Assign("cost", (AlgoSdk.Algod.DryrunTxnResult x) => x.Cost, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Optional<System.UInt64> value) => x.Cost = value).Assign("logic-sig-messages", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigMessages, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.LogicSigMessages = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("app-call-trace", (AlgoSdk.Algod.DryrunTxnResult x) => x.AppCallTrace, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.DryrunState[] value) => x.AppCallTrace = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.DryrunState>.Instance).Assign("global-delta", (AlgoSdk.Algod.DryrunTxnResult x) => x.GlobalDelta, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.StateDelta value) => x.GlobalDelta = value));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.DryrunTxnResult>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.DryrunTxnResult>(false).Assign("app-call-messages", (AlgoSdk.Algod.DryrunTxnResult x) => x.AppCallMessages, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.AppCallMessages = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("disassembly", (AlgoSdk.Algod.DryrunTxnResult x) => x.Disassembly, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.Disassembly = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("logs", (AlgoSdk.Algod.DryrunTxnResult x) => x.Logs, (ref AlgoSdk.Algod.DryrunTxnResult x, System.Byte[][] value) => x.Logs = value, AlgoSdk.ArrayComparer<System.Byte[], AlgoSdk.ArrayComparer<System.Byte>>.Instance).Assign("logic-sig-disassembly", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigDisassembly, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.LogicSigDisassembly = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("local-deltas", (AlgoSdk.Algod.DryrunTxnResult x) => x.LocalDeltas, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.AccountStateDelta[] value) => x.LocalDeltas = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.AccountStateDelta>.Instance).Assign("logic-sig-trace", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigTrace, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.DryrunState[] value) => x.LogicSigTrace = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.DryrunState>.Instance).Assign("cost", (AlgoSdk.Algod.DryrunTxnResult x) => x.Cost, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Optional<System.UInt64> value) => x.Cost = value).Assign("budget-consumed", (AlgoSdk.Algod.DryrunTxnResult x) => x.BudgetConsumed, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Optional<System.UInt64> value) => x.BudgetConsumed = value).Assign("logic-sig-messages", (AlgoSdk.Algod.DryrunTxnResult x) => x.LogicSigMessages, (ref AlgoSdk.Algod.DryrunTxnResult x, System.String[] value) => x.LogicSigMessages = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance).Assign("app-call-trace", (AlgoSdk.Algod.DryrunTxnResult x) => x.AppCallTrace, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.DryrunState[] value) => x.AppCallTrace = value, AlgoSdk.ArrayComparer<AlgoSdk.Algod.DryrunState>.Instance).Assign("global-delta", (AlgoSdk.Algod.DryrunTxnResult x) => x.GlobalDelta, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Algod.StateDelta value) => x.GlobalDelta = value).Assign("budget-added", (AlgoSdk.Algod.DryrunTxnResult x) => x.BudgetAdded, (ref AlgoSdk.Algod.DryrunTxnResult x, AlgoSdk.Optional<System.UInt64> value) => x.BudgetAdded = value));
return true;
}
}
Expand Down Expand Up @@ -451,7 +451,23 @@ public partial struct CompileResponse

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.CompileResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.CompileResponse>(false).Assign("hash", (AlgoSdk.Algod.CompileResponse x) => x.Hash, (ref AlgoSdk.Algod.CompileResponse x, System.String value) => x.Hash = value, AlgoSdk.StringComparer.Instance).Assign("result", (AlgoSdk.Algod.CompileResponse x) => x.Result, (ref AlgoSdk.Algod.CompileResponse x, System.String value) => x.Result = value, AlgoSdk.StringComparer.Instance));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.CompileResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.CompileResponse>(false).Assign("hash", (AlgoSdk.Algod.CompileResponse x) => x.Hash, (ref AlgoSdk.Algod.CompileResponse x, System.String value) => x.Hash = value, AlgoSdk.StringComparer.Instance).Assign("result", (AlgoSdk.Algod.CompileResponse x) => x.Result, (ref AlgoSdk.Algod.CompileResponse x, System.String value) => x.Result = value, AlgoSdk.StringComparer.Instance).Assign("sourcemap", (AlgoSdk.Algod.CompileResponse x) => x.Sourcemap, (ref AlgoSdk.Algod.CompileResponse x, AlgoSdk.AlgoApiObject value) => x.Sourcemap = value));
return true;
}
}
}
namespace AlgoSdk.Algod
{


public partial struct DisassembleResponse
{

private static bool @__generated__IsValid = DisassembleResponse.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.DisassembleResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.DisassembleResponse>(false).Assign("result", (AlgoSdk.Algod.DisassembleResponse x) => x.Result, (ref AlgoSdk.Algod.DisassembleResponse x, System.String value) => x.Result = value, AlgoSdk.StringComparer.Instance));
return true;
}
}
Expand All @@ -467,7 +483,7 @@ public partial struct ProofResponse

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.ProofResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.ProofResponse>(false).Assign("proof", (AlgoSdk.Algod.ProofResponse x) => x.Proof, (ref AlgoSdk.Algod.ProofResponse x, System.Byte[] value) => x.Proof = value, AlgoSdk.ArrayComparer<System.Byte>.Instance).Assign("stibhash", (AlgoSdk.Algod.ProofResponse x) => x.Stibhash, (ref AlgoSdk.Algod.ProofResponse x, System.Byte[] value) => x.Stibhash = value, AlgoSdk.ArrayComparer<System.Byte>.Instance).Assign("treedepth", (AlgoSdk.Algod.ProofResponse x) => x.Treedepth, (ref AlgoSdk.Algod.ProofResponse x, System.UInt64 value) => x.Treedepth = value).Assign("idx", (AlgoSdk.Algod.ProofResponse x) => x.Idx, (ref AlgoSdk.Algod.ProofResponse x, System.UInt64 value) => x.Idx = value).Assign("hashtype", (AlgoSdk.Algod.ProofResponse x) => x.Hashtype, (ref AlgoSdk.Algod.ProofResponse x, AlgoSdk.HashType value) => x.Hashtype = value, AlgoSdk.ByteEnumComparer<AlgoSdk.HashType>.Instance));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.ProofResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Algod.ProofResponse>(false).Assign("proof", (AlgoSdk.Algod.ProofResponse x) => x.Proof, (ref AlgoSdk.Algod.ProofResponse x, System.Byte[] value) => x.Proof = value, AlgoSdk.ArrayComparer<System.Byte>.Instance).Assign("stibhash", (AlgoSdk.Algod.ProofResponse x) => x.Stibhash, (ref AlgoSdk.Algod.ProofResponse x, System.Byte[] value) => x.Stibhash = value, AlgoSdk.ArrayComparer<System.Byte>.Instance).Assign("treedepth", (AlgoSdk.Algod.ProofResponse x) => x.Treedepth, (ref AlgoSdk.Algod.ProofResponse x, System.UInt64 value) => x.Treedepth = value).Assign("idx", (AlgoSdk.Algod.ProofResponse x) => x.Idx, (ref AlgoSdk.Algod.ProofResponse x, System.UInt64 value) => x.Idx = value).Assign("hashtype", (AlgoSdk.Algod.ProofResponse x) => x.Hashtype, (ref AlgoSdk.Algod.ProofResponse x, System.String value) => x.Hashtype = value, AlgoSdk.StringComparer.Instance));
return true;
}
}
Expand Down Expand Up @@ -588,6 +604,22 @@ namespace AlgoSdk.Algod
{


public partial struct AccountResponse
{

private static bool @__generated__IsValid = AccountResponse.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.AccountResponse>(new AlgoSdk.WrappedValueFormatter<AlgoSdk.Algod.AccountResponse, AlgoSdk.Algod.Account>());
return true;
}
}
}
namespace AlgoSdk.Algod
{


public partial struct StateDelta
{

Expand Down Expand Up @@ -684,22 +716,6 @@ namespace AlgoSdk.Algod
{


public partial struct AccountResponse
{

private static bool @__generated__IsValid = AccountResponse.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Algod.AccountResponse>(new AlgoSdk.WrappedValueFormatter<AlgoSdk.Algod.AccountResponse, AlgoSdk.Algod.Account>());
return true;
}
}
}
namespace AlgoSdk.Algod
{


public partial struct VersionsResponse
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@

namespace AlgoSdk.Experimental.Abi
{


public partial struct Contract
{

private static bool @__generated__IsValid = Contract.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Contract>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Experimental.Abi.Contract>(false).Assign("name", (AlgoSdk.Experimental.Abi.Contract x) => x.Name, (ref AlgoSdk.Experimental.Abi.Contract x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance).Assign("desc", (AlgoSdk.Experimental.Abi.Contract x) => x.Description, (ref AlgoSdk.Experimental.Abi.Contract x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance).Assign("networks", (AlgoSdk.Experimental.Abi.Contract x) => x.Networks, (ref AlgoSdk.Experimental.Abi.Contract x, AlgoSdk.Experimental.Abi.Contract.Deployments value) => x.Networks = value).Assign("methods", (AlgoSdk.Experimental.Abi.Contract x) => x.Methods, (ref AlgoSdk.Experimental.Abi.Contract x, AlgoSdk.Experimental.Abi.Method[] value) => x.Methods = value, AlgoSdk.ArrayComparer<AlgoSdk.Experimental.Abi.Method>.Instance));
return true;
}

public partial struct Deployments
{

private static bool @__generated__IsValid = Deployments.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Contract.Deployments>(new AlgoSdk.Experimental.Abi.Contract.Deployments.Formatter());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

namespace AlgoSdk.Experimental.Abi
{


public partial struct Interface
{

private static bool @__generated__IsValid = Interface.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Interface>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Experimental.Abi.Interface>(false).Assign("name", (AlgoSdk.Experimental.Abi.Interface x) => x.Name, (ref AlgoSdk.Experimental.Abi.Interface x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance).Assign("desc", (AlgoSdk.Experimental.Abi.Interface x) => x.Description, (ref AlgoSdk.Experimental.Abi.Interface x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance).Assign("methods", (AlgoSdk.Experimental.Abi.Interface x) => x.Methods, (ref AlgoSdk.Experimental.Abi.Interface x, AlgoSdk.Experimental.Abi.Method[] value) => x.Methods = value, AlgoSdk.ArrayComparer<AlgoSdk.Experimental.Abi.Method>.Instance));
Expand Down
20 changes: 10 additions & 10 deletions Runtime/CareBoo.AlgoSdk/Formatters.gen/Method.Formatters.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,36 @@

namespace AlgoSdk.Experimental.Abi
{


public partial struct Method
{

private static bool @__generated__IsValid = Method.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Method>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Experimental.Abi.Method>(false).Assign("name", (AlgoSdk.Experimental.Abi.Method x) => x.Name, (ref AlgoSdk.Experimental.Abi.Method x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance).Assign("desc", (AlgoSdk.Experimental.Abi.Method x) => x.Description, (ref AlgoSdk.Experimental.Abi.Method x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance).Assign("args", (AlgoSdk.Experimental.Abi.Method x) => x.Arguments, (ref AlgoSdk.Experimental.Abi.Method x, AlgoSdk.Experimental.Abi.Method.Arg[] value) => x.Arguments = value, AlgoSdk.ArrayComparer<AlgoSdk.Experimental.Abi.Method.Arg>.Instance).Assign("returns", (AlgoSdk.Experimental.Abi.Method x) => x.Returns, (ref AlgoSdk.Experimental.Abi.Method x, AlgoSdk.Experimental.Abi.Method.Return value) => x.Returns = value));
return true;
}

public partial struct Arg
{

private static bool @__generated__IsValid = Arg.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Method.Arg>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Experimental.Abi.Method.Arg>(false).Assign("type", (AlgoSdk.Experimental.Abi.Method.Arg x) => x.Type, (ref AlgoSdk.Experimental.Abi.Method.Arg x, AlgoSdk.Experimental.Abi.IAbiType value) => x.Type = value, AlgoSdk.IAbiTypeComparer.Instance).Assign("name", (AlgoSdk.Experimental.Abi.Method.Arg x) => x.Name, (ref AlgoSdk.Experimental.Abi.Method.Arg x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance).Assign("desc", (AlgoSdk.Experimental.Abi.Method.Arg x) => x.Description, (ref AlgoSdk.Experimental.Abi.Method.Arg x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance));
return true;
}
}

public partial struct Return
{

private static bool @__generated__IsValid = Return.@__generated__InitializeAlgoApiFormatters();

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.Experimental.Abi.Method.Return>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.Experimental.Abi.Method.Return>(false).Assign("type", (AlgoSdk.Experimental.Abi.Method.Return x) => x.Type, (ref AlgoSdk.Experimental.Abi.Method.Return x, AlgoSdk.Experimental.Abi.IAbiType value) => x.Type = value, AlgoSdk.IAbiTypeComparer.Instance).Assign("desc", (AlgoSdk.Experimental.Abi.Method.Return x) => x.Description, (ref AlgoSdk.Experimental.Abi.Method.Return x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance));
Expand Down
Loading

0 comments on commit 8873de7

Please sign in to comment.