Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill committed Dec 12, 2023
1 parent 35b87db commit 8b0ff0b
Show file tree
Hide file tree
Showing 17 changed files with 1,136 additions and 245 deletions.
8 changes: 4 additions & 4 deletions indexer/packages/v4-protos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"homepage": "https://github.com/dydxprotocol/indexer#readme",
"dependencies": {
"@bufbuild/buf": "1.19.0-1",
"@cosmjs/amino": "^0.29.3",
"@cosmjs/proto-signing": "^0.29.3",
"@cosmjs/stargate": "^0.29.3",
"@cosmjs/tendermint-rpc": "^0.29.3",
"@cosmjs/amino": "^0.32.1",
"@cosmjs/proto-signing": "^0.32.1",
"@cosmjs/stargate": "^0.32.1",
"@cosmjs/tendermint-rpc": "^0.32.1",
"@osmonauts/lcd": "^0.6.0",
"bech32": "^2.0.0",
"dotenv-flow": "^3.2.0",
Expand Down
102 changes: 51 additions & 51 deletions indexer/packages/v4-protos/src/codegen/dydxprotocol/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@ import * as _45 from "./feetiers/genesis";
import * as _46 from "./feetiers/params";
import * as _47 from "./feetiers/query";
import * as _48 from "./feetiers/tx";
import * as _49 from "./indexer/events/events";
import * as _50 from "./indexer/indexer_manager/event";
import * as _51 from "./indexer/off_chain_updates/off_chain_updates";
import * as _52 from "./indexer/protocol/v1/clob";
import * as _53 from "./indexer/protocol/v1/subaccount";
import * as _54 from "./indexer/redis/redis_order";
import * as _55 from "./indexer/shared/removal_reason";
import * as _56 from "./indexer/socks/messages";
import * as _57 from "./perpetuals/genesis";
import * as _58 from "./perpetuals/params";
import * as _59 from "./perpetuals/perpetual";
import * as _60 from "./perpetuals/query";
import * as _61 from "./perpetuals/tx";
import * as _62 from "./prices/genesis";
import * as _63 from "./prices/market_param";
import * as _64 from "./prices/market_price";
import * as _65 from "./prices/query";
import * as _66 from "./prices/tx";
import * as _67 from "./ratelimit/capacity";
import * as _68 from "./ratelimit/genesis";
import * as _69 from "./ratelimit/limit_params";
import * as _70 from "./ratelimit/query";
import * as _71 from "./ratelimit/tx";
import * as _49 from "./ibcratelimit/capacity";
import * as _50 from "./ibcratelimit/genesis";
import * as _51 from "./ibcratelimit/limit_params";
import * as _52 from "./ibcratelimit/query";
import * as _53 from "./ibcratelimit/tx";
import * as _54 from "./indexer/events/events";
import * as _55 from "./indexer/indexer_manager/event";
import * as _56 from "./indexer/off_chain_updates/off_chain_updates";
import * as _57 from "./indexer/protocol/v1/clob";
import * as _58 from "./indexer/protocol/v1/subaccount";
import * as _59 from "./indexer/redis/redis_order";
import * as _60 from "./indexer/shared/removal_reason";
import * as _61 from "./indexer/socks/messages";
import * as _62 from "./perpetuals/genesis";
import * as _63 from "./perpetuals/params";
import * as _64 from "./perpetuals/perpetual";
import * as _65 from "./perpetuals/query";
import * as _66 from "./perpetuals/tx";
import * as _67 from "./prices/genesis";
import * as _68 from "./prices/market_param";
import * as _69 from "./prices/market_price";
import * as _70 from "./prices/query";
import * as _71 from "./prices/tx";
import * as _72 from "./rewards/genesis";
import * as _73 from "./rewards/params";
import * as _74 from "./rewards/query";
Expand Down Expand Up @@ -95,9 +95,9 @@ import * as _105 from "./clob/query.lcd";
import * as _106 from "./delaymsg/query.lcd";
import * as _107 from "./epochs/query.lcd";
import * as _108 from "./feetiers/query.lcd";
import * as _109 from "./perpetuals/query.lcd";
import * as _110 from "./prices/query.lcd";
import * as _111 from "./ratelimit/query.lcd";
import * as _109 from "./ibcratelimit/query.lcd";
import * as _110 from "./perpetuals/query.lcd";
import * as _111 from "./prices/query.lcd";
import * as _112 from "./rewards/query.lcd";
import * as _113 from "./stats/query.lcd";
import * as _114 from "./subaccounts/query.lcd";
Expand All @@ -109,9 +109,9 @@ import * as _119 from "./clob/query.rpc.Query";
import * as _120 from "./delaymsg/query.rpc.Query";
import * as _121 from "./epochs/query.rpc.Query";
import * as _122 from "./feetiers/query.rpc.Query";
import * as _123 from "./perpetuals/query.rpc.Query";
import * as _124 from "./prices/query.rpc.Query";
import * as _125 from "./ratelimit/query.rpc.Query";
import * as _123 from "./ibcratelimit/query.rpc.Query";
import * as _124 from "./perpetuals/query.rpc.Query";
import * as _125 from "./prices/query.rpc.Query";
import * as _126 from "./rewards/query.rpc.Query";
import * as _127 from "./sending/query.rpc.Query";
import * as _128 from "./stats/query.rpc.Query";
Expand All @@ -122,9 +122,9 @@ import * as _132 from "./bridge/tx.rpc.msg";
import * as _133 from "./clob/tx.rpc.msg";
import * as _134 from "./delaymsg/tx.rpc.msg";
import * as _135 from "./feetiers/tx.rpc.msg";
import * as _136 from "./perpetuals/tx.rpc.msg";
import * as _137 from "./prices/tx.rpc.msg";
import * as _138 from "./ratelimit/tx.rpc.msg";
import * as _136 from "./ibcratelimit/tx.rpc.msg";
import * as _137 from "./perpetuals/tx.rpc.msg";
import * as _138 from "./prices/tx.rpc.msg";
import * as _139 from "./rewards/tx.rpc.msg";
import * as _140 from "./sending/tx.rpc.msg";
import * as _141 from "./stats/tx.rpc.msg";
Expand Down Expand Up @@ -208,35 +208,35 @@ export namespace dydxprotocol {
..._122,
..._135
};
export const ibcratelimit = { ..._49,
..._50,
..._51,
..._52,
..._53,
..._109,
..._123,
..._136
};
export namespace indexer {
export const events = { ..._49
export const events = { ..._54
};
export const indexer_manager = { ..._50
export const indexer_manager = { ..._55
};
export const off_chain_updates = { ..._51
export const off_chain_updates = { ..._56
};
export namespace protocol {
export const v1 = { ..._52,
..._53
export const v1 = { ..._57,
..._58
};
}
export const redis = { ..._54
export const redis = { ..._59
};
export const shared = { ..._55
export const shared = { ..._60
};
export const socks = { ..._56
export const socks = { ..._61
};
}
export const perpetuals = { ..._57,
..._58,
..._59,
..._60,
..._61,
..._109,
..._123,
..._136
};
export const prices = { ..._62,
export const perpetuals = { ..._62,
..._63,
..._64,
..._65,
Expand All @@ -245,7 +245,7 @@ export namespace dydxprotocol {
..._124,
..._137
};
export const ratelimit = { ..._67,
export const prices = { ..._67,
..._68,
..._69,
..._70,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,6 @@ export interface SubaccountLiquidationInfoSDKType {

quantums_insurance_lost: Long;
}
/**
* SubaccountOpenPositionInfo holds information about open positions for a
* perpetual.
*/

export interface SubaccountOpenPositionInfo {
/** The id of the perpetual. */
perpetualId: number;
subaccountsWithLongPosition: SubaccountId[];
subaccountsWithShortPosition: SubaccountId[];
}
/**
* SubaccountOpenPositionInfo holds information about open positions for a
* perpetual.
*/

export interface SubaccountOpenPositionInfoSDKType {
/** The id of the perpetual. */
perpetual_id: number;
subaccounts_with_long_position: SubaccountIdSDKType[];
subaccounts_with_short_position: SubaccountIdSDKType[];
}

function createBasePerpetualLiquidationInfo(): PerpetualLiquidationInfo {
return {
Expand Down Expand Up @@ -237,69 +215,4 @@ export const SubaccountLiquidationInfo = {
return message;
}

};

function createBaseSubaccountOpenPositionInfo(): SubaccountOpenPositionInfo {
return {
perpetualId: 0,
subaccountsWithLongPosition: [],
subaccountsWithShortPosition: []
};
}

export const SubaccountOpenPositionInfo = {
encode(message: SubaccountOpenPositionInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
if (message.perpetualId !== 0) {
writer.uint32(8).uint32(message.perpetualId);
}

for (const v of message.subaccountsWithLongPosition) {
SubaccountId.encode(v!, writer.uint32(18).fork()).ldelim();
}

for (const v of message.subaccountsWithShortPosition) {
SubaccountId.encode(v!, writer.uint32(26).fork()).ldelim();
}

return writer;
},

decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountOpenPositionInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseSubaccountOpenPositionInfo();

while (reader.pos < end) {
const tag = reader.uint32();

switch (tag >>> 3) {
case 1:
message.perpetualId = reader.uint32();
break;

case 2:
message.subaccountsWithLongPosition.push(SubaccountId.decode(reader, reader.uint32()));
break;

case 3:
message.subaccountsWithShortPosition.push(SubaccountId.decode(reader, reader.uint32()));
break;

default:
reader.skipType(tag & 7);
break;
}
}

return message;
},

fromPartial(object: DeepPartial<SubaccountOpenPositionInfo>): SubaccountOpenPositionInfo {
const message = createBaseSubaccountOpenPositionInfo();
message.perpetualId = object.perpetualId ?? 0;
message.subaccountsWithLongPosition = object.subaccountsWithLongPosition?.map(e => SubaccountId.fromPartial(e)) || [];
message.subaccountsWithShortPosition = object.subaccountsWithShortPosition?.map(e => SubaccountId.fromPartial(e)) || [];
return message;
}

};
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import * as _m0 from "protobufjs/minimal";
import { DeepPartial } from "../../helpers";
/** DenomCapacity stores a list of rate limit capacity for a denom. */

export interface DenomCapacity {
/**
* denom is the denomination of the token being rate limited.
* e.g. ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5
*/
denom: string;
/**
* capacity_list is a list of capacity amount tracked for each `Limiter`
* on the denom. This list has a 1:1 mapping to `limiter` list under
* `LimitParams`.
*/

capacityList: Uint8Array[];
}
/** DenomCapacity stores a list of rate limit capacity for a denom. */

export interface DenomCapacitySDKType {
/**
* denom is the denomination of the token being rate limited.
* e.g. ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5
*/
denom: string;
/**
* capacity_list is a list of capacity amount tracked for each `Limiter`
* on the denom. This list has a 1:1 mapping to `limiter` list under
* `LimitParams`.
*/

capacity_list: Uint8Array[];
}

function createBaseDenomCapacity(): DenomCapacity {
return {
denom: "",
capacityList: []
};
}

export const DenomCapacity = {
encode(message: DenomCapacity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
if (message.denom !== "") {
writer.uint32(10).string(message.denom);
}

for (const v of message.capacityList) {
writer.uint32(18).bytes(v!);
}

return writer;
},

decode(input: _m0.Reader | Uint8Array, length?: number): DenomCapacity {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseDenomCapacity();

while (reader.pos < end) {
const tag = reader.uint32();

switch (tag >>> 3) {
case 1:
message.denom = reader.string();
break;

case 2:
message.capacityList.push(reader.bytes());
break;

default:
reader.skipType(tag & 7);
break;
}
}

return message;
},

fromPartial(object: DeepPartial<DenomCapacity>): DenomCapacity {
const message = createBaseDenomCapacity();
message.denom = object.denom ?? "";
message.capacityList = object.capacityList?.map(e => e) || [];
return message;
}

};
Loading

0 comments on commit 8b0ff0b

Please sign in to comment.