revive_solc_json_interface/standard_json/output/contract/evm/
bytecode.rs1use serde::Deserialize;
4use serde::Serialize;
5
6#[derive(Debug, Serialize, Deserialize, Clone)]
8#[serde(rename_all = "camelCase")]
9pub struct Bytecode {
10 pub object: String,
12}
13
14impl Bytecode {
15 pub fn new(object: String) -> Self {
17 Self { object }
18 }
19}
20
21#[derive(Debug, Serialize, Deserialize, Clone)]
23#[serde(rename_all = "camelCase")]
24pub struct DeployedBytecode {
25 pub object: String,
27}
28
29impl DeployedBytecode {
30 pub fn new(object: String) -> Self {
32 Self { object }
33 }
34}