Skip to content

Commit

Permalink
Updating the latest proto changes (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinystarinagalaxy authored Sep 6, 2023
1 parent 3f0db73 commit 15700b1
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 46 deletions.
87 changes: 57 additions & 30 deletions common/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions js/ffi/proto/common_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export enum MarginContract {
ALL_SPOTS = 0,
SOL_SPOT = 1,
USDC_SPOT = 2,
MSOL_SPOT = 3,
WBTC_SPOT = 4,
WETH_SPOT = 5,
USDT_SPOT = 6,
}

export enum PerpContract {
Expand All @@ -124,6 +128,9 @@ export enum PerpContract {
BNB_PERP = 9,
SUI_PERP = 10,
PEPE_PERP = 11,
OP_PERP = 12,
RNDR_PERP = 13,
XRP_PERP = 14,
}

export enum PerpCollateralType {
Expand Down
11 changes: 9 additions & 2 deletions js/ffi/proto/common_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,11 @@ proto.common.PostOnlyParams = {
proto.common.MarginContract = {
ALL_SPOTS: 0,
SOL_SPOT: 1,
USDC_SPOT: 2
USDC_SPOT: 2,
MSOL_SPOT: 3,
WBTC_SPOT: 4,
WETH_SPOT: 5,
USDT_SPOT: 6
};

/**
Expand All @@ -663,7 +667,10 @@ proto.common.PerpContract = {
DOGE_PERP: 8,
BNB_PERP: 9,
SUI_PERP: 10,
PEPE_PERP: 11
PEPE_PERP: 11,
OP_PERP: 12,
RNDR_PERP: 13,
XRP_PERP: 14
};

/**
Expand Down
6 changes: 3 additions & 3 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ enum PerpContract {
BNB_PERP = 9; // BNB-PERP
SUI_PERP = 10; // SUI-PERP
PEPE_PERP = 11; // PEPE-PERP
OP_PERP = 12; // PEPE-PERP
RNDR_PERP = 13; // PEPE-PERP
XRP_PERP = 14; // PEPE-PERP
OP_PERP = 12; // OP_PERP
RNDR_PERP = 13; // RNDR_PERP
XRP_PERP = 14; // XRP_PERP
}

enum PerpCollateralType {
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bxsolana-trader-proto"
version = "0.0.41"
version = "0.0.42"
description = "proto-generated files for solana-trader-api"
dependencies = [
"betterproto==v2.0.0b5"
Expand Down
30 changes: 24 additions & 6 deletions python/src/bxsolana_trader_proto/api/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions python/src/bxsolana_trader_proto/common/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions swagger-ui
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@
"DOGE_PERP",
"BNB_PERP",
"SUI_PERP",
"PEPE_PERP"
"PEPE_PERP",
"OP_PERP",
"RNDR_PERP",
"XRP_PERP"
]
},
{
Expand Down Expand Up @@ -1154,7 +1157,10 @@
"DOGE_PERP",
"BNB_PERP",
"SUI_PERP",
"PEPE_PERP"
"PEPE_PERP",
"OP_PERP",
"RNDR_PERP",
"XRP_PERP"
]
},
"collectionFormat": "multi"
Expand Down Expand Up @@ -1270,7 +1276,10 @@
"DOGE_PERP",
"BNB_PERP",
"SUI_PERP",
"PEPE_PERP"
"PEPE_PERP",
"OP_PERP",
"RNDR_PERP",
"XRP_PERP"
]
},
"collectionFormat": "multi"
Expand Down Expand Up @@ -7563,7 +7572,10 @@
"DOGE_PERP",
"BNB_PERP",
"SUI_PERP",
"PEPE_PERP"
"PEPE_PERP",
"OP_PERP",
"RNDR_PERP",
"XRP_PERP"
],
"default": "ALL"
},
Expand Down

0 comments on commit 15700b1

Please sign in to comment.