forked from Nethereum/Nethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypedData.cs
More file actions
42 lines (35 loc) · 1 KB
/
TypedData.cs
File metadata and controls
42 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Nethereum.ABI.FunctionEncoding.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NethereumWCAvalonia
{
[Struct("Mail")]
public class Mail
{
[Parameter("tuple", "from", 1, "Person")]
public Person From { get; set; }
[Parameter("tuple[]", "to", 2, "Person[]")]
public List<Person> To { get; set; }
[Parameter("string", "contents", 3)]
public string Contents { get; set; }
}
[Struct("Person")]
public class Person
{
[Parameter("string", "name", 1)]
public string Name { get; set; }
[Parameter("address[]", "wallets", 2)]
public List<string> Wallets { get; set; }
}
[Struct("Group")]
public class Group
{
[Parameter("string", "name", 1)]
public string Name { get; set; }
[Parameter("tuple[]", "members", 2, "Person[]")]
public List<Person> Members { get; set; }
}
}