-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathContractInfo.cs
32 lines (28 loc) · 1.04 KB
/
ContractInfo.cs
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
using SolcNet.DataDescription.Output;
namespace Meadow.SolCodeGen
{
class ContractInfo
{
public readonly string SolFile;
public readonly string ContractName;
public readonly SolcNet.DataDescription.Output.Contract ContractOutput;
public readonly byte[] Hash;
public readonly string Bytecode;
public ContractInfo(string solFile, string contractName, SolcNet.DataDescription.Output.Contract contractOutput, byte[] hash, string bytecode)
{
SolFile = solFile;
ContractName = contractName;
ContractOutput = contractOutput;
Hash = hash;
Bytecode = bytecode;
}
public void Deconstruct(out string solFile, out string contractName, out SolcNet.DataDescription.Output.Contract contractOuput, out byte[] hash, out string bytecode)
{
solFile = SolFile;
contractName = ContractName;
contractOuput = ContractOutput;
hash = Hash;
bytecode = Bytecode;
}
}
}