@@ -7,11 +7,11 @@ import (
77 "testing"
88
99 "github.com/celestiaorg/go-square/v3/share"
10+ "github.com/evstack/ev-node/da/newjsonrpc"
1011 "github.com/rs/zerolog"
1112 "github.com/stretchr/testify/assert"
1213 "github.com/stretchr/testify/require"
1314
14- celestia "github.com/evstack/ev-node/da/celestia"
1515 "github.com/evstack/ev-node/pkg/blob"
1616)
1717
@@ -21,7 +21,7 @@ type mockCelestiaBlobAPI struct {
2121 blobs []* blob.Blob
2222 proof * blob.Proof
2323 included bool
24- commitProof * celestia .CommitmentProof
24+ commitProof * newjsonrpc .CommitmentProof
2525}
2626
2727func (m * mockCelestiaBlobAPI ) Submit (ctx context.Context , blobs []* blob.Blob , opts * blob.SubmitOptions ) (uint64 , error ) {
@@ -40,25 +40,25 @@ func (m *mockCelestiaBlobAPI) Included(ctx context.Context, height uint64, names
4040 return m .included , m .submitErr
4141}
4242
43- func (m * mockCelestiaBlobAPI ) GetCommitmentProof (ctx context.Context , height uint64 , namespace share.Namespace , shareCommitment []byte ) (* celestia .CommitmentProof , error ) {
43+ func (m * mockCelestiaBlobAPI ) GetCommitmentProof (ctx context.Context , height uint64 , namespace share.Namespace , shareCommitment []byte ) (* newjsonrpc .CommitmentProof , error ) {
4444 return m .commitProof , m .submitErr
4545}
4646
47- func (m * mockCelestiaBlobAPI ) Subscribe (ctx context.Context , namespace share.Namespace ) (<- chan * celestia .SubscriptionResponse , error ) {
48- ch := make (chan * celestia .SubscriptionResponse )
47+ func (m * mockCelestiaBlobAPI ) Subscribe (ctx context.Context , namespace share.Namespace ) (<- chan * newjsonrpc .SubscriptionResponse , error ) {
48+ ch := make (chan * newjsonrpc .SubscriptionResponse )
4949 close (ch )
5050 return ch , nil
5151}
5252
53- func makeCelestiaClient (m * mockCelestiaBlobAPI ) * celestia .Client {
54- var api celestia .BlobAPI
53+ func makeCelestiaClient (m * mockCelestiaBlobAPI ) * newjsonrpc .Client {
54+ var api newjsonrpc .BlobAPI
5555 api .Internal .Submit = m .Submit
5656 api .Internal .GetAll = m .GetAll
5757 api .Internal .GetProof = m .GetProof
5858 api .Internal .Included = m .Included
5959 api .Internal .GetCommitmentProof = m .GetCommitmentProof
6060 api .Internal .Subscribe = m .Subscribe
61- return & celestia .Client {Blob : api }
61+ return & newjsonrpc .Client {Blob : api }
6262}
6363
6464func TestCelestiaClient_Submit_ErrorMapping (t * testing.T ) {
0 commit comments