From 7a62dc7dc05705ea26583a9e7b8db2a9edd2e49a Mon Sep 17 00:00:00 2001 From: emerson Date: Thu, 17 Nov 2022 16:19:34 +0800 Subject: [PATCH] Update gateway action --- programs/adapter-jupiter/src/lib.rs | 3 +-- target/idl/adapter_jupiter.json | 5 ----- target/types/adapter_jupiter.ts | 10 ---------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/programs/adapter-jupiter/src/lib.rs b/programs/adapter-jupiter/src/lib.rs index dd80a19..c32605e 100644 --- a/programs/adapter-jupiter/src/lib.rs +++ b/programs/adapter-jupiter/src/lib.rs @@ -66,10 +66,9 @@ pub mod adapter_jupiter { #[derive(Accounts)] pub struct Action<'info> { + // TODO: Add constraints pub gateway_authority: Signer<'info>, /// CHECK: Safe - pub gateway_state_info: AccountInfo<'info>, - /// CHECK: Safe pub base_program_id: AccountInfo<'info>, } diff --git a/target/idl/adapter_jupiter.json b/target/idl/adapter_jupiter.json index 45dbfeb..57d626e 100644 --- a/target/idl/adapter_jupiter.json +++ b/target/idl/adapter_jupiter.json @@ -10,11 +10,6 @@ "isMut": false, "isSigner": true }, - { - "name": "gatewayStateInfo", - "isMut": false, - "isSigner": false - }, { "name": "baseProgramId", "isMut": false, diff --git a/target/types/adapter_jupiter.ts b/target/types/adapter_jupiter.ts index fa87144..c463831 100644 --- a/target/types/adapter_jupiter.ts +++ b/target/types/adapter_jupiter.ts @@ -10,11 +10,6 @@ export type AdapterJupiter = { "isMut": false, "isSigner": true }, - { - "name": "gatewayStateInfo", - "isMut": false, - "isSigner": false - }, { "name": "baseProgramId", "isMut": false, @@ -102,11 +97,6 @@ export const IDL: AdapterJupiter = { "isMut": false, "isSigner": true }, - { - "name": "gatewayStateInfo", - "isMut": false, - "isSigner": false - }, { "name": "baseProgramId", "isMut": false,