Fix client to make work with latest perp changes

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-05-17 15:20:31 +02:00
parent 12ced75fea
commit e0c5562a5b
2 changed files with 22 additions and 22 deletions

View File

@ -739,7 +739,7 @@ export class MangoClient {
filters.push({
memcmp: {
bytes: bs58.encode(bbuf),
offset: 348,
offset: 428,
},
});
}
@ -750,7 +750,7 @@ export class MangoClient {
filters.push({
memcmp: {
bytes: bs58.encode(qbuf),
offset: 350,
offset: 430,
},
});
}

View File

@ -1232,11 +1232,11 @@ export type MangoV4 = {
"type": "f32"
},
{
"name": "maxFunding",
"name": "minFunding",
"type": "f32"
},
{
"name": "minFunding",
"name": "maxFunding",
"type": "f32"
},
{
@ -2068,6 +2068,12 @@ export type MangoV4 = {
"defined": "I80F48"
}
},
{
"name": "minFunding",
"type": {
"defined": "I80F48"
}
},
{
"name": "maxFunding",
"type": {
@ -2075,10 +2081,8 @@ export type MangoV4 = {
}
},
{
"name": "minFunding",
"type": {
"defined": "I80F48"
}
"name": "impactQuantity",
"type": "i64"
},
{
"name": "longFunding",
@ -2096,10 +2100,6 @@ export type MangoV4 = {
"name": "fundingLastUpdated",
"type": "i64"
},
{
"name": "impactQuantity",
"type": "i64"
},
{
"name": "openInterest",
"type": "i64"
@ -4024,11 +4024,11 @@ export const IDL: MangoV4 = {
"type": "f32"
},
{
"name": "maxFunding",
"name": "minFunding",
"type": "f32"
},
{
"name": "minFunding",
"name": "maxFunding",
"type": "f32"
},
{
@ -4860,6 +4860,12 @@ export const IDL: MangoV4 = {
"defined": "I80F48"
}
},
{
"name": "minFunding",
"type": {
"defined": "I80F48"
}
},
{
"name": "maxFunding",
"type": {
@ -4867,10 +4873,8 @@ export const IDL: MangoV4 = {
}
},
{
"name": "minFunding",
"type": {
"defined": "I80F48"
}
"name": "impactQuantity",
"type": "i64"
},
{
"name": "longFunding",
@ -4888,10 +4892,6 @@ export const IDL: MangoV4 = {
"name": "fundingLastUpdated",
"type": "i64"
},
{
"name": "impactQuantity",
"type": "i64"
},
{
"name": "openInterest",
"type": "i64"