{ "address": "852a53jomx7dGmkpbFPGXNJymRxywo3WsH1vusNASJRr", "metadata": { "name": "anchor_counter", "version": "0.1.0", "spec": "0.1.0", "description": "Created with Anchor" }, "instructions": [ { "name": "delegate", "docs": [ "Delegate the account to the delegation program" ], "discriminator": [ 90, 147, 75, 178, 85, 88, 4, 137 ], "accounts": [ { "name": "payer", "signer": true }, { "name": "pda", "docs": [ "CHECK The pda to delegate" ], "writable": true }, { "name": "owner_program" }, { "name": "buffer", "docs": [ "CHECK The temporary buffer account used during delegation" ], "writable": true }, { "name": "delegation_record", "writable": true }, { "name": "delegate_account_seeds", "writable": true }, { "name": "delegation_program" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [] }, { "name": "increment", "docs": [ "Increment the counter." ], "discriminator": [ 11, 18, 104, 9, 104, 174, 59, 33 ], "accounts": [ { "name": "counter", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 116, 101, 115, 116, 45, 112, 100, 97 ] } ] } } ], "args": [] }, { "name": "initialize", "docs": [ "Initialize the counter." ], "discriminator": [ 175, 175, 109, 31, 13, 152, 155, 237 ], "accounts": [ { "name": "counter", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 116, 101, 115, 116, 45, 112, 100, 97 ] } ] } }, { "name": "user", "writable": true, "signer": true }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [] }, { "name": "process_undelegation", "discriminator": [ 196, 28, 41, 206, 48, 37, 51, 167 ], "accounts": [ { "name": "base_account", "writable": true }, { "name": "buffer" }, { "name": "payer", "writable": true }, { "name": "system_program" } ], "args": [ { "name": "account_seeds", "type": { "vec": "bytes" } } ] } ], "accounts": [ { "name": "Counter", "discriminator": [ 255, 176, 4, 245, 188, 253, 124, 25 ] } ], "types": [ { "name": "Counter", "type": { "kind": "struct", "fields": [ { "name": "count", "type": "u64" } ] } } ] }