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

Function predicates

crates/execution/txpool/src/validity_authorization.rs:179–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 fn predicates() -> Vec<ValidityPredicate> {
180 vec![
181 ValidityPredicate::Balance {
182 address: Address::repeat_byte(0x22),
183 op: ValidityOperator::GreaterThan,
184 value: U256::from(10),
185 },
186 ValidityPredicate::Storage {
187 address: Address::repeat_byte(0x33),
188 slot: U256::from(7),
189 mask: U256::from(255),
190 op: ValidityOperator::Equal,
191 value: U256::from(1),
192 },
193 ValidityPredicate::BlockNumber {
194 op: ValidityOperator::LessThanOrEqual,
195 value: U256::from(100),
196 },
197 ValidityPredicate::FlashblockIndex {
198 op: ValidityOperator::LessThanOrEqual,
199 value: U256::from(3),
200 },
201 ]
202 }
203
204 fn sign(
205 signer: &PrivateKeySigner,

Calls

no outgoing calls