zinkc/
artifact.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Zink compiler artifact

use crate::Config;
use zabi::Abi;

/// Zink compiler artifact
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Default, Debug)]
pub struct Artifact {
    /// Contract ABIs
    pub abi: Vec<Abi>,
    /// Compiler configuration.
    pub config: Config,
    /// Runtime bytecode of the contract.
    pub runtime_bytecode: Vec<u8>,
}