Skip to content

Commit

Permalink
fix: msgBatchUpdateOrders amino
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Jul 4, 2024
1 parent 8cfa6de commit 0a8bc64
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 205 deletions.
508 changes: 321 additions & 187 deletions packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export default class MsgCreateBinaryOptionsLimitOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createLimitOrder(params)
const order = createLimitOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export default class MsgCreateBinaryOptionsMarketOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMarketOrder(params)
const order = createMarketOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export default class MsgCreateDerivativeLimitOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createLimitOrder(params)
const order = createLimitOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ export default class MsgCreateDerivativeMarketOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMarketOrder(params)
const order = createMarketOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export default class MsgCreateSpotLimitOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createLimitOrder(params)
const order = createLimitOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export default class MsgCreateSpotMarketOrder extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMarketOrder(params)
const order = createMarketOrder(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(order),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export default class MsgIncreasePositionMargin extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMessage(params)
const msg = createMessage(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(msg),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ export default class MsgInstantBinaryOptionsMarketLaunch extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMessage(params)
const msg = createMessage(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(msg),
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<

public toAmino() {
const { params } = this
const proto = createMessage(params)
const msg = createMessage(params)
const message = {
...snakecaseKeys(proto),
...snakecaseKeys(msg),
}

return {
Expand Down

0 comments on commit 0a8bc64

Please sign in to comment.