Fix idl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
d88d44b34a
commit
25d94b0e7b
|
@ -32,18 +32,18 @@ export class Group {
|
||||||
groupNum: number;
|
groupNum: number;
|
||||||
admin: PublicKey;
|
admin: PublicKey;
|
||||||
fastListingAdmin: PublicKey;
|
fastListingAdmin: PublicKey;
|
||||||
feesMngoTokenIndex: number;
|
mngoTokenIndex: number;
|
||||||
insuranceMint: PublicKey;
|
insuranceMint: PublicKey;
|
||||||
insuranceVault: PublicKey;
|
insuranceVault: PublicKey;
|
||||||
testing: number;
|
testing: number;
|
||||||
version: number;
|
version: number;
|
||||||
feesPayWithMngo: number;
|
buybackFees: number;
|
||||||
feesMngoBonusFactor: number;
|
buybackFeesMngoBonusFactor: number;
|
||||||
addressLookupTables: PublicKey[];
|
addressLookupTables: PublicKey[];
|
||||||
securityAdmin: PublicKey;
|
securityAdmin: PublicKey;
|
||||||
depositLimitQuote: BN;
|
depositLimitQuote: BN;
|
||||||
ixGate: BN;
|
ixGate: BN;
|
||||||
feesSwapMangoAccount: PublicKey;
|
buybackFeesSwapMangoAccount: PublicKey;
|
||||||
},
|
},
|
||||||
): Group {
|
): Group {
|
||||||
return new Group(
|
return new Group(
|
||||||
|
@ -52,18 +52,18 @@ export class Group {
|
||||||
obj.groupNum,
|
obj.groupNum,
|
||||||
obj.admin,
|
obj.admin,
|
||||||
obj.fastListingAdmin,
|
obj.fastListingAdmin,
|
||||||
obj.feesMngoTokenIndex as TokenIndex,
|
obj.mngoTokenIndex as TokenIndex,
|
||||||
obj.insuranceMint,
|
obj.insuranceMint,
|
||||||
obj.insuranceVault,
|
obj.insuranceVault,
|
||||||
obj.testing,
|
obj.testing,
|
||||||
obj.version,
|
obj.version,
|
||||||
obj.feesPayWithMngo == 1,
|
obj.buybackFees == 1,
|
||||||
obj.feesMngoBonusFactor,
|
obj.buybackFeesMngoBonusFactor,
|
||||||
obj.addressLookupTables,
|
obj.addressLookupTables,
|
||||||
obj.securityAdmin,
|
obj.securityAdmin,
|
||||||
obj.depositLimitQuote,
|
obj.depositLimitQuote,
|
||||||
obj.ixGate,
|
obj.ixGate,
|
||||||
obj.feesSwapMangoAccount,
|
obj.buybackFeesSwapMangoAccount,
|
||||||
[], // addressLookupTablesList
|
[], // addressLookupTablesList
|
||||||
new Map(), // banksMapByName
|
new Map(), // banksMapByName
|
||||||
new Map(), // banksMapByMint
|
new Map(), // banksMapByMint
|
||||||
|
@ -86,18 +86,18 @@ export class Group {
|
||||||
public groupNum: number,
|
public groupNum: number,
|
||||||
public admin: PublicKey,
|
public admin: PublicKey,
|
||||||
public fastListingAdmin: PublicKey,
|
public fastListingAdmin: PublicKey,
|
||||||
public feesMngoTokenIndex: TokenIndex,
|
public mngoTokenIndex: TokenIndex,
|
||||||
public insuranceMint: PublicKey,
|
public insuranceMint: PublicKey,
|
||||||
public insuranceVault: PublicKey,
|
public insuranceVault: PublicKey,
|
||||||
public testing: number,
|
public testing: number,
|
||||||
public version: number,
|
public version: number,
|
||||||
public feesPayWithMngo: boolean,
|
public buybackFees: boolean,
|
||||||
public feesMngoBonusFactor: number,
|
public buybackFeesMngoBonusFactor: number,
|
||||||
public addressLookupTables: PublicKey[],
|
public addressLookupTables: PublicKey[],
|
||||||
public securityAdmin: PublicKey,
|
public securityAdmin: PublicKey,
|
||||||
public depositLimitQuote,
|
public depositLimitQuote,
|
||||||
public ixGate: BN,
|
public ixGate: BN,
|
||||||
public feesSwapMangoAccount: PublicKey,
|
public buybackFeesSwapMangoAccount: PublicKey,
|
||||||
public addressLookupTablesList: AddressLookupTableAccount[],
|
public addressLookupTablesList: AddressLookupTableAccount[],
|
||||||
public banksMapByName: Map<string, Bank[]>,
|
public banksMapByName: Map<string, Bank[]>,
|
||||||
public banksMapByMint: Map<string, Bank[]>,
|
public banksMapByMint: Map<string, Bank[]>,
|
||||||
|
|
|
@ -146,25 +146,25 @@ export type MangoV4 = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesPayWithMngoOpt",
|
"name": "buybackFeesOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "bool"
|
"option": "bool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoBonusFactorOpt",
|
"name": "buybackFeesBonusFactorOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "f32"
|
"option": "f32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesSwapMangoAccountOpt",
|
"name": "buybackFeesSwapMangoAccountOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "publicKey"
|
"option": "publicKey"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoTokenIndexOpt",
|
"name": "mngoTokenIndexOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "u16"
|
"option": "u16"
|
||||||
}
|
}
|
||||||
|
@ -4023,7 +4023,7 @@ export type MangoV4 = {
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoTokenIndex",
|
"name": "mngoTokenIndex",
|
||||||
"type": "u16"
|
"type": "u16"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4056,11 +4056,11 @@ export type MangoV4 = {
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesPayWithMngo",
|
"name": "buybackFees",
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoBonusFactor",
|
"name": "buybackFeesMngoBonusFactor",
|
||||||
"type": "f32"
|
"type": "f32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4085,7 +4085,7 @@ export type MangoV4 = {
|
||||||
"type": "u128"
|
"type": "u128"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesSwapMangoAccount",
|
"name": "buybackFeesSwapMangoAccount",
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4187,7 +4187,7 @@ export type MangoV4 = {
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "discountBuybackFeesAccrued",
|
"name": "buybackFeesAccrued",
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -5766,7 +5766,7 @@ export type MangoV4 = {
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "discountBuybackFeesAccrued",
|
"name": "buybackFeesAccrued",
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8585,25 +8585,25 @@ export const IDL: MangoV4 = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesPayWithMngoOpt",
|
"name": "buybackFeesOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "bool"
|
"option": "bool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoBonusFactorOpt",
|
"name": "buybackFeesBonusFactorOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "f32"
|
"option": "f32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesSwapMangoAccountOpt",
|
"name": "buybackFeesSwapMangoAccountOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "publicKey"
|
"option": "publicKey"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoTokenIndexOpt",
|
"name": "mngoTokenIndexOpt",
|
||||||
"type": {
|
"type": {
|
||||||
"option": "u16"
|
"option": "u16"
|
||||||
}
|
}
|
||||||
|
@ -12462,7 +12462,7 @@ export const IDL: MangoV4 = {
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoTokenIndex",
|
"name": "mngoTokenIndex",
|
||||||
"type": "u16"
|
"type": "u16"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -12495,11 +12495,11 @@ export const IDL: MangoV4 = {
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesPayWithMngo",
|
"name": "buybackFees",
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesMngoBonusFactor",
|
"name": "buybackFeesMngoBonusFactor",
|
||||||
"type": "f32"
|
"type": "f32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -12524,7 +12524,7 @@ export const IDL: MangoV4 = {
|
||||||
"type": "u128"
|
"type": "u128"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feesSwapMangoAccount",
|
"name": "buybackFeesSwapMangoAccount",
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -12626,7 +12626,7 @@ export const IDL: MangoV4 = {
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "discountBuybackFeesAccrued",
|
"name": "buybackFeesAccrued",
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -14205,7 +14205,7 @@ export const IDL: MangoV4 = {
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "discountBuybackFeesAccrued",
|
"name": "buybackFeesAccrued",
|
||||||
"type": "u64"
|
"type": "u64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue