/** * Program IDL in camelCase format in order to be used in JS/TS. * * Note that this is only a type helper and is not the actual IDL. The original * IDL can be found at `target/idl/staking.json`. */ export type Staking = { "address": "9aU1jUaLwNm2nNcHBJYK5xmRtnKRmzCwgkEAtLS7PErA"; "metadata": { "name": "staking"; "version": "0.1.0"; "spec": "0.1.0"; "description": "Created with Anchor"; }; "instructions": [ { "name": "claim"; "discriminator": [ 62, 198, 214, 193, 213, 159, 108, 210 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; }, { "name": "flexibleStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": []; }, { "name": "initialize"; "discriminator": [ 175, 175, 109, 31, 13, 152, 155, 237 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; }, { "name": "config"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "mint"; "writable": true; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; } ]; }, { "name": "initializeFlexibleAccount"; "discriminator": [ 221, 56, 71, 160, 181, 190, 163, 233 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "flexibleStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; } ]; }, { "name": "initializeFlexibleVault"; "discriminator": [ 99, 130, 7, 207, 234, 66, 190, 103 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; }, { "name": "rewardRate"; "type": "u64"; }, { "name": "withdrawalDelayTime"; "type": "i64"; } ]; }, { "name": "initializeLockupVault"; "discriminator": [ 27, 150, 134, 210, 61, 225, 31, 178 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "lockupVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; }, { "kind": "arg"; "path": "index"; } ]; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u16"; }, { "name": "apy"; "type": "u16"; }, { "name": "lockupDuration"; "type": "i64"; }, { "name": "minStakeAmount"; "type": "u64"; } ]; }, { "name": "initializeUser"; "discriminator": [ 111, 17, 185, 250, 60, 122, 38, 254 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "userAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 117, 115, 101, 114 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; } ]; }, { "name": "lock"; "discriminator": [ 21, 19, 208, 43, 237, 62, 255, 87 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "lockupVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; }, { "kind": "arg"; "path": "vaultIndex"; } ]; }; }, { "name": "lockupStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; }, { "kind": "account"; "path": "lockupVault"; }, { "kind": "arg"; "path": "index"; } ]; }; }, { "name": "userAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 117, 115, 101, 114 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u32"; }, { "name": "vaultIndex"; "type": "u16"; }, { "name": "amount"; "type": "u64"; } ]; }, { "name": "stake"; "discriminator": [ 206, 176, 202, 18, 200, 209, 179, 108 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; }, { "name": "flexibleStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "amount"; "type": "u64"; } ]; }, { "name": "unlock"; "discriminator": [ 101, 155, 40, 21, 158, 189, 56, 203 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "lockupVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; }, { "kind": "arg"; "path": "vaultIndex"; } ]; }; }, { "name": "lockupStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; }, { "kind": "account"; "path": "lockupVault"; }, { "kind": "arg"; "path": "index"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "index"; "type": "u32"; }, { "name": "vaultIndex"; "type": "u16"; } ]; }, { "name": "updateAdmin"; "discriminator": [ 161, 176, 40, 213, 60, 184, 179, 228 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; } ]; "args": [ { "name": "newAdmin"; "type": "pubkey"; } ]; }, { "name": "updateFlexibleVault"; "discriminator": [ 87, 208, 178, 194, 205, 195, 38, 9 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; } ]; "args": [ { "name": "rewardRate"; "type": "u64"; }, { "name": "withdrawalDelayTime"; "type": "i64"; } ]; }, { "name": "updateLockupVault"; "discriminator": [ 97, 182, 205, 24, 81, 208, 14, 245 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "lockupVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 108, 111, 99, 107, 117, 112, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; }, { "kind": "arg"; "path": "index"; } ]; }; } ]; "args": [ { "name": "index"; "type": "u16"; }, { "name": "apy"; "type": "u16"; }, { "name": "lockupDuration"; "type": "i64"; }, { "name": "minStakeAmount"; "type": "u64"; } ]; }, { "name": "withdraw"; "discriminator": [ 183, 18, 70, 156, 148, 109, 161, 34 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; }, { "name": "flexibleStakingAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 115, 116, 97, 107, 105, 110, 103, 95, 97, 99, 99, 111, 117, 110, 116 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "withdrawPosition"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 119, 105, 116, 104, 100, 114, 97, 119, 95, 112, 111, 115, 105, 116, 105, 111, 110 ]; }, { "kind": "account"; "path": "user"; }, { "kind": "arg"; "path": "index"; } ]; }; }, { "name": "userAccount"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 117, 115, 101, 114 ]; }, { "kind": "account"; "path": "user"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u32"; }, { "name": "amount"; "type": "u64"; } ]; }, { "name": "withdrawDelay"; "discriminator": [ 242, 77, 33, 17, 78, 138, 123, 92 ]; "accounts": [ { "name": "user"; "writable": true; "signer": true; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "flexibleVault"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ]; }, { "kind": "account"; "path": "config"; } ]; }; }, { "name": "withdrawPosition"; "writable": true; "pda": { "seeds": [ { "kind": "const"; "value": [ 119, 105, 116, 104, 100, 114, 97, 119, 95, 112, 111, 115, 105, 116, 105, 111, 110 ]; }, { "kind": "account"; "path": "user"; }, { "kind": "arg"; "path": "index"; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedUser"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "user"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; }, { "name": "rent"; "address": "SysvarRent111111111111111111111111111111111"; } ]; "args": [ { "name": "index"; "type": "u32"; } ]; }, { "name": "withdrawFund"; "discriminator": [ 251, 169, 221, 19, 158, 53, 139, 10 ]; "accounts": [ { "name": "admin"; "writable": true; "signer": true; "relations": [ "config" ]; }, { "name": "config"; "pda": { "seeds": [ { "kind": "const"; "value": [ 99, 111, 110, 102, 105, 103 ]; } ]; }; }, { "name": "mint"; "writable": true; "relations": [ "config" ]; }, { "name": "associatedConfig"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "config"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "associatedAdmin"; "writable": true; "pda": { "seeds": [ { "kind": "account"; "path": "admin"; }, { "kind": "const"; "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ]; }, { "kind": "account"; "path": "mint"; } ]; "program": { "kind": "const"; "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ]; }; }; }, { "name": "systemProgram"; "address": "11111111111111111111111111111111"; }, { "name": "tokenProgram"; "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; }, { "name": "associatedTokenProgram"; "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; } ]; "args": [ { "name": "amount"; "type": "u64"; } ]; } ]; "accounts": [ { "name": "config"; "discriminator": [ 155, 12, 170, 224, 30, 250, 204, 130 ]; }, { "name": "flexibleStakingAccount"; "discriminator": [ 186, 120, 163, 113, 54, 8, 42, 26 ]; }, { "name": "flexibleVault"; "discriminator": [ 130, 117, 45, 73, 194, 128, 40, 130 ]; }, { "name": "lockupStakingAccount"; "discriminator": [ 51, 246, 157, 228, 138, 81, 17, 78 ]; }, { "name": "lockupVault"; "discriminator": [ 136, 189, 169, 42, 109, 35, 199, 63 ]; }, { "name": "user"; "discriminator": [ 159, 117, 95, 227, 239, 151, 58, 236 ]; }, { "name": "withdrawPosition"; "discriminator": [ 175, 91, 100, 5, 89, 176, 237, 4 ]; } ]; "events": [ { "name": "claimedEvent"; "discriminator": [ 144, 172, 209, 86, 144, 87, 84, 115 ]; }, { "name": "lockupEvent"; "discriminator": [ 119, 86, 39, 228, 50, 118, 159, 60 ]; }, { "name": "stakedEvent"; "discriminator": [ 81, 221, 186, 176, 240, 160, 193, 69 ]; }, { "name": "unlockEvent"; "discriminator": [ 105, 1, 235, 144, 68, 123, 75, 123 ]; }, { "name": "withdrawnDelayEvent"; "discriminator": [ 146, 221, 101, 60, 215, 6, 61, 53 ]; }, { "name": "withdrawnEvent"; "discriminator": [ 215, 234, 237, 115, 73, 123, 104, 146 ]; } ]; "errors": [ { "code": 6000; "name": "unauthorized"; "msg": "unauthorized"; }, { "code": 6001; "name": "adminIsSame"; "msg": "Admin is the same"; }, { "code": 6002; "name": "invalidAmount"; "msg": "Invalid amount"; }, { "code": 6003; "name": "invalidApy"; "msg": "Invalid apy"; }, { "code": 6004; "name": "locking"; "msg": "locking"; }, { "code": 6005; "name": "alreadyUnlocked"; "msg": "Already unlocked"; }, { "code": 6006; "name": "alreadyWithdrawnDelay"; "msg": "Already withdrawn delay"; }, { "code": 6007; "name": "withdrawalBeingDelayed"; "msg": "Withdrawal order is in the process of being delayed"; }, { "code": 6008; "name": "insufficientFund"; "msg": "Insufficient fund"; }, { "code": 6009; "name": "invalidIndex"; "msg": "Invalid index"; } ]; "types": [ { "name": "claimedEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "reward"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; }, { "name": "config"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "admin"; "type": "pubkey"; }, { "name": "mint"; "type": "pubkey"; } ]; }; }, { "name": "flexibleStakingAccount"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "owner"; "type": "pubkey"; }, { "name": "balance"; "type": "u64"; }, { "name": "reward"; "type": "u64"; }, { "name": "userRewardPerTokenPaid"; "type": "u128"; } ]; }; }, { "name": "flexibleVault"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "totalSupply"; "type": "u64"; }, { "name": "rewardPerTokenStored"; "type": "u128"; }, { "name": "rewardRate"; "type": "u64"; }, { "name": "lastUpdateTime"; "type": "i64"; }, { "name": "withdrawalDelayTime"; "type": "i64"; }, { "name": "totalRewardClaimed"; "type": "u64"; } ]; }; }, { "name": "lockupEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "index"; "type": "u32"; }, { "name": "amount"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; }, { "name": "lockupStakingAccount"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u32"; }, { "name": "owner"; "type": "pubkey"; }, { "name": "lockupVault"; "type": "pubkey"; }, { "name": "committedApy"; "type": "u16"; }, { "name": "lockedAmount"; "type": "u64"; }, { "name": "lockedAt"; "type": "i64"; }, { "name": "unlocked"; "type": "bool"; } ]; }; }, { "name": "lockupVault"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u16"; }, { "name": "apy"; "type": "u16"; }, { "name": "lockupDuration"; "type": "i64"; }, { "name": "minStakeAmount"; "type": "u64"; }, { "name": "totalLockedAmount"; "type": "u64"; }, { "name": "totalRewardClaimed"; "type": "u64"; } ]; }; }, { "name": "stakedEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "amount"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; }, { "name": "unlockEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "amount"; "type": "u64"; }, { "name": "reward"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; }, { "name": "user"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "latestWithdrawIndex"; "type": "u32"; }, { "name": "latestLockupIndex"; "type": "u32"; } ]; }; }, { "name": "withdrawPosition"; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": "u8"; }, { "name": "index"; "type": "u32"; }, { "name": "user"; "type": "pubkey"; }, { "name": "amount"; "type": "u64"; }, { "name": "startDelayTime"; "type": "i64"; }, { "name": "claimed"; "type": "bool"; } ]; }; }, { "name": "withdrawnDelayEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "index"; "type": "u32"; }, { "name": "amount"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; }, { "name": "withdrawnEvent"; "type": { "kind": "struct"; "fields": [ { "name": "user"; "type": "pubkey"; }, { "name": "index"; "type": "u32"; }, { "name": "amount"; "type": "u64"; }, { "name": "timestamp"; "type": "i64"; } ]; }; } ]; };