/** * 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_spl.json`. */ export type StakingSpl = { "address": "CpX1do1a4fB36B5sETTUW1kMLYTBnuSUPNosQM8LVQRQ", "metadata": { "name": "stakingSpl", "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": "treasury", "pda": { "seeds": [ { "kind": "const", "value": [ 116, 114, 101, 97, 115, 117, 114, 121 ] } ] } }, { "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" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint" }, { "kind": "account", "path": "user" } ] } }, { "name": "mint", "writable": true, "relations": [ "flexibleVault", "flexibleStakingAccount" ] }, { "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": "associatedTreasury", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "treasury" }, { "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": "treasury", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 116, 114, 101, 97, 115, 117, 114, 121 ] } ] } }, { "name": "systemProgram", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [ { "name": "bump", "type": "u8" }, { "name": "treasuryBump", "type": "u8" }, { "name": "feePercentage", "type": "u16" } ] }, { "name": "initializeFlexibleAccount", "discriminator": [ 221, 56, 71, 160, 181, 190, 163, 233 ], "accounts": [ { "name": "user", "writable": true, "signer": true }, { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint", "writable": true, "relations": [ "flexibleVault" ] }, { "name": "flexibleVault", "pda": { "seeds": [ { "kind": "const", "value": [ 102, 108, 101, 120, 105, 98, 108, 101, 95, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "config" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint" }, { "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": "mint", "writable": true }, { "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" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint", "writable": true }, { "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": "account", "path": "mint" }, { "kind": "arg", "path": "vaultIndex" } ] } }, { "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": "mint" }, { "kind": "account", "path": "user" } ] } }, { "name": "mint" }, { "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": "account", "path": "mint" }, { "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": "mint" }, { "kind": "account", "path": "user" } ] } }, { "name": "mint", "writable": true, "relations": [ "lockupVault", "userAccount" ] }, { "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" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint" }, { "kind": "account", "path": "user" } ] } }, { "name": "mint", "writable": true, "relations": [ "flexibleVault", "flexibleStakingAccount" ] }, { "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": "treasury", "pda": { "seeds": [ { "kind": "const", "value": [ 116, 114, 101, 97, 115, 117, 114, 121 ] } ] } }, { "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": "account", "path": "mint" }, { "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": [ "lockupVault", "lockupStakingAccount" ] }, { "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": "associatedTreasury", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "treasury" }, { "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": "updateFee", "discriminator": [ 232, 253, 195, 247, 148, 212, 73, 222 ], "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": "feePercentage", "type": "u16" } ] }, { "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": "mint", "writable": true, "relations": [ "flexibleVault" ] }, { "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" }, { "kind": "account", "path": "mint" } ] } } ], "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": "mint", "writable": true, "relations": [ "lockupVault" ] }, { "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": "account", "path": "mint" }, { "kind": "arg", "path": "vaultIndex" } ] } } ], "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" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint" }, { "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": "mint" }, { "kind": "account", "path": "user" }, { "kind": "arg", "path": "positionIndex" } ] } }, { "name": "userAccount", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 117, 115, 101, 114 ] }, { "kind": "account", "path": "mint" }, { "kind": "account", "path": "user" } ] } }, { "name": "mint", "writable": true, "relations": [ "flexibleVault", "flexibleStakingAccount", "userAccount" ] }, { "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" }, { "kind": "account", "path": "mint" } ] } }, { "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": "mint" }, { "kind": "account", "path": "user" }, { "kind": "arg", "path": "positionIndex" } ] } }, { "name": "mint", "writable": true, "relations": [ "flexibleVault", "withdrawPosition" ] }, { "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 }, { "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" } ] }, { "name": "withdrawRevenue", "discriminator": [ 58, 241, 152, 184, 104, 150, 169, 119 ], "accounts": [ { "name": "admin", "writable": true, "signer": true, "relations": [ "config" ] }, { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "treasury", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 116, 114, 101, 97, 115, 117, 114, 121 ] } ] } }, { "name": "mint", "writable": true }, { "name": "associatedTreasury", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "treasury" }, { "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": "treasury", "discriminator": [ 238, 239, 123, 238, 89, 1, 168, 253 ] }, { "name": "user", "discriminator": [ 159, 117, 95, 227, 239, 151, 58, 236 ] }, { "name": "withdrawPosition", "discriminator": [ 175, 91, 100, 5, 89, 176, 237, 4 ] } ], "events": [ { "name": "claimedFlexibleRewardEvent", "discriminator": [ 208, 212, 1, 80, 194, 4, 69, 43 ] }, { "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": "invalidFeePercentage", "msg": "Invalid fee percentage" }, { "code": 6003, "name": "invalidAmount", "msg": "Invalid amount" }, { "code": 6004, "name": "invalidApy", "msg": "Invalid apy" }, { "code": 6005, "name": "locking", "msg": "locking" }, { "code": 6006, "name": "alreadyUnlocked", "msg": "Already unlocked" }, { "code": 6007, "name": "alreadyWithdrawnDelay", "msg": "Already withdrawn delay" }, { "code": 6008, "name": "withdrawalBeingDelayed", "msg": "Withdrawal order is in the process of being delayed" }, { "code": 6009, "name": "insufficientFund", "msg": "Insufficient fund" }, { "code": 6010, "name": "invalidIndex", "msg": "Invalid index" } ], "types": [ { "name": "claimedFlexibleRewardEvent", "type": { "kind": "struct", "fields": [ { "name": "user", "type": "pubkey" }, { "name": "mint", "type": "pubkey" }, { "name": "reward", "type": "u64" }, { "name": "fee", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "config", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "admin", "type": "pubkey" }, { "name": "feePercentage", "type": "u16" } ] } }, { "name": "flexibleStakingAccount", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "mint", "type": "pubkey" }, { "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": "mint", "type": "pubkey" }, { "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": "mint", "type": "pubkey" }, { "name": "vaultIndex", "type": "u16" }, { "name": "index", "type": "u32" }, { "name": "amount", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "lockupStakingAccount", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "mint", "type": "pubkey" }, { "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": "mint", "type": "pubkey" }, { "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": "mint", "type": "pubkey" }, { "name": "amount", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "treasury", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" } ] } }, { "name": "unlockEvent", "type": { "kind": "struct", "fields": [ { "name": "user", "type": "pubkey" }, { "name": "mint", "type": "pubkey" }, { "name": "vaultIndex", "type": "u16" }, { "name": "index", "type": "u32" }, { "name": "amount", "type": "u64" }, { "name": "reward", "type": "u64" }, { "name": "fee", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "user", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "mint", "type": "pubkey" }, { "name": "latestWithdrawIndex", "type": "u32" }, { "name": "latestLockupIndex", "type": "u32" } ] } }, { "name": "withdrawPosition", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "mint", "type": "pubkey" }, { "name": "positionIndex", "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": "mint", "type": "pubkey" }, { "name": "positionIndex", "type": "u32" }, { "name": "amount", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "withdrawnEvent", "type": { "kind": "struct", "fields": [ { "name": "user", "type": "pubkey" }, { "name": "mint", "type": "pubkey" }, { "name": "positionIndex", "type": "u32" }, { "name": "amount", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } } ] };