Skip to content

Commit

Permalink
unify cost models
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Oct 24, 2024
1 parent 7541d9c commit 79ef561
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions pallas-txbuilder/src/scriptdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,6 @@ mod tests {
]
});

pub static COST_MODEL_PLUTUS_V2_PREPROD: LazyLock<Vec<i64>> = LazyLock::new(|| {
vec![
205665, 812, 1, 1, 1000, 571, 0, 1, 1000, 24177, 4, 1, 1000, 32, 117366, 10475, 4,
23000, 100, 23000, 100, 23000, 100, 23000, 100, 23000, 100, 23000, 100, 100, 100,
23000, 100, 19537, 32, 175354, 32, 46417, 4, 221973, 511, 0, 1, 89141, 32, 497525,
14068, 4, 2, 196500, 453240, 220, 0, 1, 1, 1000, 28662, 4, 2, 245000, 216773, 62, 1,
1060367, 12586, 1, 208512, 421, 1, 187000, 1000, 52998, 1, 80436, 32, 43249, 32, 1000,
32, 80556, 1, 57667, 4, 1000, 10, 197145, 156, 1, 197145, 156, 1, 204924, 473, 1,
208896, 511, 1, 52467, 32, 64832, 32, 65493, 32, 22558, 32, 16563, 32, 76511, 32,
196500, 453240, 220, 0, 1, 1, 69522, 11687, 0, 1, 60091, 32, 196500, 453240, 220, 0, 1,
1, 196500, 453240, 220, 0, 1, 1, 1159724, 392670, 0, 2, 806990, 30482, 4, 1927926,
82523, 4, 265318, 0, 4, 0, 85931, 32, 205665, 812, 1, 1, 41182, 32, 212342, 32, 31220,
32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 35892428, 10, 57996947, 18975, 10,
38887044, 32947, 10,
]
});

const TEST_VECTORS: LazyLock<Vec<(Vec<u8>, LanguageView)>> = LazyLock::new(|| {
vec![
(
Expand All @@ -132,7 +115,7 @@ mod tests {
),
(
hex::decode(include_str!("../../test_data/hydra-init.tx")).unwrap(),
LanguageView(1, COST_MODEL_PLUTUS_V2_PREPROD.clone()),
LanguageView(1, COST_MODEL_PLUTUS_V2.clone()),
),
]
});
Expand Down

0 comments on commit 79ef561

Please sign in to comment.