{ "version": "0.1.0", "name": "anchor_counter", "instructions": [ { "name": "delegate", "accounts": [ { "name": "payer", "isSigner": true }, { "name": "pda", "isMut": true, "docs": ["CHECK The pda to delegate"] }, { "name": "owner_program" }, { "name": "buffer", "isMut": true, "docs": ["CHECK The temporary buffer account used during delegation"] }, { "name": "delegation_record", "isMut": true }, { "name": "delegate_account_seeds", "isMut": true }, { "name": "delegation_program" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [], "discriminant": { "type": "u8", "value": 90, "bytes": [90, 147, 75, 178, 85, 88, 4, 137] } }, { "name": "increment", "accounts": [ { "name": "counter", "isMut": true } ], "args": [], "discriminant": { "type": "u8", "value": 11, "bytes": [11, 18, 104, 9, 104, 174, 59, 33] } }, { "name": "initialize", "accounts": [ { "name": "counter", "isMut": true }, { "name": "user", "isMut": true, "isSigner": true }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [], "discriminant": { "type": "u8", "value": 175, "bytes": [175, 175, 109, 31, 13, 152, 155, 237] } }, { "name": "process_undelegation", "accounts": [ { "name": "base_account", "isMut": true }, { "name": "buffer" }, { "name": "payer", "isMut": true }, { "name": "system_program" } ], "args": [ { "name": "account_seeds", "type": { "vec": "bytes" }, "attrs": [] } ], "discriminant": { "type": "u8", "value": 196, "bytes": [196, 28, 41, 206, 48, 37, 51, 167] } } ], "accounts": [ { "name": "Counter", "type": { "kind": "struct", "fields": [ { "name": "count", "type": "u64", "attrs": [] } ] } } ], "types": [ { "name": "Counter", "type": { "kind": "struct", "fields": [ { "name": "count", "type": "u64", "attrs": [] } ] } } ], "metadata": { "origin": "anchor", "address": "852a53jomx7dGmkpbFPGXNJymRxywo3WsH1vusNASJRr" } }