pub type CoinPredicate = Coin<Predicate>;
Aliased Type§
struct CoinPredicate {
pub utxo_id: UtxoId,
pub owner: Address,
pub amount: u64,
pub asset_id: AssetId,
pub tx_pointer: TxPointer,
pub witness_index: Empty<u16>,
pub predicate_gas_used: u64,
pub predicate: PredicateCode,
pub predicate_data: Vec<u8>,
}
Fields§
§utxo_id: UtxoId
§owner: Address
§amount: u64
§asset_id: AssetId
§tx_pointer: TxPointer
§witness_index: Empty<u16>
§predicate_gas_used: u64
Exact amount of gas used by the predicate. If the predicate consumes different amount of gas, it’s considered to be false.
predicate: PredicateCode
§predicate_data: Vec<u8>