chore: add markdownlint to lint commands (#9353)
* add markdownlint config * update make lint commands * update markdownlint config * run make lint-fix * fix empty link * resuse docker container * run lint-fix * do not echo commands Co-authored-by: ryanchrypto <12519942+ryanchrypto@users.noreply.github.com>
This commit is contained in:
co-authored by
ryanchrypto
parent
b56e1a164b
commit
cb66c99eab
+3
-4
@@ -2,7 +2,7 @@
|
||||
|
||||
## CacheKV
|
||||
|
||||
`cachekv.Store` is a wrapper `KVStore` which provides buffered writing / cached reading functionalities over the underlying `KVStore`.
|
||||
`cachekv.Store` is a wrapper `KVStore` which provides buffered writing / cached reading functionalities over the underlying `KVStore`.
|
||||
|
||||
```go
|
||||
type Store struct {
|
||||
@@ -50,7 +50,7 @@ type Store struct {
|
||||
|
||||
## IAVL
|
||||
|
||||
`iavl.Store` is a base-layer self-balancing merkle tree. It is guaranteed that
|
||||
`iavl.Store` is a base-layer self-balancing merkle tree. It is guaranteed that
|
||||
|
||||
1. Get & set operations are `O(log n)`, where `n` is the number of elements in the tree
|
||||
2. Iteration efficiently returns the sorted elements within the range
|
||||
@@ -72,7 +72,6 @@ type Store struct {
|
||||
|
||||
When each `KVStore` methods are called, `gaskv.Store` automatically consumes appropriate amount of gas depending on the `Store.gasConfig`.
|
||||
|
||||
|
||||
## Prefix
|
||||
|
||||
`prefix.Store` is a wrapper `KVStore` which provides automatic key-prefixing functionalities over the underlying `KVStore`.
|
||||
@@ -112,7 +111,7 @@ type traceOperation struct {
|
||||
Key string
|
||||
Value string
|
||||
Metadata map[string]interface{}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
`traceOperation.Metadata` is filled with `Store.context` when it is not nil. `TraceContext` is a `map[string]interface{}`.
|
||||
|
||||
Reference in New Issue
Block a user