forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): Bump github.com/cosmos/iavl from 1.0.1 to 1.1.1 in store (…
…cosmos#19770) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Cool Developer <[email protected]> Co-authored-by: marbar3778 <[email protected]> Co-authored-by: Julien Robert <[email protected]>
- Loading branch information
1 parent
1ad7fad
commit ff30f6e
Showing
10 changed files
with
89 additions
and
47 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
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,34 @@ | ||
package wrapper | ||
|
||
import ( | ||
dbm "github.com/cosmos/cosmos-db" | ||
idb "github.com/cosmos/iavl/db" | ||
) | ||
|
||
var _ idb.DB = &DBWrapper{} | ||
|
||
// DBwrapper is a simple wrapper of dbm.DB that implements the iavl.DB interface. | ||
type DBWrapper struct { | ||
dbm.DB | ||
} | ||
|
||
// NewDBWrapper creates a new DBWrapper instance. | ||
func NewDBWrapper(db dbm.DB) *DBWrapper { | ||
return &DBWrapper{db} | ||
} | ||
|
||
func (dbw *DBWrapper) NewBatch() idb.Batch { | ||
return dbw.DB.NewBatch() | ||
} | ||
|
||
func (dbw *DBWrapper) NewBatchWithSize(size int) idb.Batch { | ||
return dbw.DB.NewBatchWithSize(size) | ||
} | ||
|
||
func (dbw *DBWrapper) Iterator(start, end []byte) (idb.Iterator, error) { | ||
return dbw.DB.Iterator(start, end) | ||
} | ||
|
||
func (dbw *DBWrapper) ReverseIterator(start, end []byte) (idb.Iterator, error) { | ||
return dbw.DB.ReverseIterator(start, end) | ||
} |