-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vstorage)!: separate
x/vstorage
from x/swingset
module
- Loading branch information
1 parent
2e82ef9
commit cf7b993
Showing
45 changed files
with
3,957 additions
and
2,980 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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
syntax = "proto3"; | ||
package agoric.vstorage; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/Agoric/agoric-sdk/golang/cosmos/x/vstorage/types"; | ||
|
||
// The initial or exported state. | ||
message GenesisState { | ||
option (gogoproto.equal) = false; | ||
|
||
repeated DataEntry data = 1 [ | ||
(gogoproto.jsontag) = "data", | ||
(gogoproto.moretags) = "yaml:\"data\"" | ||
]; | ||
} | ||
|
||
// A vstorage entry. | ||
message DataEntry { | ||
string path = 1; | ||
string value = 2; | ||
} |
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,57 @@ | ||
syntax = "proto3"; | ||
package agoric.vstorage; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/query/v1beta1/pagination.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
option go_package = "github.com/Agoric/agoric-sdk/golang/cosmos/x/vstorage/types"; | ||
|
||
service Query { | ||
// Return an arbitrary vstorage datum. | ||
rpc Data(QueryDataRequest) returns (QueryDataResponse) { | ||
option (google.api.http).get = "/agoric/vstorage/data/{path}"; | ||
} | ||
|
||
// Return the keys of a given vstorage path. | ||
rpc Keys(QueryKeysRequest) | ||
returns (QueryKeysResponse) { | ||
option (google.api.http).get = "/agoric/vstorage/keys/{path}"; | ||
} | ||
} | ||
|
||
// QueryDataRequest is the vstorage path data query. | ||
message QueryDataRequest { | ||
repeated string path = 1 [ | ||
(gogoproto.jsontag) = "path", | ||
(gogoproto.moretags) = "yaml:\"path\"" | ||
]; | ||
} | ||
|
||
// QueryDataResponse is the vstorage path data response. | ||
message QueryDataResponse { | ||
string value = 1 [ | ||
(gogoproto.jsontag) = "value", | ||
(gogoproto.moretags) = "yaml:\"value\"" | ||
]; | ||
} | ||
|
||
// QueryKeysRequest is the vstorage path keys query. | ||
message QueryKeysRequest { | ||
repeated string path = 1 [ | ||
(gogoproto.jsontag) = "path", | ||
(gogoproto.moretags) = "yaml:\"path\"" | ||
]; | ||
|
||
cosmos.base.query.v1beta1.PageRequest pagination = 2; | ||
} | ||
|
||
// QueryKeysResponse is the vstorage path keys response. | ||
message QueryKeysResponse { | ||
repeated string keys = 1 [ | ||
(gogoproto.jsontag) = "keys", | ||
(gogoproto.moretags) = "yaml:\"keys\"" | ||
]; | ||
|
||
cosmos.base.query.v1beta1.PageResponse pagination = 2; | ||
} |
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,26 @@ | ||
syntax = "proto3"; | ||
package agoric.vstorage; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/Agoric/agoric-sdk/golang/cosmos/x/vstorage/types"; | ||
|
||
// Data is the vstorage node data. | ||
message Data { | ||
option (gogoproto.equal) = false; | ||
|
||
string value = 1 [ | ||
(gogoproto.jsontag) = "value", | ||
(gogoproto.moretags) = "yaml:\"value\"" | ||
]; | ||
} | ||
|
||
// Keys are the vstorage node subkeys. | ||
message Keys { | ||
option (gogoproto.equal) = false; | ||
|
||
repeated string keys = 1 [ | ||
(gogoproto.jsontag) = "keys", | ||
(gogoproto.moretags) = "yaml:\"keys\"" | ||
]; | ||
} |
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
Oops, something went wrong.