Skip to content

Commit

Permalink
Merge pull request #305 from convergence-rfq/dev-hxro-add-update-mark…
Browse files Browse the repository at this point in the history
…-price-ix

Dev hxro add update mark price ix
  • Loading branch information
Nagaprasadvr authored May 22, 2024
2 parents dbf9200 + 22a3bb0 commit 48594db
Show file tree
Hide file tree
Showing 12 changed files with 174 additions and 20 deletions.
64 changes: 64 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# @convergence-rfq/cli

## 6.6.18

### Patch Changes

- update getHxroCollateralForSettlement
- Updated dependencies
- @convergence-rfq/sdk@6.6.18

## 6.6.17

### Patch Changes

- finish hxro updateMarkPrice integration
- Updated dependencies
- @convergence-rfq/sdk@6.6.17

## 6.6.16

### Patch Changes

- remove console logs
- Updated dependencies
- @convergence-rfq/sdk@6.6.16

## 6.6.15

### Patch Changes

- experiment hxro updateMarkPrice
- Updated dependencies
- @convergence-rfq/sdk@6.6.15

## 6.6.14

### Patch Changes

- Modify preparePrintTradeSettlement logic
- Updated dependencies
- @convergence-rfq/sdk@6.6.14

## 6.6.13

### Patch Changes

- fix sig verify error
- Updated dependencies
- @convergence-rfq/sdk@6.6.13

## 6.6.12

### Patch Changes

- add updateMarkPrice ix to lockcollateral
- Updated dependencies
- @convergence-rfq/sdk@6.6.12

## 6.6.11

### Patch Changes

- Update hxro collateral logs fetching logic
- Updated dependencies
- @convergence-rfq/sdk@6.6.11

## 6.6.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/cli",
"description": "Official Convergence CLI",
"version": "6.6.10",
"version": "6.6.18",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -47,7 +47,7 @@
"cli": "ts-node src/index.ts"
},
"dependencies": {
"@convergence-rfq/sdk": "6.6.10",
"@convergence-rfq/sdk": "6.6.18",
"@solana/web3.js": "^1.87.6",
"@types/cookie": "^0.5.1",
"commander": "^10.0.0"
Expand Down
48 changes: 48 additions & 0 deletions packages/js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# @convergence-rfq/sdk

## 6.6.18

### Patch Changes

- update getHxroCollateralForSettlement

## 6.6.17

### Patch Changes

- finish hxro updateMarkPrice integration

## 6.6.16

### Patch Changes

- remove console logs

## 6.6.15

### Patch Changes

- experiment hxro updateMarkPrice

## 6.6.14

### Patch Changes

- Modify preparePrintTradeSettlement logic

## 6.6.13

### Patch Changes

- fix sig verify error

## 6.6.12

### Patch Changes

- add updateMarkPrice ix to lockcollateral

## 6.6.11

### Patch Changes

- Update hxro collateral logs fetching logic

## 6.6.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/sdk",
"description": "Official Convergence RFQ SDK",
"version": "6.6.10",
"version": "6.6.18",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -62,7 +62,7 @@
"@convergence-rfq/vault-operator": "^3.11.0",
"@coral-xyz/anchor": "^0.28.0",
"@coral-xyz/borsh": "^0.28.0",
"@hxronetwork/dexterity-ts": "1.6.16",
"@hxronetwork/dexterity-ts": "1.6.40",
"@mithraic-labs/psy-american": "^0.2.3",
"@mithraic-labs/tokenized-euros": "^0.2.3",
"@noble/ed25519": "^1.7.1",
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export const COMPUTE_UNIT_PRICE_IN_MICRO_LAMPORTS_MAP = {
turbo: 25000,
};

export const HXRO_COLLATERAL_LOG_INDEX = 7;

export const DEFAULT_COMPUTE_UNITS = 200_000;

export const DEFAULT_COMPUTE_UNIT_PRICE = 5000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
PrintTradeRfq,
getAuthoritySide,
} from '@/plugins/rfqModule';
import { HXRO_COLLATERAL_LOG_INDEX } from '@/constants';

const Key = 'GetRequiredHxroCollateralForSettlementOperation' as const;

Expand Down Expand Up @@ -93,10 +92,13 @@ export const getRequiredHxroCollateralForSettlementOperationHandler: OperationHa

const lastValidBlockHeight = await convergence.rpc().getLatestBlockhash();
const ixs = txBuilder.getInstructions();
if (!ixs[1]) {
return { remainingCollateral: 0 };
}
const txMessage = new TransactionMessage({
payerKey: payer,
recentBlockhash: lastValidBlockHeight.blockhash,
instructions: ixs,
instructions: [ixs[1]],
}).compileToV0Message();

const tx = new VersionedTransaction(txMessage);
Expand All @@ -112,8 +114,12 @@ export const getRequiredHxroCollateralForSettlementOperationHandler: OperationHa
if (!logs) {
return { remainingCollateral: 0 };
}
const logToParse = logs[HXRO_COLLATERAL_LOG_INDEX];
const logToParse = logs.find((l) => l.includes('Total Variance'));
if (!logToParse || logToParse === '') {
return { remainingCollateral: 0 };
}
const logsSplit = logToParse.split(',');

let totalVariance = Number(logsSplit[0].split(':')[2]);
let openOrdersVariance = Number(logsSplit[1].split(':')[1]);
let positionalValue = Number(logsSplit[2].split(':')[1]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BN from 'bn.js';
import BigNumber from 'bignumber.js';
import dexterity from '@hxronetwork/dexterity-ts';
import { getHxroProgramFromIDL } from '../program';
import type { HxroContextHelper, HxroLeg } from '../printTrade';
import { HXRO_LEG_DECIMALS } from '../constants';
Expand All @@ -11,6 +12,7 @@ import {
PrintTradeResponse,
PrintTradeRfq,
} from '@/plugins/rfqModule';
import { isLocalEnv } from '@/utils/helpers';

export type LockHxroCollateralParams = {
rfq: PrintTradeRfq;
Expand All @@ -26,7 +28,6 @@ export const lockHxroCollateralBuilder = async (
): Promise<TransactionBuilder<{}>> => {
const { rfq, response, side, hxroContext } = params;
const { payer = cvg.rpc().getDefaultFeePayer() } = options;

const { mpg, manifest } = hxroContext;
const userTrg = await hxroContext.getTrgDataBySide(side).get();

Expand Down Expand Up @@ -109,11 +110,32 @@ export const lockHxroCollateralBuilder = async (
])
.instruction();

return TransactionBuilder.make<{}>()
const txBuilder = TransactionBuilder.make<{}>()
.setFeePayer(payer)
.add({
instruction,
signers: [payer],
key: 'lockHxroCollateral',
});

if (!isLocalEnv(cvg)) {
let traderRiskGrop: PublicKey;
if (rfq.taker.equals(payer.publicKey)) {
traderRiskGrop = hxroContext.getTakerTrg();
} else {
traderRiskGrop = hxroContext.getMakerTrg();
}
const trader = new dexterity.Trader(manifest, traderRiskGrop, true);

await trader.connect(null, null);
const updateMarkPriceIx = trader.getUpdateMarkPricesIx();
updateMarkPriceIx.keys[0].pubkey = payer.publicKey;

txBuilder.prepend({
instruction: updateMarkPriceIx,
signers: [payer],
key: 'updateMarkPrices',
});
}
return txBuilder;
};
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ export const preparePrintTradeSettlementOperationHandler: OperationHandler<Prepa

const lastValidBlockHeight = await convergence.rpc().getLatestBlockhash();
const txs = builders.map((x) => x.toTransaction(lastValidBlockHeight));

const signedTxs = await convergence.identity().signAllTransactions(txs);

const outputs = [];
for (const signedTx of signedTxs) {
const output = await convergence
Expand All @@ -96,7 +94,6 @@ export const preparePrintTradeSettlementOperationHandler: OperationHandler<Prepa
lastValidBlockHeight,
confirmOptions
);

outputs.push(output);
}

Expand Down Expand Up @@ -163,6 +160,7 @@ export const preparePrintTradeSettlementBuilders = async (
side,
options
);

const remainingAccounts = prependWithProviderProgram(
printTrade,
printTradeAccounts
Expand Down
4 changes: 4 additions & 0 deletions packages/js/src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,7 @@ export const addComputeBudgetIxsIfNeeded = async <T extends object>(
);
}
};

export const isLocalEnv = (cvg: Convergence) => {
return cvg.connection.rpcEndpoint === 'http://127.0.0.1:8899';
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"pubkey": "5bdBYhFsh1Zcy656eSssuRNFgACAa1qGSBm4tbiHVr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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"base64"
],
"owner": "BVDTB61eHY7UnCb4ueatdaV4rctTzqfLAL6sQDeMNSHA",
"executable": false,
"rentEpoch": 0
}
}
5 changes: 3 additions & 2 deletions packages/validator/dependencies/hxro/pubkey-naming.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"FUfpR31LmcP1VSbz5zDaM7nxnH55iBHkpwusgrnhaFjL": "dex-program",
"G6b2JSF5M7SySosNC4GkHHmqXczSCGUycppRiYvTQ7aK": "vault",
"GBhshm4LFyYTv9iPocz7kmLpRhvvPNoxH9wgB57uNamm": "fee-config",
"GCXr6LDZurWK8Hkm18gZzJ7jUgvrYEVFFeWUR346fd42": "mpg"
}
"GCXr6LDZurWK8Hkm18gZzJ7jUgvrYEVFFeWUR346fd42": "mpg",
"5bdBYhFsh1Zcy656eSssuRNFgACAa1qGSBm4tbiHVrES": "mark-price-account"
}
Loading

0 comments on commit 48594db

Please sign in to comment.