#189 Predeployed Contracts functionality (#218)

* Added a possibility to predeploy contracts to the genesis block
* Added some default contracts to predeploy.
This commit is contained in:
Nikita Khateev
2024-06-12 09:35:05 +04:00
committed by GitHub
parent b080293cdb
commit 26c49797cb
16 changed files with 1390 additions and 26 deletions
+15
View File
@@ -0,0 +1,15 @@
use serde::Deserialize;
use super::{abi::AbiItem, deserialize_bytecode};
#[derive(Deserialize)]
pub struct ForgeContract {
pub abi: Vec<AbiItem>,
pub bytecode: ForgeBytecode,
}
#[derive(Deserialize)]
pub struct ForgeBytecode {
#[serde(deserialize_with = "deserialize_bytecode")]
pub object: Vec<u8>,
}