update idl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
469ace8265
commit
308bc307fe
|
@ -4320,17 +4320,27 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "settleTokenIndex",
|
||||
"docs": [
|
||||
"Token index that settlements happen in.",
|
||||
"",
|
||||
"Currently required to be 0, USDC. In the future settlement",
|
||||
"may be allowed to happen in other tokens."
|
||||
],
|
||||
"type": "u16"
|
||||
},
|
||||
{
|
||||
"name": "perpMarketIndex",
|
||||
"docs": [
|
||||
"Lookup indices"
|
||||
"Index of this perp market. Other data, like the MangoAccount's PerpPosition",
|
||||
"reference this market via this index. Unique for this group's perp markets."
|
||||
],
|
||||
"type": "u16"
|
||||
},
|
||||
{
|
||||
"name": "blocked1",
|
||||
"docs": [
|
||||
"Field used to contain the trusted_market flag and is now unused."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -4349,10 +4359,18 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "baseDecimals",
|
||||
"docs": [
|
||||
"Number of decimals used for the base token.",
|
||||
"",
|
||||
"Used to convert the oracle's price into a native/native price."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"docs": [
|
||||
"Name. Trailing zero bytes are ignored."
|
||||
],
|
||||
"type": {
|
||||
"array": [
|
||||
"u8",
|
||||
|
@ -4362,28 +4380,46 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "bids",
|
||||
"docs": [
|
||||
"Address of the BookSide account for bids"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "asks",
|
||||
"docs": [
|
||||
"Address of the BookSide account for asks"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "eventQueue",
|
||||
"docs": [
|
||||
"Address of the EventQueue account"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "oracle",
|
||||
"docs": [
|
||||
"Oracle account address"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "oracleConfig",
|
||||
"docs": [
|
||||
"Oracle configuration"
|
||||
],
|
||||
"type": {
|
||||
"defined": "OracleConfig"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stablePriceModel",
|
||||
"docs": [
|
||||
"Maintains a stable price based on the oracle price that is less volatile."
|
||||
],
|
||||
"type": {
|
||||
"defined": "StablePriceModel"
|
||||
}
|
||||
|
@ -4391,21 +4427,31 @@ export type MangoV4 = {
|
|||
{
|
||||
"name": "quoteLotSize",
|
||||
"docs": [
|
||||
"Number of quote native that reresents min tick"
|
||||
"Number of quote native in a quote lot. Must be a power of 10.",
|
||||
"",
|
||||
"Primarily useful for increasing the tick size on the market: A lot price",
|
||||
"of 1 becomes a native price of quote_lot_size/base_lot_size becomes a",
|
||||
"ui price of quote_lot_size*base_decimals/base_lot_size/quote_decimals."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "baseLotSize",
|
||||
"docs": [
|
||||
"Represents number of base native quantity",
|
||||
"e.g. if base decimals for underlying asset are 6, base lot size is 100, and base position is 10000, then",
|
||||
"UI position is 1"
|
||||
"Number of base native in a base lot. Must be a power of 10.",
|
||||
"",
|
||||
"Example: If base decimals for the underlying asset is 6, base lot size",
|
||||
"is 100 and and base position lots is 10_000 then base position native is",
|
||||
"1_000_000 and base position ui is 1."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "maintBaseAssetWeight",
|
||||
"docs": [
|
||||
"These weights apply to the base position. The quote position has",
|
||||
"no explicit weight (but may be covered by the overall pnl asset weight)."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -4430,6 +4476,9 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "openInterest",
|
||||
"docs": [
|
||||
"Number of base lot pairs currently active in the market. Always >= 0."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
|
@ -4441,12 +4490,15 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "registrationTime",
|
||||
"docs": [
|
||||
"Timestamp in seconds that the market was registered at."
|
||||
],
|
||||
"type": "u64"
|
||||
},
|
||||
{
|
||||
"name": "minFunding",
|
||||
"docs": [
|
||||
"Funding"
|
||||
"Minimal funding rate per day, must be <= 0."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
|
@ -4454,22 +4506,38 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "maxFunding",
|
||||
"docs": [
|
||||
"Maximal funding rate per day, must be >= 0."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "impactQuantity",
|
||||
"docs": [
|
||||
"For funding, get the impact price this many base lots deep into the book."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "longFunding",
|
||||
"docs": [
|
||||
"Current long funding value. Increasing it means that every long base lot",
|
||||
"needs to pay that amount in funding.",
|
||||
"",
|
||||
"PerpPosition uses and tracks it settle funding. Updated by the perp",
|
||||
"keeper instruction."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "shortFunding",
|
||||
"docs": [
|
||||
"See long_funding."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -4484,7 +4552,8 @@ export type MangoV4 = {
|
|||
{
|
||||
"name": "liquidationFee",
|
||||
"docs": [
|
||||
"Fees"
|
||||
"Fees",
|
||||
"Fee for base position liquidation"
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
|
@ -4492,12 +4561,18 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "makerFee",
|
||||
"docs": [
|
||||
"Fee when matching maker orders. May be negative."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "takerFee",
|
||||
"docs": [
|
||||
"Fee for taker orders, may not be negative."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -4522,6 +4597,9 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "feePenalty",
|
||||
"docs": [
|
||||
"Fee (in quote native) to charge for ioc orders"
|
||||
],
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
|
@ -4581,6 +4659,10 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "reduceOnly",
|
||||
"docs": [
|
||||
"If true, users may no longer increase their market exposure. Only actions",
|
||||
"that reduce their position are still allowed."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -4594,6 +4676,9 @@ export type MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "maintPnlAssetWeight",
|
||||
"docs": [
|
||||
"Weights for full perp market health, if positive"
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -5668,14 +5753,23 @@ export type MangoV4 = {
|
|||
"fields": [
|
||||
{
|
||||
"name": "tag",
|
||||
"docs": [
|
||||
"NodeTag"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "ownerSlot",
|
||||
"docs": [
|
||||
"Index into the owning MangoAccount's PerpOpenOrders"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "orderType",
|
||||
"docs": [
|
||||
"PostOrderType, this was added for TradingView move order"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -5707,24 +5801,39 @@ export type MangoV4 = {
|
|||
{
|
||||
"name": "key",
|
||||
"docs": [
|
||||
"The binary tree key"
|
||||
"The binary tree key, see new_node_key()"
|
||||
],
|
||||
"type": "u128"
|
||||
},
|
||||
{
|
||||
"name": "owner",
|
||||
"docs": [
|
||||
"Address of the owning MangoAccount"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "quantity",
|
||||
"docs": [
|
||||
"Number of base lots to buy or sell, always >=1"
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"docs": [
|
||||
"The time the order was placed"
|
||||
],
|
||||
"type": "u64"
|
||||
},
|
||||
{
|
||||
"name": "pegLimit",
|
||||
"docs": [
|
||||
"If the effective price of an oracle pegged order exceeds this limit,",
|
||||
"it will be considered invalid and may be removed.",
|
||||
"",
|
||||
"Only applicable in the oracle_pegged OrderTree"
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
|
@ -12101,17 +12210,27 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "settleTokenIndex",
|
||||
"docs": [
|
||||
"Token index that settlements happen in.",
|
||||
"",
|
||||
"Currently required to be 0, USDC. In the future settlement",
|
||||
"may be allowed to happen in other tokens."
|
||||
],
|
||||
"type": "u16"
|
||||
},
|
||||
{
|
||||
"name": "perpMarketIndex",
|
||||
"docs": [
|
||||
"Lookup indices"
|
||||
"Index of this perp market. Other data, like the MangoAccount's PerpPosition",
|
||||
"reference this market via this index. Unique for this group's perp markets."
|
||||
],
|
||||
"type": "u16"
|
||||
},
|
||||
{
|
||||
"name": "blocked1",
|
||||
"docs": [
|
||||
"Field used to contain the trusted_market flag and is now unused."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -12130,10 +12249,18 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "baseDecimals",
|
||||
"docs": [
|
||||
"Number of decimals used for the base token.",
|
||||
"",
|
||||
"Used to convert the oracle's price into a native/native price."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"docs": [
|
||||
"Name. Trailing zero bytes are ignored."
|
||||
],
|
||||
"type": {
|
||||
"array": [
|
||||
"u8",
|
||||
|
@ -12143,28 +12270,46 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "bids",
|
||||
"docs": [
|
||||
"Address of the BookSide account for bids"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "asks",
|
||||
"docs": [
|
||||
"Address of the BookSide account for asks"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "eventQueue",
|
||||
"docs": [
|
||||
"Address of the EventQueue account"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "oracle",
|
||||
"docs": [
|
||||
"Oracle account address"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "oracleConfig",
|
||||
"docs": [
|
||||
"Oracle configuration"
|
||||
],
|
||||
"type": {
|
||||
"defined": "OracleConfig"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stablePriceModel",
|
||||
"docs": [
|
||||
"Maintains a stable price based on the oracle price that is less volatile."
|
||||
],
|
||||
"type": {
|
||||
"defined": "StablePriceModel"
|
||||
}
|
||||
|
@ -12172,21 +12317,31 @@ export const IDL: MangoV4 = {
|
|||
{
|
||||
"name": "quoteLotSize",
|
||||
"docs": [
|
||||
"Number of quote native that reresents min tick"
|
||||
"Number of quote native in a quote lot. Must be a power of 10.",
|
||||
"",
|
||||
"Primarily useful for increasing the tick size on the market: A lot price",
|
||||
"of 1 becomes a native price of quote_lot_size/base_lot_size becomes a",
|
||||
"ui price of quote_lot_size*base_decimals/base_lot_size/quote_decimals."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "baseLotSize",
|
||||
"docs": [
|
||||
"Represents number of base native quantity",
|
||||
"e.g. if base decimals for underlying asset are 6, base lot size is 100, and base position is 10000, then",
|
||||
"UI position is 1"
|
||||
"Number of base native in a base lot. Must be a power of 10.",
|
||||
"",
|
||||
"Example: If base decimals for the underlying asset is 6, base lot size",
|
||||
"is 100 and and base position lots is 10_000 then base position native is",
|
||||
"1_000_000 and base position ui is 1."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "maintBaseAssetWeight",
|
||||
"docs": [
|
||||
"These weights apply to the base position. The quote position has",
|
||||
"no explicit weight (but may be covered by the overall pnl asset weight)."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -12211,6 +12366,9 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "openInterest",
|
||||
"docs": [
|
||||
"Number of base lot pairs currently active in the market. Always >= 0."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
|
@ -12222,12 +12380,15 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "registrationTime",
|
||||
"docs": [
|
||||
"Timestamp in seconds that the market was registered at."
|
||||
],
|
||||
"type": "u64"
|
||||
},
|
||||
{
|
||||
"name": "minFunding",
|
||||
"docs": [
|
||||
"Funding"
|
||||
"Minimal funding rate per day, must be <= 0."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
|
@ -12235,22 +12396,38 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "maxFunding",
|
||||
"docs": [
|
||||
"Maximal funding rate per day, must be >= 0."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "impactQuantity",
|
||||
"docs": [
|
||||
"For funding, get the impact price this many base lots deep into the book."
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "longFunding",
|
||||
"docs": [
|
||||
"Current long funding value. Increasing it means that every long base lot",
|
||||
"needs to pay that amount in funding.",
|
||||
"",
|
||||
"PerpPosition uses and tracks it settle funding. Updated by the perp",
|
||||
"keeper instruction."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "shortFunding",
|
||||
"docs": [
|
||||
"See long_funding."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -12265,7 +12442,8 @@ export const IDL: MangoV4 = {
|
|||
{
|
||||
"name": "liquidationFee",
|
||||
"docs": [
|
||||
"Fees"
|
||||
"Fees",
|
||||
"Fee for base position liquidation"
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
|
@ -12273,12 +12451,18 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "makerFee",
|
||||
"docs": [
|
||||
"Fee when matching maker orders. May be negative."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "takerFee",
|
||||
"docs": [
|
||||
"Fee for taker orders, may not be negative."
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -12303,6 +12487,9 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "feePenalty",
|
||||
"docs": [
|
||||
"Fee (in quote native) to charge for ioc orders"
|
||||
],
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
|
@ -12362,6 +12549,10 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "reduceOnly",
|
||||
"docs": [
|
||||
"If true, users may no longer increase their market exposure. Only actions",
|
||||
"that reduce their position are still allowed."
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -12375,6 +12566,9 @@ export const IDL: MangoV4 = {
|
|||
},
|
||||
{
|
||||
"name": "maintPnlAssetWeight",
|
||||
"docs": [
|
||||
"Weights for full perp market health, if positive"
|
||||
],
|
||||
"type": {
|
||||
"defined": "I80F48"
|
||||
}
|
||||
|
@ -13449,14 +13643,23 @@ export const IDL: MangoV4 = {
|
|||
"fields": [
|
||||
{
|
||||
"name": "tag",
|
||||
"docs": [
|
||||
"NodeTag"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "ownerSlot",
|
||||
"docs": [
|
||||
"Index into the owning MangoAccount's PerpOpenOrders"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "orderType",
|
||||
"docs": [
|
||||
"PostOrderType, this was added for TradingView move order"
|
||||
],
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
|
@ -13488,24 +13691,39 @@ export const IDL: MangoV4 = {
|
|||
{
|
||||
"name": "key",
|
||||
"docs": [
|
||||
"The binary tree key"
|
||||
"The binary tree key, see new_node_key()"
|
||||
],
|
||||
"type": "u128"
|
||||
},
|
||||
{
|
||||
"name": "owner",
|
||||
"docs": [
|
||||
"Address of the owning MangoAccount"
|
||||
],
|
||||
"type": "publicKey"
|
||||
},
|
||||
{
|
||||
"name": "quantity",
|
||||
"docs": [
|
||||
"Number of base lots to buy or sell, always >=1"
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"docs": [
|
||||
"The time the order was placed"
|
||||
],
|
||||
"type": "u64"
|
||||
},
|
||||
{
|
||||
"name": "pegLimit",
|
||||
"docs": [
|
||||
"If the effective price of an oracle pegged order exceeds this limit,",
|
||||
"it will be considered invalid and may be removed.",
|
||||
"",
|
||||
"Only applicable in the oracle_pegged OrderTree"
|
||||
],
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue