diff --git a/docs/docs.go b/docs/docs.go index 04a0178d..e11e52bc 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1350,6 +1350,7 @@ const docTemplate = `{ "PENDING", "VERIFIED", "ACTIVE", + "SLASHED", "TIMELOCK_UNBONDING", "EARLY_UNBONDING", "TIMELOCK_WITHDRAWABLE", @@ -1359,14 +1360,13 @@ const docTemplate = `{ "TIMELOCK_WITHDRAWN", "EARLY_UNBONDING_WITHDRAWN", "TIMELOCK_SLASHING_WITHDRAWN", - "EARLY_UNBONDING_SLASHING_WITHDRAWN", - "TIMELOCK_SLASHED", - "EARLY_UNBONDING_SLASHED" + "EARLY_UNBONDING_SLASHING_WITHDRAWN" ], "x-enum-varnames": [ "StatePending", "StateVerified", "StateActive", + "StateSlashed", "StateTimelockUnbonding", "StateEarlyUnbonding", "StateTimelockWithdrawable", @@ -1376,9 +1376,7 @@ const docTemplate = `{ "StateTimelockWithdrawn", "StateEarlyUnbondingWithdrawn", "StateTimelockSlashingWithdrawn", - "StateEarlyUnbondingSlashingWithdrawn", - "StateTimelockSlashed", - "StateEarlyUnbondingSlashed" + "StateEarlyUnbondingSlashingWithdrawn" ] } } diff --git a/docs/swagger.json b/docs/swagger.json index 5951d3cd..fc9ca867 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1342,6 +1342,7 @@ "PENDING", "VERIFIED", "ACTIVE", + "SLASHED", "TIMELOCK_UNBONDING", "EARLY_UNBONDING", "TIMELOCK_WITHDRAWABLE", @@ -1351,14 +1352,13 @@ "TIMELOCK_WITHDRAWN", "EARLY_UNBONDING_WITHDRAWN", "TIMELOCK_SLASHING_WITHDRAWN", - "EARLY_UNBONDING_SLASHING_WITHDRAWN", - "TIMELOCK_SLASHED", - "EARLY_UNBONDING_SLASHED" + "EARLY_UNBONDING_SLASHING_WITHDRAWN" ], "x-enum-varnames": [ "StatePending", "StateVerified", "StateActive", + "StateSlashed", "StateTimelockUnbonding", "StateEarlyUnbonding", "StateTimelockWithdrawable", @@ -1368,9 +1368,7 @@ "StateTimelockWithdrawn", "StateEarlyUnbondingWithdrawn", "StateTimelockSlashingWithdrawn", - "StateEarlyUnbondingSlashingWithdrawn", - "StateTimelockSlashed", - "StateEarlyUnbondingSlashed" + "StateEarlyUnbondingSlashingWithdrawn" ] } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 77ea9b8a..21c8ec2d 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -469,6 +469,7 @@ definitions: - PENDING - VERIFIED - ACTIVE + - SLASHED - TIMELOCK_UNBONDING - EARLY_UNBONDING - TIMELOCK_WITHDRAWABLE @@ -479,13 +480,12 @@ definitions: - EARLY_UNBONDING_WITHDRAWN - TIMELOCK_SLASHING_WITHDRAWN - EARLY_UNBONDING_SLASHING_WITHDRAWN - - TIMELOCK_SLASHED - - EARLY_UNBONDING_SLASHED type: string x-enum-varnames: - StatePending - StateVerified - StateActive + - StateSlashed - StateTimelockUnbonding - StateEarlyUnbonding - StateTimelockWithdrawable @@ -496,8 +496,6 @@ definitions: - StateEarlyUnbondingWithdrawn - StateTimelockSlashingWithdrawn - StateEarlyUnbondingSlashingWithdrawn - - StateTimelockSlashed - - StateEarlyUnbondingSlashed info: contact: email: contact@babylonlabs.io diff --git a/internal/v2/types/delegation_states.go b/internal/v2/types/delegation_states.go index 79e4a688..3414c94f 100644 --- a/internal/v2/types/delegation_states.go +++ b/internal/v2/types/delegation_states.go @@ -31,10 +31,6 @@ const ( StateEarlyUnbondingWithdrawn DelegationState = "EARLY_UNBONDING_WITHDRAWN" StateTimelockSlashingWithdrawn DelegationState = "TIMELOCK_SLASHING_WITHDRAWN" StateEarlyUnbondingSlashingWithdrawn DelegationState = "EARLY_UNBONDING_SLASHING_WITHDRAWN" - - // Slashed states - StateTimelockSlashed DelegationState = "TIMELOCK_SLASHED" - StateEarlyUnbondingSlashed DelegationState = "EARLY_UNBONDING_SLASHED" ) // MapDelegationState consumes internal indexer states and maps them to the frontend-facing states diff --git a/tests/mocks/mock_db_client.go b/tests/mocks/mock_db_client.go index e557aff8..b247612e 100644 --- a/tests/mocks/mock_db_client.go +++ b/tests/mocks/mock_db_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.42.1. DO NOT EDIT. +// Code generated by mockery v2.41.0. DO NOT EDIT. package mocks diff --git a/tests/mocks/mock_ordinal_client.go b/tests/mocks/mock_ordinal_client.go index 5d1b3b09..95dff743 100644 --- a/tests/mocks/mock_ordinal_client.go +++ b/tests/mocks/mock_ordinal_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.42.1. DO NOT EDIT. +// Code generated by mockery v2.41.0. DO NOT EDIT. package mocks diff --git a/tests/mocks/mock_v1_db_client.go b/tests/mocks/mock_v1_db_client.go index c4adf0d9..2d0d206b 100644 --- a/tests/mocks/mock_v1_db_client.go +++ b/tests/mocks/mock_v1_db_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.42.1. DO NOT EDIT. +// Code generated by mockery v2.41.0. DO NOT EDIT. package mocks diff --git a/tests/mocks/mock_v2_db_client.go b/tests/mocks/mock_v2_db_client.go index 9796f7c2..27929f3f 100644 --- a/tests/mocks/mock_v2_db_client.go +++ b/tests/mocks/mock_v2_db_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.42.1. DO NOT EDIT. +// Code generated by mockery v2.41.0. DO NOT EDIT. package mocks