From 25d94b0e7bff90885d5a82e63e5f25e4a0610656 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Mon, 27 Feb 2023 08:49:43 +0100 Subject: [PATCH] Fix idl Signed-off-by: microwavedcola1 --- ts/client/src/accounts/group.ts | 24 ++++++++++---------- ts/client/src/mango_v4.ts | 40 ++++++++++++++++----------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/ts/client/src/accounts/group.ts b/ts/client/src/accounts/group.ts index 55fd8fcf4..34d28d886 100644 --- a/ts/client/src/accounts/group.ts +++ b/ts/client/src/accounts/group.ts @@ -32,18 +32,18 @@ export class Group { groupNum: number; admin: PublicKey; fastListingAdmin: PublicKey; - feesMngoTokenIndex: number; + mngoTokenIndex: number; insuranceMint: PublicKey; insuranceVault: PublicKey; testing: number; version: number; - feesPayWithMngo: number; - feesMngoBonusFactor: number; + buybackFees: number; + buybackFeesMngoBonusFactor: number; addressLookupTables: PublicKey[]; securityAdmin: PublicKey; depositLimitQuote: BN; ixGate: BN; - feesSwapMangoAccount: PublicKey; + buybackFeesSwapMangoAccount: PublicKey; }, ): Group { return new Group( @@ -52,18 +52,18 @@ export class Group { obj.groupNum, obj.admin, obj.fastListingAdmin, - obj.feesMngoTokenIndex as TokenIndex, + obj.mngoTokenIndex as TokenIndex, obj.insuranceMint, obj.insuranceVault, obj.testing, obj.version, - obj.feesPayWithMngo == 1, - obj.feesMngoBonusFactor, + obj.buybackFees == 1, + obj.buybackFeesMngoBonusFactor, obj.addressLookupTables, obj.securityAdmin, obj.depositLimitQuote, obj.ixGate, - obj.feesSwapMangoAccount, + obj.buybackFeesSwapMangoAccount, [], // addressLookupTablesList new Map(), // banksMapByName new Map(), // banksMapByMint @@ -86,18 +86,18 @@ export class Group { public groupNum: number, public admin: PublicKey, public fastListingAdmin: PublicKey, - public feesMngoTokenIndex: TokenIndex, + public mngoTokenIndex: TokenIndex, public insuranceMint: PublicKey, public insuranceVault: PublicKey, public testing: number, public version: number, - public feesPayWithMngo: boolean, - public feesMngoBonusFactor: number, + public buybackFees: boolean, + public buybackFeesMngoBonusFactor: number, public addressLookupTables: PublicKey[], public securityAdmin: PublicKey, public depositLimitQuote, public ixGate: BN, - public feesSwapMangoAccount: PublicKey, + public buybackFeesSwapMangoAccount: PublicKey, public addressLookupTablesList: AddressLookupTableAccount[], public banksMapByName: Map, public banksMapByMint: Map, diff --git a/ts/client/src/mango_v4.ts b/ts/client/src/mango_v4.ts index 1f8628799..ddf6cf17f 100644 --- a/ts/client/src/mango_v4.ts +++ b/ts/client/src/mango_v4.ts @@ -146,25 +146,25 @@ export type MangoV4 = { } }, { - "name": "feesPayWithMngoOpt", + "name": "buybackFeesOpt", "type": { "option": "bool" } }, { - "name": "feesMngoBonusFactorOpt", + "name": "buybackFeesBonusFactorOpt", "type": { "option": "f32" } }, { - "name": "feesSwapMangoAccountOpt", + "name": "buybackFeesSwapMangoAccountOpt", "type": { "option": "publicKey" } }, { - "name": "feesMngoTokenIndexOpt", + "name": "mngoTokenIndexOpt", "type": { "option": "u16" } @@ -4023,7 +4023,7 @@ export type MangoV4 = { "type": "publicKey" }, { - "name": "feesMngoTokenIndex", + "name": "mngoTokenIndex", "type": "u16" }, { @@ -4056,11 +4056,11 @@ export type MangoV4 = { "type": "u8" }, { - "name": "feesPayWithMngo", + "name": "buybackFees", "type": "u8" }, { - "name": "feesMngoBonusFactor", + "name": "buybackFeesMngoBonusFactor", "type": "f32" }, { @@ -4085,7 +4085,7 @@ export type MangoV4 = { "type": "u128" }, { - "name": "feesSwapMangoAccount", + "name": "buybackFeesSwapMangoAccount", "type": "publicKey" }, { @@ -4187,7 +4187,7 @@ export type MangoV4 = { "type": "u64" }, { - "name": "discountBuybackFeesAccrued", + "name": "buybackFeesAccrued", "type": "u64" }, { @@ -5766,7 +5766,7 @@ export type MangoV4 = { "type": "u64" }, { - "name": "discountBuybackFeesAccrued", + "name": "buybackFeesAccrued", "type": "u64" }, { @@ -8585,25 +8585,25 @@ export const IDL: MangoV4 = { } }, { - "name": "feesPayWithMngoOpt", + "name": "buybackFeesOpt", "type": { "option": "bool" } }, { - "name": "feesMngoBonusFactorOpt", + "name": "buybackFeesBonusFactorOpt", "type": { "option": "f32" } }, { - "name": "feesSwapMangoAccountOpt", + "name": "buybackFeesSwapMangoAccountOpt", "type": { "option": "publicKey" } }, { - "name": "feesMngoTokenIndexOpt", + "name": "mngoTokenIndexOpt", "type": { "option": "u16" } @@ -12462,7 +12462,7 @@ export const IDL: MangoV4 = { "type": "publicKey" }, { - "name": "feesMngoTokenIndex", + "name": "mngoTokenIndex", "type": "u16" }, { @@ -12495,11 +12495,11 @@ export const IDL: MangoV4 = { "type": "u8" }, { - "name": "feesPayWithMngo", + "name": "buybackFees", "type": "u8" }, { - "name": "feesMngoBonusFactor", + "name": "buybackFeesMngoBonusFactor", "type": "f32" }, { @@ -12524,7 +12524,7 @@ export const IDL: MangoV4 = { "type": "u128" }, { - "name": "feesSwapMangoAccount", + "name": "buybackFeesSwapMangoAccount", "type": "publicKey" }, { @@ -12626,7 +12626,7 @@ export const IDL: MangoV4 = { "type": "u64" }, { - "name": "discountBuybackFeesAccrued", + "name": "buybackFeesAccrued", "type": "u64" }, { @@ -14205,7 +14205,7 @@ export const IDL: MangoV4 = { "type": "u64" }, { - "name": "discountBuybackFeesAccrued", + "name": "buybackFeesAccrued", "type": "u64" }, {