Example #1
0
 //The generic EIP712 Typed schema defintion for this message
 public TypedData <GnosisSafeEIP712Domain> GetGnosisSafeTypedDefinition(BigInteger chainId, string verifyingContractAddress)
 {
     return(new TypedData <GnosisSafeEIP712Domain>
     {
         Domain = new GnosisSafeEIP712Domain
         {
             ChainId = chainId,
             VerifyingContract = verifyingContractAddress
         },
         Types = MemberDescriptionFactory.GetTypesMemberDescription(typeof(GnosisSafeEIP712Domain), typeof(EncodeTransactionDataFunction)),
         PrimaryType = "SafeTx",
     });
 }
 //The generic EIP712 Typed schema defintion for this message
 public TypedData <Domain> GetMailTypedDefinition()
 {
     return(new TypedData <Domain>
     {
         Domain = new Domain
         {
             Name = "Ether Mail",
             Version = "1",
             ChainId = 1,
             VerifyingContract = "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
         },
         Types = MemberDescriptionFactory.GetTypesMemberDescription(typeof(Domain), typeof(Group), typeof(Mail), typeof(Person)),
         PrimaryType = nameof(Mail),
     });
 }