Skip to content

Commit

Permalink
feat(taiko-client): remove an unused package (#18668)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Dec 29, 2024
1 parent cbf9c7e commit e1af55a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 51 deletions.
1 change: 1 addition & 0 deletions packages/taiko-client/pkg/rpc/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type EngineClient struct {
*rpc.Client
}

// NewJWTEngineClient creates a new EngineClient with JWT authentication.
func NewJWTEngineClient(url, jwtSecret string) (*EngineClient, error) {
var jwt = StringToBytes32(jwtSecret)
if jwt == (common.Hash{}) || url == "" {
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/pkg/rpc/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ type SignTransactionResult struct {
Tx *types.Transaction `json:"tx"`
}

// FillTransaction fill transaction.
// FillTransaction fills in the missing fields of a transaction and signs it.
func (c *EthClient) FillTransaction(ctx context.Context, args *TransactionArgs) (*types.Transaction, error) {
ctxWithTimeout, cancel := CtxWithTimeoutOrDefault(ctx, c.timeout)
defer cancel()
Expand Down
29 changes: 0 additions & 29 deletions packages/taiko-client/pkg/rpc/fallback.go

This file was deleted.

13 changes: 0 additions & 13 deletions packages/taiko-client/pkg/rpc/fallback_test.go

This file was deleted.

8 changes: 0 additions & 8 deletions packages/taiko-client/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ func Min[T constraints.Integer](a, b T) T {
return b
}

// Max return the maximum value of two integers.
func Max[T constraints.Integer](a, b T) T {
if a > b {
return a
}
return b
}

// Compress compresses the given txList bytes using zlib.
func Compress(txList []byte) ([]byte, error) {
var b bytes.Buffer
Expand Down
1 change: 1 addition & 0 deletions packages/taiko-client/proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {
"lastProposedAt", p.lastProposedAt,
)

// Fetch pending L2 transactions from mempool.
txLists, err := p.fetchPoolContent(filterPoolContent)
if err != nil {
return err
Expand Down

0 comments on commit e1af55a

Please sign in to comment.