Skip to content

Commit

Permalink
implement panic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Faulty Tolly committed Nov 22, 2024
1 parent 5d46ffd commit 340d0e3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions da/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"strconv"

"cosmossdk.io/math"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

Expand Down Expand Up @@ -155,6 +156,8 @@ func (d *DataAvailabilityLayerClient) RetrieveBatches(daMetaData *da.DASubmitMet
}

func (d *DataAvailabilityLayerClient) GetSignerBalance() (*da.Balance, error) {
//TODO implement me
panic("implement me")
return &da.Balance{
Amount: math.ZeroInt(),
Denom: "adym",
}, nil
}
7 changes: 5 additions & 2 deletions da/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"sync/atomic"
"time"

"cosmossdk.io/math"
"github.com/dymensionxyz/dymint/da"
"github.com/dymensionxyz/dymint/store"
"github.com/dymensionxyz/dymint/types"
Expand Down Expand Up @@ -183,6 +184,8 @@ func (d *DataAvailabilityLayerClient) GetMaxBlobSizeBytes() uint32 {
}

func (m *DataAvailabilityLayerClient) GetSignerBalance() (*da.Balance, error) {
//TODO implement me
panic("implement me")
return &da.Balance{
Amount: math.ZeroInt(),
Denom: "adym",
}, nil
}
7 changes: 5 additions & 2 deletions settlement/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"sync/atomic"
"time"

"cosmossdk.io/math"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down Expand Up @@ -397,6 +398,8 @@ func (c *Client) retrieveBatchAtStateIndex(slStateIndex uint64) (*settlement.Res
}

func (c *Client) GetSignerBalance() (*types.Balance, error) {
//TODO implement me
panic("implement me")
return &types.Balance{
Amount: math.ZeroInt(),
Denom: "adym",
}, nil
}
7 changes: 5 additions & 2 deletions settlement/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"sync"
"time"

"cosmossdk.io/math"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down Expand Up @@ -346,6 +347,8 @@ func keyFromIndex(ix uint64) []byte {
}

func (c *Client) GetSignerBalance() (*types.Balance, error) {
//TODO implement me
panic("implement me")
return &types.Balance{
Amount: math.ZeroInt(),
Denom: "adym",
}, nil
}

0 comments on commit 340d0e3

Please sign in to comment.