Skip to content

Commit

Permalink
Merge #5010
Browse files Browse the repository at this point in the history
5010: Make prepayment naming consistent r=EdHastingsCasperAssociation a=wojcik91

Make naming around future prepayment functionality more consistent:

- rename `StoredValue::Prepaid` to `StoredValue::Prepayment`.
- rename `StoredValueTag::Reservation` to `StoredValueTag::Prepayment`.
- rename `PrepaidKind` to `PrepaymentKind`.
- remove references to reservations in comments etc

Closes #4970


Co-authored-by: Maciej Wójcik <[email protected]>
  • Loading branch information
casperlabs-bors-ng[bot] and Maciej Wójcik authored Dec 11, 2024
2 parents 5d68b73 + 139bb68 commit c881b11
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 1,277 deletions.
2 changes: 1 addition & 1 deletion execution_engine/src/runtime_context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ where
| StoredValue::ContractWasm(_)
| StoredValue::MessageTopic(_)
| StoredValue::Message(_)
| StoredValue::Prepaid(_)
| StoredValue::Prepayment(_)
| StoredValue::EntryPoint(_)
| StoredValue::RawBytes(_) => Ok(()),
}
Expand Down
10 changes: 5 additions & 5 deletions resources/test/sse_data_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3890,14 +3890,14 @@
"additionalProperties": false
},
{
"description": "A reservation record.",
"description": "A prepayment record.",
"type": "object",
"required": [
"Prepaid"
"Prepayment"
],
"properties": {
"Prepaid": {
"$ref": "#/definitions/PrepaidKind"
"Prepayment": {
"$ref": "#/definitions/PrepaymentKind"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -4763,7 +4763,7 @@
}
}
},
"PrepaidKind": {
"PrepaymentKind": {
"description": "Container for bytes recording location, type and data for a gas pre payment",
"type": "object",
"required": [
Expand Down
Loading

0 comments on commit c881b11

Please sign in to comment.