update idl, and fix tsc errors
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
b0dae7ec22
commit
a7654f43a1
|
@ -283,11 +283,7 @@ export class MintInfo {
|
||||||
banks: PublicKey[];
|
banks: PublicKey[];
|
||||||
vaults: PublicKey[];
|
vaults: PublicKey[];
|
||||||
oracle: PublicKey;
|
oracle: PublicKey;
|
||||||
addressLookupTable: PublicKey;
|
|
||||||
tokenIndex: number;
|
tokenIndex: number;
|
||||||
addressLookupTableBankIndex: Number;
|
|
||||||
addressLookupTableOracleIndex: Number;
|
|
||||||
reserved: unknown;
|
|
||||||
registrationTime: BN;
|
registrationTime: BN;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -166,7 +166,7 @@ export class MangoClient {
|
||||||
return await this.program.methods
|
return await this.program.methods
|
||||||
.tokenRegister(
|
.tokenRegister(
|
||||||
tokenIndex,
|
tokenIndex,
|
||||||
new BN(0),
|
0,
|
||||||
name,
|
name,
|
||||||
{
|
{
|
||||||
confFilter: {
|
confFilter: {
|
||||||
|
|
|
@ -191,7 +191,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -220,7 +220,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -284,7 +284,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "name",
|
"name": "name",
|
||||||
|
@ -468,7 +468,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -497,7 +497,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -556,7 +556,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -653,7 +653,7 @@ export type MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u8",
|
"type": "u32",
|
||||||
"path": "account_num"
|
"path": "account_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -678,7 +678,7 @@ export type MangoV4 = {
|
||||||
"args": [
|
"args": [
|
||||||
{
|
{
|
||||||
"name": "accountNum",
|
"name": "accountNum",
|
||||||
"type": "u8"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "accountSize",
|
"name": "accountSize",
|
||||||
|
@ -2705,18 +2705,9 @@ export type MangoV4 = {
|
||||||
"name": "mintDecimals",
|
"name": "mintDecimals",
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "padding",
|
|
||||||
"type": {
|
|
||||||
"array": [
|
|
||||||
"u8",
|
|
||||||
4
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "reserved",
|
"name": "reserved",
|
||||||
|
@ -2987,27 +2978,6 @@ export type MangoV4 = {
|
||||||
"name": "oracle",
|
"name": "oracle",
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "addressLookupTable",
|
|
||||||
"type": "publicKey"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "addressLookupTableBankIndex",
|
|
||||||
"type": "u8"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "addressLookupTableOracleIndex",
|
|
||||||
"type": "u8"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "padding2",
|
|
||||||
"type": {
|
|
||||||
"array": [
|
|
||||||
"u8",
|
|
||||||
6
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "registrationTime",
|
"name": "registrationTime",
|
||||||
"type": "i64"
|
"type": "i64"
|
||||||
|
@ -5087,7 +5057,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -5116,7 +5086,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -5180,7 +5150,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "name",
|
"name": "name",
|
||||||
|
@ -5364,7 +5334,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -5393,7 +5363,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u64",
|
"type": "u32",
|
||||||
"path": "bank_num"
|
"path": "bank_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -5452,7 +5422,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -5549,7 +5519,7 @@ export const IDL: MangoV4 = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "arg",
|
"kind": "arg",
|
||||||
"type": "u8",
|
"type": "u32",
|
||||||
"path": "account_num"
|
"path": "account_num"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -5574,7 +5544,7 @@ export const IDL: MangoV4 = {
|
||||||
"args": [
|
"args": [
|
||||||
{
|
{
|
||||||
"name": "accountNum",
|
"name": "accountNum",
|
||||||
"type": "u8"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "accountSize",
|
"name": "accountSize",
|
||||||
|
@ -7601,18 +7571,9 @@ export const IDL: MangoV4 = {
|
||||||
"name": "mintDecimals",
|
"name": "mintDecimals",
|
||||||
"type": "u8"
|
"type": "u8"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "padding",
|
|
||||||
"type": {
|
|
||||||
"array": [
|
|
||||||
"u8",
|
|
||||||
4
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "bankNum",
|
"name": "bankNum",
|
||||||
"type": "u64"
|
"type": "u32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "reserved",
|
"name": "reserved",
|
||||||
|
@ -7883,27 +7844,6 @@ export const IDL: MangoV4 = {
|
||||||
"name": "oracle",
|
"name": "oracle",
|
||||||
"type": "publicKey"
|
"type": "publicKey"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "addressLookupTable",
|
|
||||||
"type": "publicKey"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "addressLookupTableBankIndex",
|
|
||||||
"type": "u8"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "addressLookupTableOracleIndex",
|
|
||||||
"type": "u8"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "padding2",
|
|
||||||
"type": {
|
|
||||||
"array": [
|
|
||||||
"u8",
|
|
||||||
6
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "registrationTime",
|
"name": "registrationTime",
|
||||||
"type": "i64"
|
"type": "i64"
|
||||||
|
|
Loading…
Reference in New Issue