Skip to content

Commit

Permalink
Bump casper-types dependency (#338)
Browse files Browse the repository at this point in the history
* Bump casper-types dependency

* Allow audit exception due to no fix available
  • Loading branch information
jacek-casper authored Aug 20, 2024
1 parent 476600b commit 83bdb66
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-casper-event-sidecar-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
# Hope to get to here:
# run: cargo audit --deny warnings
# RUSTSEC-2023-0071 - there is a transitive audit issue via sqlx. There is no fix for that yet, we should update dependencies once a fix is presented
run: cargo audit --ignore RUSTSEC-2023-0071
# RUSTSEC-2024-0363 - issue in sqlx 0.8.0, no fix available yet
run: cargo audit --ignore RUSTSEC-2023-0071 --ignore RUSTSEC-2024-0363

- name: test
run: cargo test
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions resources/test/rpc_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3674,6 +3674,20 @@
"enum": [
"ChangeBidPublicKey"
]
},
{
"description": "The `add_reservations` native entry point, used to add delegator to validator's reserve list",
"type": "string",
"enum": [
"AddReservations"
]
},
{
"description": "The `cancel_reservations` native entry point, used to remove delegator from validator's reserve list",
"type": "string",
"enum": [
"CancelReservations"
]
}
]
},
Expand Down Expand Up @@ -4940,6 +4954,19 @@
}
},
"additionalProperties": false
},
{
"description": "Reservation",
"type": "object",
"required": [
"Reservation"
],
"properties": {
"Reservation": {
"$ref": "#/components/schemas/Reservation"
}
},
"additionalProperties": false
}
]
},
Expand All @@ -4952,6 +4979,7 @@
"inactive",
"maximum_delegation_amount",
"minimum_delegation_amount",
"reserved_slots",
"staked_amount",
"validator_public_key"
],
Expand Down Expand Up @@ -5012,6 +5040,12 @@
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"reserved_slots": {
"description": "Slots reserved for specific delegators",
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
Expand Down Expand Up @@ -5088,6 +5122,40 @@
},
"additionalProperties": false
},
"Reservation": {
"description": "Represents a validator reserving a slot for specific delegator",
"type": "object",
"required": [
"delegation_rate",
"delegator_public_key",
"validator_public_key"
],
"properties": {
"delegator_public_key": {
"description": "Delegator public key",
"allOf": [
{
"$ref": "#/components/schemas/PublicKey"
}
]
},
"validator_public_key": {
"description": "Validator public key",
"allOf": [
{
"$ref": "#/components/schemas/PublicKey"
}
]
},
"delegation_rate": {
"description": "Individual delegation rate",
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
},
"additionalProperties": false
},
"ExecutionResultV2": {
"description": "The result of executing a single transaction.",
"type": "object",
Expand Down
68 changes: 68 additions & 0 deletions resources/test/speculative_rpc_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,19 @@
}
},
"additionalProperties": false
},
{
"description": "Reservation",
"type": "object",
"required": [
"Reservation"
],
"properties": {
"Reservation": {
"$ref": "#/components/schemas/Reservation"
}
},
"additionalProperties": false
}
]
},
Expand All @@ -2949,6 +2962,7 @@
"inactive",
"maximum_delegation_amount",
"minimum_delegation_amount",
"reserved_slots",
"staked_amount",
"validator_public_key"
],
Expand Down Expand Up @@ -3009,6 +3023,12 @@
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"reserved_slots": {
"description": "Slots reserved for specific delegators",
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
Expand Down Expand Up @@ -3085,6 +3105,40 @@
},
"additionalProperties": false
},
"Reservation": {
"description": "Represents a validator reserving a slot for specific delegator",
"type": "object",
"required": [
"delegation_rate",
"delegator_public_key",
"validator_public_key"
],
"properties": {
"delegator_public_key": {
"description": "Delegator public key",
"allOf": [
{
"$ref": "#/components/schemas/PublicKey"
}
]
},
"validator_public_key": {
"description": "Validator public key",
"allOf": [
{
"$ref": "#/components/schemas/PublicKey"
}
]
},
"delegation_rate": {
"description": "Individual delegation rate",
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
},
"additionalProperties": false
},
"Package": {
"description": "Entity definition, metadata, and security container.",
"type": "object",
Expand Down Expand Up @@ -4118,6 +4172,20 @@
"enum": [
"ChangeBidPublicKey"
]
},
{
"description": "The `add_reservations` native entry point, used to add delegator to validator's reserve list",
"type": "string",
"enum": [
"AddReservations"
]
},
{
"description": "The `cancel_reservations` native entry point, used to remove delegator from validator's reserve list",
"type": "string",
"enum": [
"CancelReservations"
]
}
]
},
Expand Down

0 comments on commit 83bdb66

Please sign in to comment.