forked from dymensionxyz/dymint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rpc): add da, rollapp params to status query (dymensionxyz#1324)
- Loading branch information
Showing
11 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package stub | ||
|
||
import ( | ||
"github.com/dymensionxyz/dymint/da" | ||
"github.com/dymensionxyz/dymint/store" | ||
"github.com/dymensionxyz/dymint/types" | ||
"github.com/tendermint/tendermint/libs/pubsub" | ||
) | ||
|
||
var _ da.DataAvailabilityLayerClient = &Layer{} | ||
|
||
type Layer struct{} | ||
|
||
func (l Layer) Init(config []byte, pubsubServer *pubsub.Server, kvStore store.KV, logger types.Logger, options ...da.Option) error { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) DAPath() string { | ||
return "" | ||
} | ||
|
||
func (l Layer) Start() error { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) Stop() error { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) SubmitBatch(batch *types.Batch) da.ResultSubmitBatch { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) GetClientType() da.Client { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) CheckBatchAvailability(daMetaData *da.DASubmitMetaData) da.ResultCheckBatch { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) WaitForSyncing() { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) GetMaxBlobSizeBytes() uint32 { | ||
panic("implement me") | ||
} | ||
|
||
func (l Layer) GetSignerBalance() (da.Balance, error) { | ||
panic("implement me") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package types | ||
|
||
import ( | ||
"github.com/dymensionxyz/dymint/types/pb/dymint" | ||
abci "github.com/tendermint/tendermint/abci/types" | ||
) | ||
|
||
type RollappParams struct { | ||
Params *dymint.RollappParams | ||
} | ||
|
||
func RollappParamsToABCI(r dymint.RollappParams) abci.RollappParams { | ||
ret := abci.RollappParams{} | ||
ret.Da = r.Da | ||
ret.DrsVersion = r.DrsVersion | ||
return ret | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters