From c32ee07a32290750694699af5f906d15431dd68e Mon Sep 17 00:00:00 2001 From: Dogukan Ali Gundogan <59707019+DogukanGun@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:36:40 +0100 Subject: [PATCH] Add idl changes --- program/idl.json | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/program/idl.json b/program/idl.json index 5af5b8d..892e842 100644 --- a/program/idl.json +++ b/program/idl.json @@ -5814,6 +5814,79 @@ } ] }, + { + "kind": "instructionNode", + "name": "withdrawExcessLamports", + "docs": ["Withdraws excess lamports from the account."], + "optionalAccountStrategy": "programId", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "sourceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": ["Account holding excess lamports."] + }, + { + "kind": "instructionAccountNode", + "name": "destinationAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": ["Destination account for withdrawn lamports."] + }, + { + "kind": "instructionAccountNode", + "name": "authority", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [ + "The source account's owner/delegate or its multisignature account." + ], + "defaultValue": { + "kind": "identityValueNode" + } + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "defaultValueStrategy": "omitted", + "docs": [], + "type": { + "kind": "numberTypeNode", + "format": "u8", + "endian": "le" + }, + "defaultValue": { + "kind": "numberValueNode", + "number": 38 + } + } + ], + "remainingAccounts": [ + { + "kind": "instructionRemainingAccountsNode", + "isOptional": true, + "isSigner": true, + "docs": [], + "value": { + "kind": "argumentValueNode", + "name": "multiSigners" + } + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ] + }, { "kind": "instructionNode", "name": "initializeMetadataPointer",