forked from dydxprotocol/v4-chain
-
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.
[TRA-86] scaffold x/vault (dydxprotocol#1148)
* scaffold x/vault Signed-off-by: Eric <eric.warehime@gmail.com>
- Loading branch information
1 parent
0eca041
commit b5870d5
Showing
33 changed files
with
1,012 additions
and
112 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
42 changes: 42 additions & 0 deletions
42
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/genesis.ts
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,42 @@ | ||
import * as _m0 from "protobufjs/minimal"; | ||
import { DeepPartial } from "../../helpers"; | ||
/** GenesisState defines `x/vault`'s genesis state. */ | ||
|
||
export interface GenesisState {} | ||
/** GenesisState defines `x/vault`'s genesis state. */ | ||
|
||
export interface GenesisStateSDKType {} | ||
|
||
function createBaseGenesisState(): GenesisState { | ||
return {}; | ||
} | ||
|
||
export const GenesisState = { | ||
encode(_: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { | ||
return writer; | ||
}, | ||
|
||
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGenesisState(); | ||
|
||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
|
||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
|
||
return message; | ||
}, | ||
|
||
fromPartial(_: DeepPartial<GenesisState>): GenesisState { | ||
const message = createBaseGenesisState(); | ||
return message; | ||
} | ||
|
||
}; |
18 changes: 18 additions & 0 deletions
18
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.rpc.Query.ts
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,18 @@ | ||
import { Rpc } from "../../helpers"; | ||
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; | ||
/** Query defines the gRPC querier service. */ | ||
|
||
export interface Query {} | ||
export class QueryClientImpl implements Query { | ||
private readonly rpc: Rpc; | ||
|
||
constructor(rpc: Rpc) { | ||
this.rpc = rpc; | ||
} | ||
|
||
} | ||
export const createRpcQueryExtension = (base: QueryClient) => { | ||
const rpc = createProtobufRpcClient(base); | ||
const queryService = new QueryClientImpl(rpc); | ||
return {}; | ||
}; |
1 change: 1 addition & 0 deletions
1
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.ts
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 @@ | ||
export {} |
1 change: 1 addition & 0 deletions
1
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.ts
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 @@ | ||
export {} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import * as _98 from "./gogo"; | ||
export const gogoproto = { ..._98 | ||
import * as _101 from "./gogo"; | ||
export const gogoproto = { ..._101 | ||
}; |
Oops, something went wrong.