-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add x/vault protos
- Loading branch information
Showing
18 changed files
with
1,685 additions
and
126 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
24 changes: 24 additions & 0 deletions
24
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.rpc.msg.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,24 @@ | ||
import { Rpc } from "../../helpers"; | ||
import * as _m0 from "protobufjs/minimal"; | ||
import { MsgDepositToVault, MsgDepositToVaultResponse } from "./tx"; | ||
/** Msg defines the Msg service. */ | ||
|
||
export interface Msg { | ||
/** DepositToVault deposits funds into a vault. */ | ||
depositToVault(request: MsgDepositToVault): Promise<MsgDepositToVaultResponse>; | ||
} | ||
export class MsgClientImpl implements Msg { | ||
private readonly rpc: Rpc; | ||
|
||
constructor(rpc: Rpc) { | ||
this.rpc = rpc; | ||
this.depositToVault = this.depositToVault.bind(this); | ||
} | ||
|
||
depositToVault(request: MsgDepositToVault): Promise<MsgDepositToVaultResponse> { | ||
const data = MsgDepositToVault.encode(request).finish(); | ||
const promise = this.rpc.request("dydxprotocol.vault.Msg", "DepositToVault", data); | ||
return promise.then(data => MsgDepositToVaultResponse.decode(new _m0.Reader(data))); | ||
} | ||
|
||
} |
Oops, something went wrong.