Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump casper-types dependency #338

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading