@bagsfm/bags-sdk
Version:
TypeScript SDK for Bags
1,424 lines • 142 kB
JSON
{
"address": "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG",
"metadata": {
"name": "cp_amm",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "add_liquidity",
"discriminator": [181, 157, 89, 67, 143, 182, 52, 72],
"accounts": [
{
"name": "pool",
"writable": true,
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "token_a_account",
"docs": ["The user token a account"],
"writable": true
},
{
"name": "token_b_account",
"docs": ["The user token b account"],
"writable": true
},
{
"name": "token_a_vault",
"docs": ["The vault token account for input token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_b_vault",
"docs": ["The vault token account for output token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_a_mint",
"docs": ["The mint of token a"],
"relations": ["pool"]
},
{
"name": "token_b_mint",
"docs": ["The mint of token b"],
"relations": ["pool"]
},
{
"name": "position_nft_account",
"docs": ["The token account for nft"]
},
{
"name": "owner",
"docs": ["owner of position"],
"signer": true
},
{
"name": "token_a_program",
"docs": ["Token a program"]
},
{
"name": "token_b_program",
"docs": ["Token b program"]
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "AddLiquidityParameters"
}
}
}
]
},
{
"name": "claim_partner_fee",
"discriminator": [97, 206, 39, 105, 94, 94, 126, 148],
"accounts": [
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"writable": true
},
{
"name": "token_a_account",
"docs": ["The treasury token a account"],
"writable": true
},
{
"name": "token_b_account",
"docs": ["The treasury token b account"],
"writable": true
},
{
"name": "token_a_vault",
"docs": ["The vault token account for input token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_b_vault",
"docs": ["The vault token account for output token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_a_mint",
"docs": ["The mint of token a"],
"relations": ["pool"]
},
{
"name": "token_b_mint",
"docs": ["The mint of token b"],
"relations": ["pool"]
},
{
"name": "partner",
"signer": true,
"relations": ["pool"]
},
{
"name": "token_a_program",
"docs": ["Token a program"]
},
{
"name": "token_b_program",
"docs": ["Token b program"]
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "max_amount_a",
"type": "u64"
},
{
"name": "max_amount_b",
"type": "u64"
}
]
},
{
"name": "claim_position_fee",
"discriminator": [180, 38, 154, 17, 133, 33, 162, 211],
"accounts": [
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "token_a_account",
"docs": ["The user token a account"],
"writable": true
},
{
"name": "token_b_account",
"docs": ["The user token b account"],
"writable": true
},
{
"name": "token_a_vault",
"docs": ["The vault token account for input token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_b_vault",
"docs": ["The vault token account for output token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_a_mint",
"docs": ["The mint of token a"],
"relations": ["pool"]
},
{
"name": "token_b_mint",
"docs": ["The mint of token b"],
"relations": ["pool"]
},
{
"name": "position_nft_account",
"docs": ["The token account for nft"]
},
{
"name": "owner",
"docs": ["owner of position"],
"signer": true
},
{
"name": "token_a_program",
"docs": ["Token a program"]
},
{
"name": "token_b_program",
"docs": ["Token b program"]
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "claim_protocol_fee",
"discriminator": [165, 228, 133, 48, 99, 249, 255, 33],
"accounts": [
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"writable": true
},
{
"name": "token_a_vault",
"docs": ["The vault token account for input token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_b_vault",
"docs": ["The vault token account for output token"],
"writable": true,
"relations": ["pool"]
},
{
"name": "token_a_mint",
"docs": ["The mint of token a"],
"relations": ["pool"]
},
{
"name": "token_b_mint",
"docs": ["The mint of token b"],
"relations": ["pool"]
},
{
"name": "token_a_account",
"docs": ["The treasury token a account"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
153, 10, 107, 154, 255, 249, 210, 173, 176, 67, 220, 214, 152, 71, 46, 146, 161, 33, 81, 148, 166, 119, 5, 189, 142, 11, 57, 68, 162, 70, 126,
100
]
},
{
"kind": "account",
"path": "token_a_program"
},
{
"kind": "account",
"path": "token_a_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": "token_b_account",
"docs": ["The treasury token b account"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
153, 10, 107, 154, 255, 249, 210, 173, 176, 67, 220, 214, 152, 71, 46, 146, 161, 33, 81, 148, 166, 119, 5, 189, 142, 11, 57, 68, 162, 70, 126,
100
]
},
{
"kind": "account",
"path": "token_b_program"
},
{
"kind": "account",
"path": "token_b_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": "claim_fee_operator",
"docs": ["Claim fee operator"]
},
{
"name": "operator",
"docs": ["Operator"],
"signer": true,
"relations": ["claim_fee_operator"]
},
{
"name": "token_a_program",
"docs": ["Token a program"]
},
{
"name": "token_b_program",
"docs": ["Token b program"]
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "claim_reward",
"discriminator": [149, 95, 181, 242, 94, 90, 158, 162],
"accounts": [
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"writable": true,
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "reward_vault",
"docs": ["The vault token account for reward token"],
"writable": true
},
{
"name": "reward_mint"
},
{
"name": "user_token_account",
"writable": true
},
{
"name": "position_nft_account",
"docs": ["The token account for nft"]
},
{
"name": "owner",
"docs": ["owner of position"],
"signer": true
},
{
"name": "token_program"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "close_claim_fee_operator",
"discriminator": [38, 134, 82, 216, 95, 124, 17, 99],
"accounts": [
{
"name": "claim_fee_operator",
"writable": true
},
{
"name": "rent_receiver",
"writable": true
},
{
"name": "admin",
"signer": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "close_config",
"discriminator": [145, 9, 72, 157, 95, 125, 61, 85],
"accounts": [
{
"name": "config",
"writable": true
},
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "rent_receiver",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "close_position",
"discriminator": [123, 134, 81, 0, 49, 68, 98, 98],
"accounts": [
{
"name": "position_nft_mint",
"docs": ["position_nft_mint"],
"writable": true
},
{
"name": "position_nft_account",
"docs": ["The token account for nft"],
"writable": true
},
{
"name": "pool",
"writable": true,
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "rent_receiver",
"writable": true
},
{
"name": "owner",
"docs": ["Owner of position"],
"signer": true
},
{
"name": "token_program",
"docs": ["Program to create NFT mint/token account and transfer for token22 account"],
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "create_claim_fee_operator",
"discriminator": [169, 62, 207, 107, 58, 187, 162, 109],
"accounts": [
{
"name": "claim_fee_operator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [99, 102, 95, 111, 112, 101, 114, 97, 116, 111, 114]
},
{
"kind": "account",
"path": "operator"
}
]
}
},
{
"name": "operator"
},
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "create_config",
"docs": ["ADMIN FUNCTIONS /////"],
"discriminator": [201, 207, 243, 114, 75, 111, 47, 189],
"accounts": [
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [99, 111, 110, 102, 105, 103]
},
{
"kind": "arg",
"path": "config_parameters.index"
}
]
}
},
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "config_parameters",
"type": {
"defined": {
"name": "ConfigParameters"
}
}
}
]
},
{
"name": "create_position",
"discriminator": [48, 215, 197, 153, 96, 203, 180, 133],
"accounts": [
{
"name": "owner"
},
{
"name": "position_nft_mint",
"docs": ["position_nft_mint"],
"writable": true,
"signer": true
},
{
"name": "position_nft_account",
"docs": ["position nft account"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, 110, 116]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "pool",
"writable": true
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "payer",
"docs": ["Address paying to create the position. Can be anyone"],
"writable": true,
"signer": true
},
{
"name": "token_program",
"docs": ["Program to create NFT mint/token account and transfer for token22 account"],
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "create_token_badge",
"discriminator": [88, 206, 0, 91, 60, 175, 151, 118],
"accounts": [
{
"name": "token_badge",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [116, 111, 107, 101, 110, 95, 98, 97, 100, 103, 101]
},
{
"kind": "account",
"path": "token_mint"
}
]
}
},
{
"name": "token_mint"
},
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "fund_reward",
"discriminator": [188, 50, 249, 165, 93, 151, 38, 63],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "reward_vault",
"writable": true
},
{
"name": "reward_mint"
},
{
"name": "funder_token_account",
"writable": true
},
{
"name": "funder",
"signer": true
},
{
"name": "token_program"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "carry_forward",
"type": "bool"
}
]
},
{
"name": "initialize_customizable_pool",
"discriminator": [20, 161, 241, 24, 189, 221, 180, 2],
"accounts": [
{
"name": "creator"
},
{
"name": "position_nft_mint",
"docs": ["position_nft_mint"],
"writable": true,
"signer": true
},
{
"name": "position_nft_account",
"docs": ["position nft account"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, 110, 116]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "payer",
"docs": ["Address paying to create the pool. Can be anyone"],
"writable": true,
"signer": true
},
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"docs": ["Initialize an account to store the pool state"],
"writable": true
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "token_a_mint",
"docs": ["Token a mint"]
},
{
"name": "token_b_mint",
"docs": ["Token b mint"]
},
{
"name": "token_a_vault",
"docs": ["Token a vault for the pool"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116]
},
{
"kind": "account",
"path": "token_a_mint"
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "token_b_vault",
"docs": ["Token b vault for the pool"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116]
},
{
"kind": "account",
"path": "token_b_mint"
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "payer_token_a",
"docs": ["payer token a account"],
"writable": true
},
{
"name": "payer_token_b",
"docs": ["creator token b account"],
"writable": true
},
{
"name": "token_a_program",
"docs": ["Program to create mint account and mint tokens"]
},
{
"name": "token_b_program",
"docs": ["Program to create mint account and mint tokens"]
},
{
"name": "token_2022_program",
"docs": ["Program to create NFT mint/token account and transfer for token22 account"],
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "InitializeCustomizablePoolParameters"
}
}
}
]
},
{
"name": "initialize_pool",
"docs": ["USER FUNCTIONS ////"],
"discriminator": [95, 180, 10, 172, 84, 174, 232, 40],
"accounts": [
{
"name": "creator"
},
{
"name": "position_nft_mint",
"docs": ["position_nft_mint"],
"writable": true,
"signer": true
},
{
"name": "position_nft_account",
"docs": ["position nft account"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, 110, 116]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "payer",
"docs": ["Address paying to create the pool. Can be anyone"],
"writable": true,
"signer": true
},
{
"name": "config",
"docs": ["Which config the pool belongs to."]
},
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"docs": ["Initialize an account to store the pool state"],
"writable": true
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 115, 105, 116, 105, 111, 110]
},
{
"kind": "account",
"path": "position_nft_mint"
}
]
}
},
{
"name": "token_a_mint",
"docs": ["Token a mint"]
},
{
"name": "token_b_mint",
"docs": ["Token b mint"]
},
{
"name": "token_a_vault",
"docs": ["Token a vault for the pool"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116]
},
{
"kind": "account",
"path": "token_a_mint"
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "token_b_vault",
"docs": ["Token b vault for the pool"],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116]
},
{
"kind": "account",
"path": "token_b_mint"
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "payer_token_a",
"docs": ["payer token a account"],
"writable": true
},
{
"name": "payer_token_b",
"docs": ["creator token b account"],
"writable": true
},
{
"name": "token_a_program",
"docs": ["Program to create mint account and mint tokens"]
},
{
"name": "token_b_program",
"docs": ["Program to create mint account and mint tokens"]
},
{
"name": "token_2022_program",
"docs": ["Program to create NFT mint/token account and transfer for token22 account"],
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "InitializePoolParameters"
}
}
}
]
},
{
"name": "initialize_reward",
"discriminator": [95, 135, 192, 196, 242, 129, 230, 68],
"accounts": [
{
"name": "pool_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "pool",
"writable": true
},
{
"name": "reward_vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [114, 101, 119, 97, 114, 100, 95, 118, 97, 117, 108, 116]
},
{
"kind": "account",
"path": "pool"
},
{
"kind": "arg",
"path": "reward_index"
}
]
}
},
{
"name": "reward_mint"
},
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
},
{
"name": "reward_duration",
"type": "u64"
},
{
"name": "funder",
"type": "pubkey"
}
]
},
{
"name": "lock_position",
"discriminator": [227, 62, 2, 252, 247, 10, 171, 185],
"accounts": [
{
"name": "pool",
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "vesting",
"writable": true,
"signer": true
},
{
"name": "position_nft_account",
"docs": ["The token account for nft"]
},
{
"name": "owner",
"docs": ["owner of position"],
"signer": true
},
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "VestingParameters"
}
}
}
]
},
{
"name": "permanent_lock_position",
"discriminator": [165, 176, 125, 6, 231, 171, 186, 213],
"accounts": [
{
"name": "pool",
"writable": true,
"relations": ["position"]
},
{
"name": "position",
"writable": true
},
{
"name": "position_n