MCPcopy Create free account
hub / github.com/base/base / create_deploy_payload

Method create_deploy_payload

crates/execution/flashblocks-node/tests/eth_call_erc20.rs:98–121  ·  view source on GitHub ↗

Create flashblock payload with token deployment

(&self)

Source from the content-addressed store, hash-verified

96
97 /// Create flashblock payload with token deployment
98 fn create_deploy_payload(&self) -> Flashblock {
99 let mut transactions = vec![self.token_deploy_tx.clone()];
100 if let Some(proxy_tx) = &self.proxy_deploy_tx {
101 transactions.push(proxy_tx.clone());
102 }
103
104 Flashblock {
105 payload_id: PayloadId::new([0; 8]),
106 index: 1,
107 base: None,
108 diff: ExecutionPayloadFlashblockDeltaV1 {
109 state_root: B256::default(),
110 receipts_root: B256::default(),
111 gas_used: 700_000,
112 block_hash: B256::default(),
113 blob_gas_used: Some(0),
114 transactions,
115 withdrawals: Vec::new(),
116 logs_bloom: Default::default(),
117 withdrawals_root: Default::default(),
118 },
119 metadata: Metadata::new(1),
120 }
121 }
122
123 /// Create flashblock payload with mint transaction
124 fn create_mint_payload(&self, mint_tx: Bytes) -> Flashblock {

Callers 1

send_base_and_deployMethod · 0.80

Calls 2

pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected