From 6fd18dc99eef0e587b8a9a8a762bcb1ac48aa949 Mon Sep 17 00:00:00 2001 From: Corto Date: Tue, 3 Dec 2024 16:38:17 +0800 Subject: [PATCH] Update to 1.1.7 idl --- idl/adrena.json | 43 ++++++++++++++++++++++++- idl/adrena.ts | 86 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 126 insertions(+), 3 deletions(-) diff --git a/idl/adrena.json b/idl/adrena.json index d88f152..fbbd4b1 100644 --- a/idl/adrena.json +++ b/idl/adrena.json @@ -1,5 +1,5 @@ { - "version": "1.1.4", + "version": "1.1.7", "name": "adrena", "instructions": [ { @@ -10053,6 +10053,12 @@ { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -10073,6 +10079,12 @@ { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -10093,6 +10105,12 @@ { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -11310,6 +11328,29 @@ ] } }, + { + "name": "LeverageCheckType", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Initial" + }, + { + "name": "AddCollateral" + }, + { + "name": "RemoveCollateral" + }, + { + "name": "IncreasePosition" + }, + { + "name": "Liquidate" + } + ] + } + }, { "name": "Side", "type": { diff --git a/idl/adrena.ts b/idl/adrena.ts index 5ce45f8..fcabc4d 100644 --- a/idl/adrena.ts +++ b/idl/adrena.ts @@ -1,5 +1,5 @@ export type Adrena = { - "version": "1.1.4", + "version": "1.1.7", "name": "adrena", "instructions": [ { @@ -10053,6 +10053,12 @@ export type Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -10073,6 +10079,12 @@ export type Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -10093,6 +10105,12 @@ export type Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -11310,6 +11328,29 @@ export type Adrena = { ] } }, + { + "name": "LeverageCheckType", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Initial" + }, + { + "name": "AddCollateral" + }, + { + "name": "RemoveCollateral" + }, + { + "name": "IncreasePosition" + }, + { + "name": "Liquidate" + } + ] + } + }, { "name": "Side", "type": { @@ -12228,7 +12269,7 @@ export type Adrena = { }; export const IDL: Adrena = { - "version": "1.1.4", + "version": "1.1.7", "name": "adrena", "instructions": [ { @@ -22282,6 +22323,12 @@ export const IDL: Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -22302,6 +22349,12 @@ export const IDL: Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -22322,6 +22375,12 @@ export const IDL: Adrena = { { "name": "leverage", "type": "u32" + }, + { + "name": "referrer", + "type": { + "option": "publicKey" + } } ] } @@ -23539,6 +23598,29 @@ export const IDL: Adrena = { ] } }, + { + "name": "LeverageCheckType", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Initial" + }, + { + "name": "AddCollateral" + }, + { + "name": "RemoveCollateral" + }, + { + "name": "IncreasePosition" + }, + { + "name": "Liquidate" + } + ] + } + }, { "name": "Side", "type": {