Skip to content

Commit

Permalink
remove block header state
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Apr 9, 2024
1 parent 901647e commit 4d47803
Show file tree
Hide file tree
Showing 14 changed files with 141 additions and 741 deletions.
2 changes: 2 additions & 0 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54282,6 +54282,7 @@ definitions:
type: boolean
isBtcTypeChainEnabled:
type: boolean
title: 'Deprecated(v16): Use VerificationFlags in the lightclient module instead'
observerChainNonces:
type: object
properties:
Expand Down Expand Up @@ -54360,6 +54361,7 @@ definitions:
$ref: '#/definitions/observerGasPriceIncreaseFlags'
blockHeaderVerificationFlags:
$ref: '#/definitions/observerBlockHeaderVerificationFlags'
title: 'Deprecated(v16): Use VerificationFlags in the lightclient module instead'
observerGasPriceIncreaseFlags:
type: object
properties:
Expand Down
14 changes: 0 additions & 14 deletions proto/observer/block_header.proto

This file was deleted.

4 changes: 4 additions & 0 deletions proto/observer/crosschain_flags.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ message GasPriceIncreaseFlags {
// Maximum number of pending crosschain transactions to check for gas price increase
uint32 maxPendingCctxs = 5;
}

// Deprecated(v16): Use VerificationFlags in the lightclient module instead
message BlockHeaderVerificationFlags {
bool isEthTypeChainEnabled = 1;
bool isBtcTypeChainEnabled = 2;
Expand All @@ -30,6 +32,8 @@ message CrosschainFlags {
bool isInboundEnabled = 1;
bool isOutboundEnabled = 2;
GasPriceIncreaseFlags gasPriceIncreaseFlags = 3;

// Deprecated(v16): Use VerificationFlags in the lightclient module instead
BlockHeaderVerificationFlags blockHeaderVerificationFlags = 4;
}

Expand Down
1 change: 0 additions & 1 deletion proto/observer/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "observer/ballot.proto";
import "observer/blame.proto";
import "observer/block_header.proto";
import "observer/chain_nonces.proto";
import "observer/crosschain_flags.proto";
import "observer/keygen.proto";
Expand Down
30 changes: 0 additions & 30 deletions testutil/keeper/mocks/crosschain/observer.go

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

47 changes: 0 additions & 47 deletions typescript/observer/block_header_pb.d.ts

This file was deleted.

4 changes: 4 additions & 0 deletions typescript/observer/crosschain_flags_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export declare class GasPriceIncreaseFlags extends Message<GasPriceIncreaseFlags
}

/**
* Deprecated(v16): Use VerificationFlags in the lightclient module instead
*
* @generated from message zetachain.zetacore.observer.BlockHeaderVerificationFlags
*/
export declare class BlockHeaderVerificationFlags extends Message<BlockHeaderVerificationFlags> {
Expand Down Expand Up @@ -104,6 +106,8 @@ export declare class CrosschainFlags extends Message<CrosschainFlags> {
gasPriceIncreaseFlags?: GasPriceIncreaseFlags;

/**
* Deprecated(v16): Use VerificationFlags in the lightclient module instead
*
* @generated from field: zetachain.zetacore.observer.BlockHeaderVerificationFlags blockHeaderVerificationFlags = 4;
*/
blockHeaderVerificationFlags?: BlockHeaderVerificationFlags;
Expand Down
1 change: 0 additions & 1 deletion typescript/observer/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from "./ballot_pb";
export * from "./blame_pb";
export * from "./block_header_pb";
export * from "./chain_nonces_pb";
export * from "./crosschain_flags_pb";
export * from "./events_pb";
Expand Down
1 change: 0 additions & 1 deletion x/crosschain/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type ObserverKeeper interface {
IsNonTombstonedObserver(ctx sdk.Context, address string) bool
FindBallot(ctx sdk.Context, index string, chain *chains.Chain, observationType observertypes.ObservationType) (ballot observertypes.Ballot, isNew bool, err error)
AddBallotToList(ctx sdk.Context, ballot observertypes.Ballot)
GetBlockHeader(ctx sdk.Context, hash []byte) (val proofs.BlockHeader, found bool)
CheckIfTssPubkeyHasBeenGenerated(ctx sdk.Context, tssPubkey string) (observertypes.TSS, bool)
GetAllTSS(ctx sdk.Context) (list []observertypes.TSS)
GetTSS(ctx sdk.Context) (val observertypes.TSS, found bool)
Expand Down
55 changes: 0 additions & 55 deletions x/observer/keeper/block_header.go

This file was deleted.

32 changes: 0 additions & 32 deletions x/observer/keeper/block_header_test.go

This file was deleted.

Loading

0 comments on commit 4d47803

Please sign in to comment.