-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from CosmWasm/storage-skeleton
Set up `cw-storage-plus` outline
- Loading branch information
Showing
12 changed files
with
72 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Introduction | ||
|
||
TODO: Describe what low-level interface `cw-storage-plus` builds on, and how it | ||
provides typed abstractions on top of it |
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,8 @@ | ||
{ | ||
"basics": "Basics", | ||
"containers": "Containers", | ||
"key-collisions": "Key collisions", | ||
"iteration": "Iteration", | ||
"snapshots": "Snapshots", | ||
"multi-indexes": "Multi index collections" | ||
} |
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,4 @@ | ||
# Basics | ||
|
||
TODO: Describe the way storage containers generally work, how prefixes provide a | ||
"slice" of the whole namespace, etc |
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,5 @@ | ||
{ | ||
"item": "Item", | ||
"map": "Map", | ||
"deque": "Deque" | ||
} |
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,7 @@ | ||
# `Deque` | ||
|
||
## Overview | ||
|
||
## Examples | ||
|
||
### ? |
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,9 @@ | ||
# `Item` | ||
|
||
## Overview | ||
|
||
## Examples | ||
|
||
### Saving an admin address | ||
|
||
### Saving a config structure |
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,7 @@ | ||
# `Map` | ||
|
||
## Overview | ||
|
||
## Examples | ||
|
||
### Keeping users' balances |
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,9 @@ | ||
# Iteration | ||
|
||
TODO: how to generally take advantage of iteration | ||
|
||
TODO: bounds, inclusive-exclusive | ||
|
||
TODO: `Map` iteration - surprising behavior with order and bounds? | ||
|
||
TODO: how to use `Prefix` and such |
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,12 @@ | ||
import { Callout } from "nextra/components"; | ||
|
||
# Key collisions | ||
|
||
TODO: Explain how key collisions shouldn't generally happen as long as unique | ||
prefixes are chosen | ||
|
||
<Callout type="warning"> | ||
Warning here about a potential nefarious key collision below | ||
</Callout> | ||
|
||
https://confio.slack.com/archives/C06A73TKXST/p1709815517501709 |
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,3 @@ | ||
# Multi index collections | ||
|
||
TODO: bonus section, maybe flesh out, maybe remove |
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,3 @@ | ||
# Snapshots | ||
|
||
TODO: bonus section, maybe flesh out, maybe remove |