use cancelRawOrder

This commit is contained in:
Bill He 2023-10-19 10:09:35 -07:00
parent eceaea5235
commit 483ea78260
No known key found for this signature in database
GPG Key ID: 73AEEF9D79E5BBF8
3 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@
"@cosmjs/stargate": "^0.31.0",
"@cosmjs/tendermint-rpc": "^0.31.0",
"@dydxprotocol/v4-abacus": "^0.7.2",
"@dydxprotocol/v4-client-js": "^0.40.2",
"@dydxprotocol/v4-client-js": "^0.40.3",
"@dydxprotocol/v4-localization": "^0.1.30",
"@ethersproject/providers": "^5.7.2",
"@js-joda/core": "^5.5.3",

8
pnpm-lock.yaml generated
View File

@ -30,8 +30,8 @@ dependencies:
specifier: ^0.7.2
version: 0.7.2
'@dydxprotocol/v4-client-js':
specifier: ^0.40.2
version: 0.40.2
specifier: ^0.40.3
version: 0.40.3
'@dydxprotocol/v4-localization':
specifier: ^0.1.30
version: 0.1.30
@ -983,8 +983,8 @@ packages:
resolution: {integrity: sha512-5foamomN82FH6ko3EuzwFlSoAEY6Sal8fDgvZo2RsB19Ks6SFgFDeeOcEDdfoa3DNwvl8yW0C9cfxeQ+BfU8uA==}
dev: false
/@dydxprotocol/v4-client-js@0.40.2:
resolution: {integrity: sha512-fGx+kojUasDxLlDkL5DVoTmbUL5ubwpN6Cu/RVG1SbHf29mcq5iftjFnYijQsY5A+i0DnAsbv6IgTC922wPVqg==}
/@dydxprotocol/v4-client-js@0.40.3:
resolution: {integrity: sha512-nMQd6tYisKDKIbfx0BGJSYEOSt+I+t5SsaBSmlgTdso+w2rCRO9vyxS+u6MF9h4w5FsVRfhHo3e6uTWX48WpGQ==}
dependencies:
'@cosmjs/amino': 0.30.1
'@cosmjs/encoding': 0.31.1

View File

@ -223,11 +223,11 @@ class DydxChainTransactions implements AbacusDYDXChainTransactionsProtocol {
params ?? {};
try {
const tx = await this.compositeClient?.cancelOrder(
const tx = await this.compositeClient?.cancelRawOrder(
new SubaccountClient(this.localWallet, subaccountNumber),
clientId,
orderFlags,
clobPairId.toString(),
clobPairId,
goodTilBlock || undefined,
goodTilBlockTime || undefined,
);