Created
September 5, 2025 10:19
-
-
Save zhe-t/112fbff0e0795e5105aaf6240fb3e147 to your computer and use it in GitHub Desktop.
IDL for Poll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "address": "po11oacBudCHcbqXWhmuuQmRnzKmkjwmkvwzHZvAX9u", | |
| "metadata": { | |
| "name": "betmore_core_program", | |
| "version": "0.2.0", | |
| "spec": "0.1.0", | |
| "description": "Created with Anchor" | |
| }, | |
| "instructions": [ | |
| { | |
| "name": "close_bet", | |
| "discriminator": [ | |
| 185, | |
| 206, | |
| 13, | |
| 184, | |
| 176, | |
| 108, | |
| 140, | |
| 107 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "owner" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "close_bet_v2", | |
| "discriminator": [ | |
| 216, | |
| 136, | |
| 52, | |
| 200, | |
| 109, | |
| 75, | |
| 99, | |
| 245 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "owner" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "delete_user", | |
| "discriminator": [ | |
| 186, | |
| 85, | |
| 17, | |
| 249, | |
| 219, | |
| 231, | |
| 98, | |
| 251 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "expire_game", | |
| "discriminator": [ | |
| 208, | |
| 21, | |
| 87, | |
| 131, | |
| 242, | |
| 43, | |
| 252, | |
| 144 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "game", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "authority", | |
| "docs": [ | |
| "same as withdraw authority" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "user1", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user2", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user3", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user4", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user5", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner1", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner2", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner3", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner4", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner5", | |
| "optional": true | |
| }, | |
| { | |
| "name": "user1_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| }, | |
| { | |
| "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": "user2_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| }, | |
| { | |
| "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": "user3_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| }, | |
| { | |
| "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": "user4_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| }, | |
| { | |
| "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": "user5_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| }, | |
| { | |
| "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": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 95, | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "mint" | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "game_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "initialize", | |
| "docs": [ | |
| "********** PROTOCOL **********" | |
| ], | |
| "discriminator": [ | |
| 175, | |
| 175, | |
| 109, | |
| 31, | |
| 13, | |
| 152, | |
| 155, | |
| 237 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "initialize_bet", | |
| "docs": [ | |
| "********** BETS V1 **********" | |
| ], | |
| "discriminator": [ | |
| 195, | |
| 185, | |
| 122, | |
| 189, | |
| 203, | |
| 104, | |
| 43, | |
| 57 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint" | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "question", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "expected_user_count", | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "minimum_vote_count", | |
| "type": "u32" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "initialize_bet_v2", | |
| "docs": [ | |
| "********** BETS V2 **********" | |
| ], | |
| "discriminator": [ | |
| 10, | |
| 190, | |
| 137, | |
| 221, | |
| 251, | |
| 149, | |
| 235, | |
| 112 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint" | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "question", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "expected_user_count", | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "minimum_vote_count", | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "is_creator_resolver", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "initialize_devnet_usdc_mint", | |
| "discriminator": [ | |
| 204, | |
| 193, | |
| 208, | |
| 26, | |
| 91, | |
| 96, | |
| 108, | |
| 109 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "initialize_game", | |
| "docs": [ | |
| "********** GAMES **********" | |
| ], | |
| "discriminator": [ | |
| 44, | |
| 62, | |
| 102, | |
| 247, | |
| 126, | |
| 208, | |
| 130, | |
| 215 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint" | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 95, | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "game", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "_game_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "expected_player_count", | |
| "type": "u32" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "initialize_protocol_vault", | |
| "discriminator": [ | |
| 88, | |
| 117, | |
| 249, | |
| 165, | |
| 56, | |
| 10, | |
| 90, | |
| 27 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "mint" | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "rent" | |
| }, | |
| { | |
| "name": "vault", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "update_authority" | |
| }, | |
| { | |
| "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": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "initialize_user", | |
| "docs": [ | |
| "********** USERS **********" | |
| ], | |
| "discriminator": [ | |
| 111, | |
| 17, | |
| 185, | |
| 250, | |
| 60, | |
| 122, | |
| 38, | |
| 254 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "initiate_vote", | |
| "discriminator": [ | |
| 215, | |
| 74, | |
| 171, | |
| 133, | |
| 198, | |
| 30, | |
| 142, | |
| 136 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "initiate_vote_v2", | |
| "discriminator": [ | |
| 76, | |
| 94, | |
| 2, | |
| 176, | |
| 148, | |
| 9, | |
| 68, | |
| 159 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "migrate_bet_v1_to_v2", | |
| "discriminator": [ | |
| 25, | |
| 180, | |
| 240, | |
| 16, | |
| 167, | |
| 129, | |
| 129, | |
| 94 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "bet_v1", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "bet_v2", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "mint_devnet_usdc", | |
| "discriminator": [ | |
| 17, | |
| 8, | |
| 186, | |
| 3, | |
| 22, | |
| 108, | |
| 220, | |
| 105 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "mint", | |
| "writable": true | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "to", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "payer" | |
| }, | |
| { | |
| "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 | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "args": [] | |
| }, | |
| { | |
| "name": "place_game_wager", | |
| "discriminator": [ | |
| 148, | |
| 192, | |
| 97, | |
| 183, | |
| 177, | |
| 181, | |
| 170, | |
| 130 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "user_ata", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| }, | |
| { | |
| "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": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "game", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 95, | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "game_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "amount", | |
| "type": "u128" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "place_vote", | |
| "discriminator": [ | |
| 95, | |
| 34, | |
| 235, | |
| 31, | |
| 136, | |
| 43, | |
| 28, | |
| 223 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "outcome", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "place_vote_v2", | |
| "discriminator": [ | |
| 83, | |
| 206, | |
| 50, | |
| 211, | |
| 6, | |
| 120, | |
| 43, | |
| 74 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "outcome", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "place_wager", | |
| "discriminator": [ | |
| 225, | |
| 163, | |
| 84, | |
| 25, | |
| 21, | |
| 42, | |
| 138, | |
| 30 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "docs": [ | |
| "Needs to be mut as we're updating several fields" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "docs": [ | |
| "User account creating the bet" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user_ata", | |
| "docs": [ | |
| "User's USDC token account" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| }, | |
| { | |
| "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": "owner", | |
| "docs": [ | |
| "Needs to be mut, paying for fees" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool for fees" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "amount", | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "side", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "place_wager_v2", | |
| "discriminator": [ | |
| 5, | |
| 90, | |
| 161, | |
| 81, | |
| 70, | |
| 110, | |
| 213, | |
| 38 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "docs": [ | |
| "Needs to be mut as we're updating several fields" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "docs": [ | |
| "User account creating the bet" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user_ata", | |
| "docs": [ | |
| "User's USDC token account" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| }, | |
| { | |
| "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": "owner", | |
| "docs": [ | |
| "Needs to be mut, paying for fees" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool for fees" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "amount", | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "side", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "settle_bet", | |
| "discriminator": [ | |
| 115, | |
| 55, | |
| 234, | |
| 177, | |
| 227, | |
| 4, | |
| 10, | |
| 67 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "user1", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user2", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user3", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user4", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user5", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner1", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner2", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner3", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner4", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner5", | |
| "optional": true | |
| }, | |
| { | |
| "name": "user1_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| }, | |
| { | |
| "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": "user2_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| }, | |
| { | |
| "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": "user3_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| }, | |
| { | |
| "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": "user4_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| }, | |
| { | |
| "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": "user5_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| }, | |
| { | |
| "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": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool for fees" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "mint" | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "settle_bet_batch_v2", | |
| "discriminator": [ | |
| 143, | |
| 198, | |
| 1, | |
| 173, | |
| 134, | |
| 7, | |
| 13, | |
| 176 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "user1", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user2", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user3", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user4", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user5", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner1", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner2", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner3", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner4", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner5", | |
| "optional": true | |
| }, | |
| { | |
| "name": "user1_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| }, | |
| { | |
| "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": "user2_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| }, | |
| { | |
| "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": "user3_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| }, | |
| { | |
| "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": "user4_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| }, | |
| { | |
| "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": "user5_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| }, | |
| { | |
| "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": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "mint" | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "batch_number", | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "users_per_batch", | |
| "type": "u32" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "settle_game", | |
| "discriminator": [ | |
| 96, | |
| 54, | |
| 24, | |
| 189, | |
| 239, | |
| 198, | |
| 86, | |
| 29 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "game", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "user1", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user2", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user3", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user4", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user5", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner1", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner2", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner3", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner4", | |
| "optional": true | |
| }, | |
| { | |
| "name": "owner5", | |
| "optional": true | |
| }, | |
| { | |
| "name": "user1_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner1" | |
| }, | |
| { | |
| "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": "user2_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner2" | |
| }, | |
| { | |
| "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": "user3_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner3" | |
| }, | |
| { | |
| "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": "user4_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner4" | |
| }, | |
| { | |
| "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": "user5_ata", | |
| "writable": true, | |
| "optional": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner5" | |
| }, | |
| { | |
| "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": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 95, | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "mint" | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "game_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "submit_score", | |
| "discriminator": [ | |
| 212, | |
| 128, | |
| 45, | |
| 22, | |
| 112, | |
| 82, | |
| 85, | |
| 235 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "game", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 103, | |
| 97, | |
| 109, | |
| 101, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "game_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "owner" | |
| }, | |
| { | |
| "name": "creator" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "withdraw_authority", | |
| "docs": [ | |
| "Not writable but used to validate only the admin can submit a score" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "game_id", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "score", | |
| "type": "u32" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "try_cancel_wager", | |
| "discriminator": [ | |
| 64, | |
| 27, | |
| 211, | |
| 13, | |
| 72, | |
| 81, | |
| 43, | |
| 157 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "docs": [ | |
| "Needs to be mut as we're updating several fields" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "docs": [ | |
| "User account creating the bet" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user_ata", | |
| "docs": [ | |
| "User's USDC token account" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| }, | |
| { | |
| "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": "owner", | |
| "docs": [ | |
| "Needs to be mut, paying for fees" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool for fees" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "try_cancel_wager_v2", | |
| "discriminator": [ | |
| 93, | |
| 159, | |
| 86, | |
| 78, | |
| 60, | |
| 83, | |
| 79, | |
| 100 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "docs": [ | |
| "Needs to be mut as we're updating several fields" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user", | |
| "docs": [ | |
| "User account creating the bet" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 115, | |
| 101, | |
| 114, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "user_ata", | |
| "docs": [ | |
| "User's USDC token account" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "owner" | |
| }, | |
| { | |
| "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": "owner", | |
| "docs": [ | |
| "Needs to be mut, paying for fees" | |
| ], | |
| "writable": true, | |
| "signer": true | |
| }, | |
| { | |
| "name": "pool_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 111, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "pool", | |
| "docs": [ | |
| "USDC pool for fees" | |
| ], | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "account", | |
| "path": "pool_authority" | |
| }, | |
| { | |
| "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": "creator" | |
| }, | |
| { | |
| "name": "bet", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 98, | |
| 101, | |
| 116, | |
| 58, | |
| 58, | |
| 118, | |
| 50 | |
| ] | |
| }, | |
| { | |
| "kind": "arg", | |
| "path": "wager_id" | |
| }, | |
| { | |
| "kind": "account", | |
| "path": "creator" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint", | |
| "docs": [ | |
| "USDC mint for fees" | |
| ] | |
| }, | |
| { | |
| "name": "associated_token_program", | |
| "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "fee_payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [ | |
| { | |
| "name": "wager_id", | |
| "type": "u64" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "update_usdc_mint", | |
| "discriminator": [ | |
| 131, | |
| 156, | |
| 29, | |
| 130, | |
| 237, | |
| 52, | |
| 110, | |
| 164 | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "protocol", | |
| "writable": true, | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 112, | |
| 114, | |
| 111, | |
| 116, | |
| 111, | |
| 99, | |
| 111, | |
| 108, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "update_authority", | |
| "pda": { | |
| "seeds": [ | |
| { | |
| "kind": "const", | |
| "value": [ | |
| 117, | |
| 112, | |
| 100, | |
| 97, | |
| 116, | |
| 101, | |
| 95, | |
| 97, | |
| 117, | |
| 116, | |
| 104, | |
| 111, | |
| 114, | |
| 105, | |
| 116, | |
| 121, | |
| 58, | |
| 58, | |
| 118, | |
| 49 | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "mint" | |
| }, | |
| { | |
| "name": "token_program", | |
| "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" | |
| }, | |
| { | |
| "name": "system_program", | |
| "address": "11111111111111111111111111111111" | |
| }, | |
| { | |
| "name": "payer", | |
| "writable": true, | |
| "signer": true | |
| } | |
| ], | |
| "args": [] | |
| } | |
| ], | |
| "accounts": [ | |
| { | |
| "name": "Bet", | |
| "discriminator": [ | |
| 147, | |
| 23, | |
| 35, | |
| 59, | |
| 15, | |
| 75, | |
| 155, | |
| 32 | |
| ] | |
| }, | |
| { | |
| "name": "BetV2", | |
| "discriminator": [ | |
| 177, | |
| 48, | |
| 173, | |
| 225, | |
| 67, | |
| 11, | |
| 81, | |
| 190 | |
| ] | |
| }, | |
| { | |
| "name": "Game", | |
| "discriminator": [ | |
| 27, | |
| 90, | |
| 166, | |
| 125, | |
| 74, | |
| 100, | |
| 121, | |
| 18 | |
| ] | |
| }, | |
| { | |
| "name": "Protocol", | |
| "discriminator": [ | |
| 45, | |
| 39, | |
| 101, | |
| 43, | |
| 115, | |
| 72, | |
| 131, | |
| 40 | |
| ] | |
| }, | |
| { | |
| "name": "User", | |
| "discriminator": [ | |
| 159, | |
| 117, | |
| 95, | |
| 227, | |
| 239, | |
| 151, | |
| 58, | |
| 236 | |
| ] | |
| } | |
| ], | |
| "errors": [ | |
| { | |
| "code": 6000, | |
| "name": "InvalidUSDCMint", | |
| "msg": "Invalid USDC mint" | |
| }, | |
| { | |
| "code": 6001, | |
| "name": "InvalidUpdateAuthority", | |
| "msg": "Invalid update authority" | |
| }, | |
| { | |
| "code": 6002, | |
| "name": "InvalidWithdrawAuthority", | |
| "msg": "Invalid withdraw authority" | |
| }, | |
| { | |
| "code": 6003, | |
| "name": "QuestionIsEmpty", | |
| "msg": "Question is empty" | |
| }, | |
| { | |
| "code": 6004, | |
| "name": "ExpectedUserCountIsZero", | |
| "msg": "Expected user count is zero" | |
| }, | |
| { | |
| "code": 6005, | |
| "name": "MinimumVoteCountIsZero", | |
| "msg": "Minimum vote count is zero" | |
| }, | |
| { | |
| "code": 6006, | |
| "name": "MinimumVoteCountIsGreaterThanExpectedUserCount", | |
| "msg": "Minimum vote count is greater than expected user count" | |
| }, | |
| { | |
| "code": 6007, | |
| "name": "ExpectedUserCountIsGreaterThanFive", | |
| "msg": "Expected user count is greater than 5" | |
| }, | |
| { | |
| "code": 6008, | |
| "name": "MinimumVoteCountIsGreaterThanFive", | |
| "msg": "Minimum vote count is greater than 5" | |
| }, | |
| { | |
| "code": 6009, | |
| "name": "UserHasAlreadyPlacedAWager", | |
| "msg": "User has already placed a wager" | |
| }, | |
| { | |
| "code": 6010, | |
| "name": "UserDoesNotHaveEnoughUSDC", | |
| "msg": "User does not have enough USDC" | |
| }, | |
| { | |
| "code": 6011, | |
| "name": "InvalidAmount", | |
| "msg": "Invalid amount" | |
| }, | |
| { | |
| "code": 6012, | |
| "name": "MarketMustBePending", | |
| "msg": "Market must be pending before placing a wager" | |
| }, | |
| { | |
| "code": 6013, | |
| "name": "ResolvedOutcomeIsSet", | |
| "msg": "Resolved outcome is set" | |
| }, | |
| { | |
| "code": 6014, | |
| "name": "InvalidSide", | |
| "msg": "Invalid side" | |
| }, | |
| { | |
| "code": 6015, | |
| "name": "UserHasNotPlacedAWager", | |
| "msg": "User has not placed a wager" | |
| }, | |
| { | |
| "code": 6016, | |
| "name": "UserHasAlreadyVoted", | |
| "msg": "User has already voted" | |
| }, | |
| { | |
| "code": 6017, | |
| "name": "MarketMustBeResolving", | |
| "msg": "You must initiate a vote before placing a vote" | |
| }, | |
| { | |
| "code": 6018, | |
| "name": "MarketMustBeResolved", | |
| "msg": "Market must be resolved before settling" | |
| }, | |
| { | |
| "code": 6019, | |
| "name": "InvalidOutcome", | |
| "msg": "Invalid outcome, must be for or against" | |
| }, | |
| { | |
| "code": 6020, | |
| "name": "MinVotesNotPlaced", | |
| "msg": "Minimum votes not placed" | |
| }, | |
| { | |
| "code": 6021, | |
| "name": "UserAlreadyProvided", | |
| "msg": "User already provided" | |
| }, | |
| { | |
| "code": 6022, | |
| "name": "InvalidUsers", | |
| "msg": "Invalid users" | |
| }, | |
| { | |
| "code": 6023, | |
| "name": "WagerAlreadySettled", | |
| "msg": "Wager already settled" | |
| }, | |
| { | |
| "code": 6024, | |
| "name": "UserHasNoWager", | |
| "msg": "User has no wager" | |
| }, | |
| { | |
| "code": 6025, | |
| "name": "MissingUserOwner", | |
| "msg": "Missing user owner" | |
| }, | |
| { | |
| "code": 6026, | |
| "name": "MissingUserATA", | |
| "msg": "Missing user ATA" | |
| }, | |
| { | |
| "code": 6027, | |
| "name": "UserHasWagers", | |
| "msg": "User has wagers" | |
| }, | |
| { | |
| "code": 6028, | |
| "name": "InvalidWagerId", | |
| "msg": "Invalid wager id" | |
| }, | |
| { | |
| "code": 6029, | |
| "name": "DisabledInstruction", | |
| "msg": "Disabled instruction" | |
| }, | |
| { | |
| "code": 6030, | |
| "name": "MaximumWagersReached", | |
| "msg": "Maximum wagers reached" | |
| }, | |
| { | |
| "code": 6031, | |
| "name": "NotEnoughBets", | |
| "msg": "Not enough bets" | |
| }, | |
| { | |
| "code": 6032, | |
| "name": "InvalidBatchNumber", | |
| "msg": "Invalid batch number" | |
| }, | |
| { | |
| "code": 6033, | |
| "name": "BetAlreadyMigrated", | |
| "msg": "Bet already migrated" | |
| }, | |
| { | |
| "code": 6034, | |
| "name": "BatchAlreadyProcessed", | |
| "msg": "Batch already processed" | |
| }, | |
| { | |
| "code": 6035, | |
| "name": "UserIsNotCreator", | |
| "msg": "User is not creator" | |
| }, | |
| { | |
| "code": 6036, | |
| "name": "InvalidGameId", | |
| "msg": "Invalid game id" | |
| }, | |
| { | |
| "code": 6037, | |
| "name": "ExpectedPlayerCountIsLessThanTwo", | |
| "msg": "Expected player count is less than two" | |
| }, | |
| { | |
| "code": 6038, | |
| "name": "ExpectedPlayerCountIsGreaterThanMax", | |
| "msg": "Expected player count is greater than max" | |
| }, | |
| { | |
| "code": 6039, | |
| "name": "GameMustBeOpenOrInProgress", | |
| "msg": "Game must be open or in progress" | |
| }, | |
| { | |
| "code": 6040, | |
| "name": "UserAlreadyHasWager", | |
| "msg": "User already has a wager" | |
| }, | |
| { | |
| "code": 6041, | |
| "name": "GameMustBeInProgress", | |
| "msg": "Game must be in progress" | |
| }, | |
| { | |
| "code": 6042, | |
| "name": "InvalidScore", | |
| "msg": "Invalid score" | |
| }, | |
| { | |
| "code": 6043, | |
| "name": "WagerNotPlaced", | |
| "msg": "Wager not placed" | |
| }, | |
| { | |
| "code": 6044, | |
| "name": "GameAlreadySettled", | |
| "msg": "This game has already been settled" | |
| }, | |
| { | |
| "code": 6045, | |
| "name": "AllScoresNotSubmitted", | |
| "msg": "This game cannot be settled as it requires players to submit their scores" | |
| }, | |
| { | |
| "code": 6046, | |
| "name": "NoWinner", | |
| "msg": "No winner could be determined for this game" | |
| }, | |
| { | |
| "code": 6047, | |
| "name": "InvalidAuthority", | |
| "msg": "Invalid authority" | |
| }, | |
| { | |
| "code": 6048, | |
| "name": "InvalidUser", | |
| "msg": "Invalid user" | |
| }, | |
| { | |
| "code": 6049, | |
| "name": "InvalidCreator", | |
| "msg": "Invalid creator" | |
| }, | |
| { | |
| "code": 6050, | |
| "name": "InvalidOwner", | |
| "msg": "Invalid owner" | |
| } | |
| ], | |
| "types": [ | |
| { | |
| "name": "Bet", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "creator", | |
| "docs": [ | |
| "Pubkey of the creator of the bet", | |
| "No privileges are given to the creator", | |
| "Just used to identify the creator of the bet" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "created_at", | |
| "docs": [ | |
| "Timestamp of when the bet was created" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "updated_at", | |
| "docs": [ | |
| "Timestamp of when the bet was last updated" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "resolved_at", | |
| "docs": [ | |
| "Timestamp of when the bet was resolved", | |
| "If the bet is not resolved, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "distributed_at", | |
| "docs": [ | |
| "Timestamp of when the bet was distributed", | |
| "If the bet is not distributed, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "vote_initiated_at", | |
| "docs": [ | |
| "Timestamp of when the vote was initiated", | |
| "If the bet is not in the vote phase, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "status", | |
| "docs": [ | |
| "Status of the bet", | |
| "See enums::market_status.rs for more information" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "MarketStatus" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "resolved_outcome", | |
| "docs": [ | |
| "The outcome of the bet", | |
| "NotResolvedYet, For, Against" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "question", | |
| "docs": [ | |
| "The question of the bet" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "name": "expected_user_count", | |
| "docs": [ | |
| "The expected number of users to join the bet" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "minimum_vote_count", | |
| "docs": [ | |
| "The minimum number of votes to reach before the bet can be resolved" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_oi_for", | |
| "docs": [ | |
| "The total OI for the bet" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "total_oi_against", | |
| "docs": [ | |
| "The total OI against the bet" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "pool_address", | |
| "docs": [ | |
| "The address of the pool that the bet is associated with" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "wagers", | |
| "docs": [ | |
| "The wagers of the bet" | |
| ], | |
| "type": { | |
| "vec": { | |
| "defined": { | |
| "name": "Wager" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "votes", | |
| "docs": [ | |
| "The votes of the bet" | |
| ], | |
| "type": { | |
| "vec": { | |
| "defined": { | |
| "name": "Vote" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "pool_bump", | |
| "docs": [ | |
| "The pool bump" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "wager_id", | |
| "docs": [ | |
| "The wager_id used for seed" | |
| ], | |
| "type": "u64" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "BetV2", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "creator", | |
| "docs": [ | |
| "Pubkey of the creator of the bet", | |
| "No privileges are given to the creator", | |
| "Just used to identify the creator of the bet" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "created_at", | |
| "docs": [ | |
| "Timestamp of when the bet was created" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "updated_at", | |
| "docs": [ | |
| "Timestamp of when the bet was last updated" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "resolved_at", | |
| "docs": [ | |
| "Timestamp of when the bet was resolved", | |
| "If the bet is not resolved, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "distributed_at", | |
| "docs": [ | |
| "Timestamp of when the bet was distributed", | |
| "If the bet is not distributed, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "vote_initiated_at", | |
| "docs": [ | |
| "Timestamp of when the vote was initiated", | |
| "If the bet is not in the vote phase, this will be 0" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "status", | |
| "docs": [ | |
| "Status of the bet", | |
| "See enums::market_status.rs for more information" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "MarketStatus" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "resolved_outcome", | |
| "docs": [ | |
| "The outcome of the bet", | |
| "NotResolvedYet, For, Against" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "question", | |
| "docs": [ | |
| "The question of the bet" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "name": "expected_user_count", | |
| "docs": [ | |
| "The expected number of users to join the bet" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "minimum_vote_count", | |
| "docs": [ | |
| "The minimum number of votes to reach before the bet can be resolved" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_oi_for", | |
| "docs": [ | |
| "The total OI for the bet" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "total_oi_against", | |
| "docs": [ | |
| "The total OI against the bet" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "pool_address", | |
| "docs": [ | |
| "The address of the pool that the bet is associated with" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "wagers", | |
| "docs": [ | |
| "The wagers of the bet" | |
| ], | |
| "type": { | |
| "vec": { | |
| "defined": { | |
| "name": "Wager" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "votes", | |
| "docs": [ | |
| "The votes of the bet" | |
| ], | |
| "type": { | |
| "vec": { | |
| "defined": { | |
| "name": "Vote" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "pool_bump", | |
| "docs": [ | |
| "The pool bump" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "wager_id", | |
| "docs": [ | |
| "The wager_id used for seed" | |
| ], | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "is_creator_resolver", | |
| "docs": [ | |
| "Whether the creator is the resolver", | |
| "If true, the creator can resolve the bet", | |
| "If false, the creator can only place a wager or vote" | |
| ], | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "settled_user_count", | |
| "docs": [ | |
| "Track how many users have been settled" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_batches_required", | |
| "docs": [ | |
| "Calculate during first settlement" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "padding1", | |
| "type": { | |
| "array": [ | |
| "u8", | |
| 32 | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "padding2", | |
| "type": { | |
| "array": [ | |
| "u8", | |
| 32 | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "Game", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "id", | |
| "docs": [ | |
| "Same as game_id, this is used as a seed" | |
| ], | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "creator", | |
| "docs": [ | |
| "Pubkey of the creator of the game" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "created_at", | |
| "docs": [ | |
| "Timestamp of when the game was created" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "escrow", | |
| "docs": [ | |
| "Pubkey of the escrow account", | |
| "Validated in instructions" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "escrow_bump", | |
| "docs": [ | |
| "Bump of the escrow account" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "status", | |
| "docs": [ | |
| "Status of the game" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "GameStatus" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "expected_player_count", | |
| "docs": [ | |
| "Expected number of players to join the game" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "player_count", | |
| "docs": [ | |
| "Number of players in the game" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "wagers", | |
| "docs": [ | |
| "Wagers of the game" | |
| ], | |
| "type": { | |
| "vec": { | |
| "defined": { | |
| "name": "GameWager" | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "GameStatus", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "Open" | |
| }, | |
| { | |
| "name": "InProgress" | |
| }, | |
| { | |
| "name": "AllScoresSubmittedNotSettled" | |
| }, | |
| { | |
| "name": "Settled" | |
| }, | |
| { | |
| "name": "Expired" | |
| }, | |
| { | |
| "name": "Refunded" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "GameWager", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "player", | |
| "docs": [ | |
| "Pubkey of the player who placed the wager" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "created_at", | |
| "docs": [ | |
| "Timestamp of when the wager was created" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "amount", | |
| "docs": [ | |
| "Amount of the wager" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "score", | |
| "docs": [ | |
| "Score of the wager" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "status", | |
| "docs": [ | |
| "Status of the wager" | |
| ], | |
| "type": { | |
| "defined": { | |
| "name": "GameWagerStatus" | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "GameWagerStatus", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "Empty" | |
| }, | |
| { | |
| "name": "Placed" | |
| }, | |
| { | |
| "name": "SubmittedScore" | |
| }, | |
| { | |
| "name": "VerifiedPending" | |
| }, | |
| { | |
| "name": "VerifiedWin" | |
| }, | |
| { | |
| "name": "VerifiedLoss" | |
| }, | |
| { | |
| "name": "Refunded" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "MarketStatus", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "Draft" | |
| }, | |
| { | |
| "name": "Pending" | |
| }, | |
| { | |
| "name": "Resolving" | |
| }, | |
| { | |
| "name": "Resolved" | |
| }, | |
| { | |
| "name": "Distributed" | |
| }, | |
| { | |
| "name": "Canceled" | |
| }, | |
| { | |
| "name": "Refunded" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "Outcome", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "NotResolvedYet" | |
| }, | |
| { | |
| "name": "For" | |
| }, | |
| { | |
| "name": "Against" | |
| }, | |
| { | |
| "name": "Tied" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "Protocol", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "protocol_bump", | |
| "docs": [ | |
| "Internal PDA bump" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "update_authority", | |
| "docs": [ | |
| "Internal PDA update authority" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "update_bump", | |
| "docs": [ | |
| "Internal PDA bump" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "withdraw_authority", | |
| "docs": [ | |
| "External withdraw authority" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "total_wagers_count", | |
| "docs": [ | |
| "Cumulative number of wagers" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_wagered_amount", | |
| "docs": [ | |
| "Cumulative amount wagered" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "total_users_count", | |
| "docs": [ | |
| "Cumulative number of users" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_fees_generated_amount", | |
| "docs": [ | |
| "Cumulative amount of fees generated" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "fee_vault_address", | |
| "docs": [ | |
| "Fee vault address" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "fee_vault_balance", | |
| "docs": [ | |
| "Fee vault balance" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "fee_vault_last_updated", | |
| "docs": [ | |
| "Last time the fee vault was updated" | |
| ], | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "fee_percentage", | |
| "docs": [ | |
| "Fee percentage scaled by PERCENT_SCALE" | |
| ], | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "usdc_mint", | |
| "docs": [ | |
| "USDC mint address" | |
| ], | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "total_unique_bets", | |
| "docs": [ | |
| "Total number of unique bets (i.e. markets)" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_games_count", | |
| "docs": [ | |
| "Total number of games" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_wagered_games_amount", | |
| "docs": [ | |
| "Total amount wagered in games" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "padding4", | |
| "docs": [ | |
| "Padding" | |
| ], | |
| "type": { | |
| "array": [ | |
| "u8", | |
| 8 | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "User", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "total_wagers_count", | |
| "docs": [ | |
| "Cumulative number of wagers" | |
| ], | |
| "type": "u32" | |
| }, | |
| { | |
| "name": "total_wagered_amount", | |
| "docs": [ | |
| "Cumulative amount wagered" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "in_wager_amount", | |
| "docs": [ | |
| "Amount currently in a wager (i.e. locked)" | |
| ], | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "next_wager_id", | |
| "docs": [ | |
| "Next wager id" | |
| ], | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "next_game_id", | |
| "docs": [ | |
| "Next game id" | |
| ], | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "padding", | |
| "docs": [ | |
| "Padding" | |
| ], | |
| "type": { | |
| "array": [ | |
| "u8", | |
| 8 | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "Vote", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "user", | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "outcome", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "created_at", | |
| "type": "i64" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "Wager", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "user", | |
| "type": "pubkey" | |
| }, | |
| { | |
| "name": "amount", | |
| "type": "u128" | |
| }, | |
| { | |
| "name": "outcome", | |
| "type": { | |
| "defined": { | |
| "name": "Outcome" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "updated_at", | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "status", | |
| "type": { | |
| "defined": { | |
| "name": "WagerStatus" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "is_vote_initiator", | |
| "type": "bool" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "WagerStatus", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "Open" | |
| }, | |
| { | |
| "name": "SettledWin" | |
| }, | |
| { | |
| "name": "SettledLoss" | |
| }, | |
| { | |
| "name": "Refunded" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment