feat: add AllocateVault HTTP endpoint

This commit is contained in:
Prad Nukala
2024-09-26 13:09:21 -04:00
parent 467d1c9b27
commit 6aacee387f
5 changed files with 263 additions and 80 deletions
+1
View File
@@ -19,3 +19,4 @@ lint:
- FILE_OPTIONS_REQUIRE_GO_PACKAGE
- FILE_OPTIONS_REQUIRE_GO_PACKAGE
- PACKAGE_VERSION_SUFFIX
- IMPORT_NO_PUBLIC
+4 -1
View File
@@ -4,6 +4,7 @@ package vault.v1;
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "vault/v1/genesis.proto";
option go_package = "github.com/onsonr/sonr/x/vault/types";
@@ -14,7 +15,9 @@ service Msg {
// AllocateVault assembles a sqlite3 database in a local directory and returns
// the CID of the database. this operation is called by services initiating a
// controller registration.
rpc AllocateVault(MsgAllocateVault) returns (MsgAllocateVaultResponse);
rpc AllocateVault(MsgAllocateVault) returns (MsgAllocateVaultResponse) {
option (google.api.http).post = "/vault/v1/allocate";
}
// UpdateParams defines a governance operation for updating the parameters.
//