Skip to content

Commit

Permalink
feat(formatter): add isStrict to AlgoApiObjectFormatter
Browse files Browse the repository at this point in the history
if a formatter is strict, it will throw an error when deserializing fields it does not recognize
  • Loading branch information
jasonboukheir committed Mar 25, 2022
1 parent b67db2a commit d8467c6
Show file tree
Hide file tree
Showing 121 changed files with 161 additions and 133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct ClientMeta

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.ClientMeta>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.ClientMeta>().Assign("description", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Description, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance, false).Assign("url", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Url, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Url = value, AlgoSdk.StringComparer.Instance, false).Assign("icons", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.IconUrls, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String[] value) => x.IconUrls = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance, false).Assign("name", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Name, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.ClientMeta>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.ClientMeta>(false).Assign("description", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Description, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Description = value, AlgoSdk.StringComparer.Instance, false).Assign("url", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Url, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Url = value, AlgoSdk.StringComparer.Instance, false).Assign("icons", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.IconUrls, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String[] value) => x.IconUrls = value, AlgoSdk.ArrayComparer<System.String, AlgoSdk.StringComparer>.Instance, false).Assign("name", null, (AlgoSdk.WalletConnect.ClientMeta x) => x.Name, (ref AlgoSdk.WalletConnect.ClientMeta x, System.String value) => x.Name = value, AlgoSdk.StringComparer.Instance, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct EncryptedPayload

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.EncryptedPayload>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.EncryptedPayload>().Assign("iv", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Iv, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Iv = value, false).Assign("hmac", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Signature, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Signature = value, false).Assign("data", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Data, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Data = value, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.EncryptedPayload>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.EncryptedPayload>(false).Assign("iv", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Iv, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Iv = value, false).Assign("hmac", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Signature, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Signature = value, false).Assign("data", null, (AlgoSdk.WalletConnect.EncryptedPayload x) => x.Data, (ref AlgoSdk.WalletConnect.EncryptedPayload x, AlgoSdk.Hex value) => x.Data = value, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct JsonRpcError

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcError>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcError>().Assign("code", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Code, (ref AlgoSdk.WalletConnect.JsonRpcError x, System.Int32 value) => x.Code = value, false).Assign("message", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Message, (ref AlgoSdk.WalletConnect.JsonRpcError x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false).Assign("data", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Data, (ref AlgoSdk.WalletConnect.JsonRpcError x, AlgoSdk.AlgoApiObject value) => x.Data = value, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcError>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcError>(false).Assign("code", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Code, (ref AlgoSdk.WalletConnect.JsonRpcError x, System.Int32 value) => x.Code = value, false).Assign("message", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Message, (ref AlgoSdk.WalletConnect.JsonRpcError x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false).Assign("data", null, (AlgoSdk.WalletConnect.JsonRpcError x) => x.Data, (ref AlgoSdk.WalletConnect.JsonRpcError x, AlgoSdk.AlgoApiObject value) => x.Data = value, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct JsonRpcRequest

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcRequest>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcRequest>().Assign("id", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Id, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.UInt64 value) => x.Id = value, false).Assign("jsonrpc", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.JsonRpc, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.String value) => x.JsonRpc = value, AlgoSdk.StringComparer.Instance, false).Assign("method", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Method, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.String value) => x.Method = value, AlgoSdk.StringComparer.Instance, false).Assign("params", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Params, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, AlgoSdk.AlgoApiObject[] value) => x.Params = value, AlgoSdk.ArrayComparer<AlgoSdk.AlgoApiObject>.Instance, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcRequest>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcRequest>(true).Assign("id", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Id, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.UInt64 value) => x.Id = value, false).Assign("jsonrpc", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.JsonRpc, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.String value) => x.JsonRpc = value, AlgoSdk.StringComparer.Instance, false).Assign("method", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Method, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, System.String value) => x.Method = value, AlgoSdk.StringComparer.Instance, false).Assign("params", null, (AlgoSdk.WalletConnect.JsonRpcRequest x) => x.Params, (ref AlgoSdk.WalletConnect.JsonRpcRequest x, AlgoSdk.AlgoApiObject[] value) => x.Params = value, AlgoSdk.ArrayComparer<AlgoSdk.AlgoApiObject>.Instance, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,24 @@ public interface IJsonRpcRequest
string Method { get; set; }
}

[AlgoApiObject]
[AlgoApiObject(IsStrict = true)]
public partial struct JsonRpcRequest
: IJsonRpcRequest<AlgoApiObject[]>
, IEquatable<JsonRpcRequest>
{
/// <inheritdoc />
[AlgoApiField("id", null)]
public ulong Id { get; set; }

/// <inheritdoc />
[AlgoApiField("jsonrpc", null)]
public string JsonRpc { get; set; }

/// <inheritdoc />
[AlgoApiField("method", null)]
public string Method { get; set; }

/// <inheritdoc />
[AlgoApiField("params", null)]
public AlgoApiObject[] Params { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct JsonRpcResponse

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcResponse>().Assign("id", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Id, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.Optional<System.UInt64> value) => x.Id = value, false).Assign("jsonrpc", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.JsonRpc, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, System.String value) => x.JsonRpc = value, AlgoSdk.StringComparer.Instance, false).Assign("result", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Result, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.AlgoApiObject value) => x.Result = value, false).Assign("error", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Error, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.WalletConnect.JsonRpcError value) => x.Error = value, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.JsonRpcResponse>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.JsonRpcResponse>(true).Assign("id", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Id, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.Optional<System.UInt64> value) => x.Id = value, false).Assign("jsonrpc", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.JsonRpc, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, System.String value) => x.JsonRpc = value, AlgoSdk.StringComparer.Instance, false).Assign("result", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Result, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.AlgoApiObject value) => x.Result = value, false).Assign("error", null, (AlgoSdk.WalletConnect.JsonRpcResponse x) => x.Error, (ref AlgoSdk.WalletConnect.JsonRpcResponse x, AlgoSdk.WalletConnect.JsonRpcError value) => x.Error = value, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,28 @@ public interface IJsonRpcResponse
bool IsError { get; }
}

[AlgoApiObject]
[AlgoApiObject(IsStrict = true)]
public partial struct JsonRpcResponse
: IJsonRpcResponse<AlgoApiObject>
, IEquatable<JsonRpcResponse>
{
/// <inheritdoc />
[AlgoApiField("id", null)]
public Optional<ulong> Id { get; set; }

/// <inheritdoc />
[AlgoApiField("jsonrpc", null)]
public string JsonRpc { get; set; }

/// <inheritdoc />
[AlgoApiField("result", null)]
public AlgoApiObject Result { get; set; }

/// <inheritdoc />
[AlgoApiField("error", null)]
public JsonRpcError Error { get; set; }

/// <inheritdoc />
public bool IsError => !Error.Equals(default);

public bool Equals(JsonRpcResponse other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct MultisigMetadata

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.MultisigMetadata>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.MultisigMetadata>().Assign("version", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Version, (ref AlgoSdk.WalletConnect.MultisigMetadata x, System.Byte value) => x.Version = value, false).Assign("threshold", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Threshold, (ref AlgoSdk.WalletConnect.MultisigMetadata x, System.Byte value) => x.Threshold = value, false).Assign("addrs", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Addresses, (ref AlgoSdk.WalletConnect.MultisigMetadata x, AlgoSdk.Address[] value) => x.Addresses = value, AlgoSdk.ArrayComparer<AlgoSdk.Address>.Instance, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.MultisigMetadata>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.MultisigMetadata>(false).Assign("version", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Version, (ref AlgoSdk.WalletConnect.MultisigMetadata x, System.Byte value) => x.Version = value, false).Assign("threshold", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Threshold, (ref AlgoSdk.WalletConnect.MultisigMetadata x, System.Byte value) => x.Threshold = value, false).Assign("addrs", null, (AlgoSdk.WalletConnect.MultisigMetadata x) => x.Addresses, (ref AlgoSdk.WalletConnect.MultisigMetadata x, AlgoSdk.Address[] value) => x.Addresses = value, AlgoSdk.ArrayComparer<AlgoSdk.Address>.Instance, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct NetworkMessage

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.NetworkMessage>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.NetworkMessage>().Assign("topic", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Topic, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Topic = value, AlgoSdk.StringComparer.Instance, false).Assign("type", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Type, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Type = value, AlgoSdk.StringComparer.Instance, false).Assign("payload", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Payload, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Payload = value, AlgoSdk.StringComparer.Instance, false).Assign("silent", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.IsSilent, (ref AlgoSdk.WalletConnect.NetworkMessage x, AlgoSdk.Optional<System.Boolean> value) => x.IsSilent = value, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.NetworkMessage>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.NetworkMessage>(false).Assign("topic", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Topic, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Topic = value, AlgoSdk.StringComparer.Instance, false).Assign("type", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Type, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Type = value, AlgoSdk.StringComparer.Instance, false).Assign("payload", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.Payload, (ref AlgoSdk.WalletConnect.NetworkMessage x, System.String value) => x.Payload = value, AlgoSdk.StringComparer.Instance, false).Assign("silent", null, (AlgoSdk.WalletConnect.NetworkMessage x) => x.IsSilent, (ref AlgoSdk.WalletConnect.NetworkMessage x, AlgoSdk.Optional<System.Boolean> value) => x.IsSilent = value, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct SignTxnsError

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.SignTxnsError>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.SignTxnsError>().Assign("message", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Message, (ref AlgoSdk.WalletConnect.SignTxnsError x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false).Assign("code", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Code, (ref AlgoSdk.WalletConnect.SignTxnsError x, System.Int32 value) => x.Code = value, false).Assign("data", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Data, (ref AlgoSdk.WalletConnect.SignTxnsError x, AlgoSdk.AlgoApiObject value) => x.Data = value, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.SignTxnsError>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.SignTxnsError>(false).Assign("message", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Message, (ref AlgoSdk.WalletConnect.SignTxnsError x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false).Assign("code", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Code, (ref AlgoSdk.WalletConnect.SignTxnsError x, System.Int32 value) => x.Code = value, false).Assign("data", null, (AlgoSdk.WalletConnect.SignTxnsError x) => x.Data, (ref AlgoSdk.WalletConnect.SignTxnsError x, AlgoSdk.AlgoApiObject value) => x.Data = value, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct SignTxnsOpts

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.SignTxnsOpts>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.SignTxnsOpts>().Assign("message", null, (AlgoSdk.WalletConnect.SignTxnsOpts x) => x.Message, (ref AlgoSdk.WalletConnect.SignTxnsOpts x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.SignTxnsOpts>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.SignTxnsOpts>(false).Assign("message", null, (AlgoSdk.WalletConnect.SignTxnsOpts x) => x.Message, (ref AlgoSdk.WalletConnect.SignTxnsOpts x, System.String value) => x.Message = value, AlgoSdk.StringComparer.Instance, false));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial struct WalletConnectSessionData

private static bool @__generated__InitializeAlgoApiFormatters()
{
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.WalletConnectSessionData>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.WalletConnectSessionData>().Assign("peerId", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.PeerId, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.String value) => x.PeerId = value, AlgoSdk.StringComparer.Instance, false).Assign("peerMeta", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.PeerMeta, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, AlgoSdk.WalletConnect.ClientMeta value) => x.PeerMeta = value, false).Assign("approved", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.IsApproved, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.Boolean value) => x.IsApproved = value, false).Assign("chainId", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.ChainId, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.Int32 value) => x.ChainId = value, false).Assign("accounts", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.Accounts, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer<AlgoSdk.Address>.Instance, false));
AlgoSdk.AlgoApiFormatterLookup.Add<AlgoSdk.WalletConnect.WalletConnectSessionData>(new AlgoSdk.AlgoApiObjectFormatter<AlgoSdk.WalletConnect.WalletConnectSessionData>(false).Assign("peerId", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.PeerId, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.String value) => x.PeerId = value, AlgoSdk.StringComparer.Instance, false).Assign("peerMeta", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.PeerMeta, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, AlgoSdk.WalletConnect.ClientMeta value) => x.PeerMeta = value, false).Assign("approved", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.IsApproved, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.Boolean value) => x.IsApproved = value, false).Assign("chainId", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.ChainId, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, System.Int32 value) => x.ChainId = value, false).Assign("accounts", null, (AlgoSdk.WalletConnect.WalletConnectSessionData x) => x.Accounts, (ref AlgoSdk.WalletConnect.WalletConnectSessionData x, AlgoSdk.Address[] value) => x.Accounts = value, AlgoSdk.ArrayComparer<AlgoSdk.Address>.Instance, false));
return true;
}
}
Expand Down
Loading

0 comments on commit d8467c6

Please sign in to comment.