{
  "address": "6QtLot4uztCfjUuPreoiYPc3e1gH2fg6pq8hKYyvCP6B",
  "metadata": {
    "name": "outcome",
    "version": "0.1.0",
    "spec": "0.1.0",
    "description": "Outcome-first deterministic runtime"
  },
  "instructions": [
    {
      "name": "admin_pause",
      "discriminator": [
        13,
        109,
        240,
        129,
        86,
        245,
        182,
        45
      ],
      "accounts": [
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.runtime_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "authority",
          "signer": true
        }
      ],
      "args": [
        {
          "name": "paused",
          "type": "bool"
        }
      ]
    },
    {
      "name": "admin_withdraw",
      "discriminator": [
        160,
        166,
        147,
        222,
        46,
        220,
        75,
        224
      ],
      "accounts": [
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.runtime_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "authority",
          "signer": true,
          "relations": [
            "outcome_config"
          ]
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.runtime_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "destination",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "lamports",
          "type": "u64"
        }
      ]
    },
    {
      "name": "attest_winners",
      "discriminator": [
        68,
        84,
        121,
        104,
        4,
        187,
        43,
        111
      ],
      "accounts": [
        {
          "name": "attester",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "outcome_resolution",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  114,
                  101,
                  115,
                  111,
                  108,
                  117,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "rng_v2_state.compiled_artifact_hash",
                "account": "RngV2State"
              }
            ]
          }
        },
        {
          "name": "operator",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "AttestWinnersArgs"
            }
          }
        }
      ]
    },
    {
      "name": "claim_sortition_ticket",
      "discriminator": [
        211,
        44,
        82,
        85,
        62,
        1,
        222,
        85
      ],
      "accounts": [
        {
          "name": "participant",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "ticket_commit",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  116,
                  105,
                  99,
                  107,
                  101,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              },
              {
                "kind": "arg",
                "path": "args.ticket_id"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ClaimSortitionTicketArgs"
            }
          }
        }
      ]
    },
    {
      "name": "close_sortition_ticket",
      "discriminator": [
        153,
        187,
        116,
        171,
        153,
        203,
        163,
        175
      ],
      "accounts": [
        {
          "name": "caller",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "ticket_commit",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  116,
                  105,
                  99,
                  107,
                  101,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              },
              {
                "kind": "arg",
                "path": "args.ticket_id"
              }
            ]
          }
        },
        {
          "name": "owner",
          "writable": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "treasury",
          "writable": true
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "CloseSortitionTicketArgs"
            }
          }
        }
      ]
    },
    {
      "name": "create_sortition_draw",
      "discriminator": [
        34,
        93,
        252,
        138,
        225,
        227,
        198,
        146
      ],
      "accounts": [
        {
          "name": "authority",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "CreateSortitionDrawArgs"
            }
          }
        }
      ]
    },
    {
      "name": "expire_rng_v2",
      "discriminator": [
        130,
        229,
        147,
        58,
        56,
        212,
        164,
        95
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "operator",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "docs": [
            "not the operator-controlled outcome_config.treasury (else self-hosted regrind is free)."
          ],
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ExpireRngV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "expire_sealed_rng_v2",
      "discriminator": [
        20,
        50,
        70,
        45,
        142,
        224,
        3,
        177
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "operator",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "docs": [
            "protocol-global ProgramConfig.treasury, not the operator-controlled outcome_config.treasury."
          ],
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ExpireSealedRngV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "finalize_compiled_artifact",
      "discriminator": [
        133,
        66,
        77,
        26,
        133,
        31,
        143,
        150
      ],
      "accounts": [
        {
          "name": "publisher",
          "signer": true
        },
        {
          "name": "approved_outcome_artifact",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "approved_outcome_artifact.compiled_artifact_hash",
                "account": "ApprovedOutcomeArtifact"
              }
            ]
          }
        }
      ],
      "args": []
    },
    {
      "name": "init_compiled_artifact_chunk",
      "discriminator": [
        36,
        212,
        98,
        81,
        183,
        15,
        66,
        243
      ],
      "accounts": [
        {
          "name": "publisher",
          "writable": true,
          "signer": true
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact_chunk",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116,
                  95,
                  99,
                  104,
                  117,
                  110,
                  107
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              },
              {
                "kind": "arg",
                "path": "args.chunk_index"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitCompiledArtifactChunkArgs"
            }
          }
        }
      ]
    },
    {
      "name": "init_sortition_economics",
      "discriminator": [
        73,
        65,
        214,
        131,
        31,
        194,
        67,
        85
      ],
      "accounts": [
        {
          "name": "authority",
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitSortitionEconomicsArgs"
            }
          }
        }
      ]
    },
    {
      "name": "initialize_outcome_config",
      "discriminator": [
        140,
        236,
        44,
        107,
        18,
        47,
        130,
        218
      ],
      "accounts": [
        {
          "name": "authority",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "treasury",
          "writable": true
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitializeOutcomeConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "initialize_program_config",
      "discriminator": [
        6,
        131,
        61,
        237,
        40,
        110,
        83,
        124
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "program",
          "address": "6QtLot4uztCfjUuPreoiYPc3e1gH2fg6pq8hKYyvCP6B"
        },
        {
          "name": "program_data",
          "docs": [
            "authority are validated by `upgradeable_loader::upgrade_authority`."
          ]
        },
        {
          "name": "upgrade_authority",
          "signer": true
        },
        {
          "name": "program_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitializeProgramConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "initialize_unicorn_g_config",
      "discriminator": [
        226,
        245,
        244,
        183,
        249,
        12,
        177,
        88
      ],
      "accounts": [
        {
          "name": "admin",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "unicorn_g_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  117,
                  110,
                  105,
                  99,
                  111,
                  114,
                  110,
                  95,
                  103,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitializeUnicornGConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "prepare_rng_v2",
      "discriminator": [
        43,
        154,
        152,
        188,
        141,
        63,
        93,
        226
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "PrepareRngV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "prepare_rng_v2_unicorn",
      "discriminator": [
        105,
        112,
        232,
        241,
        83,
        129,
        37,
        37
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "unicorn_g_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  117,
                  110,
                  105,
                  99,
                  111,
                  114,
                  110,
                  95,
                  103,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "PrepareRngV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "prepare_slot_spin",
      "discriminator": [
        170,
        236,
        194,
        198,
        137,
        17,
        136,
        161
      ],
      "accounts": [
        {
          "name": "actor",
          "docs": [
            "The player (session key). Signs the bet, pays the refundable state rent,",
            "and receives the payout at settle."
          ],
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "PrepareSlotSpinArgs"
            }
          }
        }
      ]
    },
    {
      "name": "recover_program_config_admin",
      "discriminator": [
        202,
        224,
        129,
        102,
        129,
        177,
        223,
        8
      ],
      "accounts": [
        {
          "name": "program_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "program",
          "address": "6QtLot4uztCfjUuPreoiYPc3e1gH2fg6pq8hKYyvCP6B"
        },
        {
          "name": "program_data",
          "docs": [
            "authority are validated by `upgradeable_loader::upgrade_authority`."
          ]
        },
        {
          "name": "upgrade_authority",
          "signer": true
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "RecoverProgramConfigAdminArgs"
            }
          }
        }
      ]
    },
    {
      "name": "refresh_master_seed",
      "discriminator": [
        217,
        245,
        210,
        23,
        62,
        147,
        246,
        173
      ],
      "accounts": [
        {
          "name": "authority",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "RefreshMasterSeedArgs"
            }
          }
        }
      ]
    },
    {
      "name": "register_sortition_ticket",
      "discriminator": [
        198,
        251,
        219,
        22,
        220,
        119,
        113,
        239
      ],
      "accounts": [
        {
          "name": "participant",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "ticket_commit",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  116,
                  105,
                  99,
                  107,
                  101,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              },
              {
                "kind": "arg",
                "path": "args.ticket_id"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "RegisterSortitionTicketArgs"
            }
          }
        }
      ]
    },
    {
      "name": "register_sortition_ticket_paid",
      "discriminator": [
        200,
        68,
        10,
        249,
        22,
        220,
        231,
        45
      ],
      "accounts": [
        {
          "name": "participant",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "ticket_commit",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  116,
                  105,
                  99,
                  107,
                  101,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              },
              {
                "kind": "arg",
                "path": "args.ticket_id"
              }
            ]
          }
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "treasury",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "RegisterSortitionTicketArgs"
            }
          }
        }
      ]
    },
    {
      "name": "resolve_conditions",
      "discriminator": [
        68,
        77,
        202,
        215,
        177,
        201,
        40,
        96
      ],
      "accounts": [
        {
          "name": "actor",
          "docs": [
            "Operator: the OutcomeConfig `authority` (its creator) or, if set, its `attester_key`."
          ],
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ResolveConditionsArgs"
            }
          }
        }
      ]
    },
    {
      "name": "resolve_outcome",
      "discriminator": [
        163,
        82,
        25,
        106,
        219,
        103,
        143,
        14
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_resolution",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  114,
                  101,
                  115,
                  111,
                  108,
                  117,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "outcome_treasury",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ResolveOutcomeArgs"
            }
          }
        }
      ]
    },
    {
      "name": "resolve_outcome_v121",
      "discriminator": [
        249,
        232,
        80,
        193,
        130,
        172,
        116,
        159
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_resolution",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  114,
                  101,
                  115,
                  111,
                  108,
                  117,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "outcome_treasury",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ResolveOutcomeV121Args"
            }
          }
        }
      ]
    },
    {
      "name": "resolve_outcome_v4",
      "discriminator": [
        76,
        52,
        179,
        128,
        136,
        188,
        139,
        87
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_resolution",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  114,
                  101,
                  115,
                  111,
                  108,
                  117,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "account",
                "path": "outcome_config.next_resolve_id",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "outcome_treasury",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ResolveOutcomeV4Args"
            }
          }
        }
      ]
    },
    {
      "name": "review_compiled_artifact",
      "discriminator": [
        240,
        75,
        98,
        202,
        198,
        104,
        47,
        244
      ],
      "accounts": [
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "admin",
          "signer": true
        },
        {
          "name": "approved_outcome_artifact",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "approved_outcome_artifact.compiled_artifact_hash",
                "account": "ApprovedOutcomeArtifact"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ReviewCompiledArtifactArgs"
            }
          }
        }
      ]
    },
    {
      "name": "seal_randomness",
      "discriminator": [
        217,
        137,
        207,
        224,
        46,
        127,
        20,
        156
      ],
      "accounts": [
        {
          "name": "sealer",
          "writable": true,
          "signer": true
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "slot_hashes"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SealRandomnessArgs"
            }
          }
        }
      ]
    },
    {
      "name": "seal_randomness_unicorn",
      "discriminator": [
        105,
        118,
        61,
        177,
        113,
        166,
        6,
        127
      ],
      "accounts": [
        {
          "name": "sealer",
          "writable": true,
          "signer": true
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "unicorn_g_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  117,
                  110,
                  105,
                  99,
                  111,
                  114,
                  110,
                  95,
                  103,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "slot_hashes"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SealRandomnessUnicornArgs"
            }
          }
        }
      ]
    },
    {
      "name": "seal_sortition_draw",
      "discriminator": [
        118,
        99,
        117,
        137,
        110,
        21,
        107,
        171
      ],
      "accounts": [
        {
          "name": "sealer",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "slot_hashes"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SealSortitionDrawArgs"
            }
          }
        }
      ]
    },
    {
      "name": "set_program_config",
      "discriminator": [
        239,
        199,
        221,
        154,
        79,
        241,
        140,
        123
      ],
      "accounts": [
        {
          "name": "program_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "admin",
          "signer": true
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SetProgramConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "set_unicorn_g_config",
      "discriminator": [
        152,
        194,
        179,
        194,
        246,
        151,
        4,
        187
      ],
      "accounts": [
        {
          "name": "admin",
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "unicorn_g_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  117,
                  110,
                  105,
                  99,
                  111,
                  114,
                  110,
                  95,
                  103,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SetUnicornGConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "settle_rng_v2",
      "discriminator": [
        95,
        67,
        194,
        44,
        159,
        53,
        215,
        13
      ],
      "accounts": [
        {
          "name": "actor",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "outcome_resolution",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  114,
                  101,
                  115,
                  111,
                  108,
                  117,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "outcome_treasury",
          "writable": true
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "slot_hashes"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SettleRngV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "settle_slot_spin",
      "discriminator": [
        113,
        227,
        151,
        60,
        167,
        132,
        90,
        175
      ],
      "accounts": [
        {
          "name": "cranker",
          "docs": [
            "Permissionless crank — anyone may settle a matured spin."
          ],
          "writable": true,
          "signer": true
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "outcome_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "outcome_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              }
            ]
          }
        },
        {
          "name": "rng_v2_state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  114,
                  110,
                  103,
                  95,
                  118,
                  50,
                  95,
                  115,
                  116,
                  97,
                  116,
                  101
                ]
              },
              {
                "kind": "arg",
                "path": "args.runtime_id"
              },
              {
                "kind": "arg",
                "path": "args.resolve_id"
              }
            ]
          }
        },
        {
          "name": "actor",
          "writable": true
        },
        {
          "name": "approved_outcome_artifact",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "outcome_config.compiled_artifact_hash",
                "account": "OutcomeConfig"
              }
            ]
          }
        },
        {
          "name": "protocol_treasury",
          "writable": true
        },
        {
          "name": "slot_hashes"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SettleSlotSpinArgs"
            }
          }
        }
      ]
    },
    {
      "name": "submit_compiled_artifact",
      "discriminator": [
        145,
        16,
        134,
        179,
        37,
        180,
        0,
        230
      ],
      "accounts": [
        {
          "name": "publisher",
          "writable": true,
          "signer": true
        },
        {
          "name": "approved_outcome_artifact",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SubmitCompiledArtifactArgs"
            }
          }
        }
      ]
    },
    {
      "name": "sweep_sortition_tickets",
      "discriminator": [
        17,
        190,
        212,
        113,
        70,
        100,
        254,
        42
      ],
      "accounts": [
        {
          "name": "caller",
          "writable": true,
          "signer": true
        },
        {
          "name": "sortition_draw",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  115,
                  111,
                  114,
                  116,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  100,
                  114,
                  97,
                  119
                ]
              },
              {
                "kind": "arg",
                "path": "args.draw_id"
              }
            ]
          }
        },
        {
          "name": "program_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  112,
                  114,
                  111,
                  103,
                  114,
                  97,
                  109,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "treasury",
          "writable": true
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SweepSortitionTicketsArgs"
            }
          }
        }
      ]
    },
    {
      "name": "write_compiled_artifact_chunk",
      "discriminator": [
        76,
        137,
        250,
        147,
        225,
        154,
        80,
        199
      ],
      "accounts": [
        {
          "name": "publisher",
          "signer": true
        },
        {
          "name": "approved_outcome_artifact",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              }
            ]
          }
        },
        {
          "name": "approved_outcome_artifact_chunk",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  97,
                  112,
                  112,
                  114,
                  111,
                  118,
                  101,
                  100,
                  95,
                  111,
                  117,
                  116,
                  99,
                  111,
                  109,
                  101,
                  95,
                  97,
                  114,
                  116,
                  105,
                  102,
                  97,
                  99,
                  116,
                  95,
                  99,
                  104,
                  117,
                  110,
                  107
                ]
              },
              {
                "kind": "arg",
                "path": "args.compiled_artifact_hash"
              },
              {
                "kind": "arg",
                "path": "args.chunk_index"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "WriteCompiledArtifactChunkArgs"
            }
          }
        }
      ]
    }
  ],
  "accounts": [
    {
      "name": "ApprovedOutcomeArtifact",
      "discriminator": [
        110,
        158,
        83,
        35,
        113,
        203,
        146,
        35
      ]
    },
    {
      "name": "ApprovedOutcomeArtifactChunk",
      "discriminator": [
        172,
        72,
        71,
        77,
        233,
        238,
        194,
        12
      ]
    },
    {
      "name": "OutcomeConfig",
      "discriminator": [
        140,
        119,
        82,
        148,
        43,
        47,
        24,
        122
      ]
    },
    {
      "name": "OutcomeResolutionV2",
      "discriminator": [
        255,
        71,
        158,
        89,
        88,
        61,
        199,
        217
      ]
    },
    {
      "name": "OutcomeResolutionV3",
      "discriminator": [
        217,
        147,
        107,
        210,
        216,
        116,
        45,
        97
      ]
    },
    {
      "name": "OutcomeResolutionV4",
      "discriminator": [
        69,
        244,
        168,
        254,
        178,
        169,
        115,
        226
      ]
    },
    {
      "name": "ProgramConfig",
      "discriminator": [
        196,
        210,
        90,
        231,
        144,
        149,
        140,
        63
      ]
    },
    {
      "name": "RngV2State",
      "discriminator": [
        245,
        94,
        52,
        168,
        121,
        20,
        91,
        201
      ]
    },
    {
      "name": "SortitionDraw",
      "discriminator": [
        49,
        207,
        172,
        213,
        167,
        9,
        79,
        36
      ]
    },
    {
      "name": "TicketCommit",
      "discriminator": [
        126,
        176,
        221,
        120,
        165,
        105,
        232,
        48
      ]
    },
    {
      "name": "UnicornGConfig",
      "discriminator": [
        163,
        84,
        33,
        207,
        85,
        174,
        88,
        234
      ]
    }
  ],
  "events": [
    {
      "name": "ConditionsResolvedV1",
      "discriminator": [
        31,
        148,
        223,
        216,
        116,
        42,
        196,
        116
      ]
    },
    {
      "name": "MasterSeedRefreshedV1",
      "discriminator": [
        82,
        70,
        177,
        76,
        237,
        62,
        237,
        181
      ]
    },
    {
      "name": "OutcomeConfigInitializedV1",
      "discriminator": [
        59,
        61,
        45,
        109,
        164,
        166,
        216,
        245
      ]
    },
    {
      "name": "OutcomeResolveStartedV1",
      "discriminator": [
        0,
        32,
        7,
        122,
        63,
        44,
        96,
        94
      ]
    },
    {
      "name": "OutcomeResolvedV1",
      "discriminator": [
        72,
        217,
        204,
        203,
        233,
        185,
        165,
        67
      ]
    },
    {
      "name": "OutcomeResolvedV2",
      "discriminator": [
        64,
        82,
        211,
        23,
        225,
        215,
        196,
        237
      ]
    },
    {
      "name": "OutcomeResolvedV3",
      "discriminator": [
        109,
        105,
        250,
        171,
        71,
        200,
        24,
        49
      ]
    },
    {
      "name": "OutcomeResolvedV4",
      "discriminator": [
        58,
        143,
        185,
        45,
        65,
        138,
        208,
        37
      ]
    },
    {
      "name": "OutcomeResolvedV5",
      "discriminator": [
        16,
        58,
        238,
        99,
        119,
        51,
        232,
        85
      ]
    },
    {
      "name": "RngV2Attested",
      "discriminator": [
        131,
        220,
        165,
        185,
        119,
        183,
        64,
        58
      ]
    },
    {
      "name": "RngV2Expired",
      "discriminator": [
        246,
        23,
        36,
        133,
        103,
        41,
        17,
        208
      ]
    },
    {
      "name": "RngV2ExpiredSealed",
      "discriminator": [
        131,
        192,
        126,
        76,
        249,
        57,
        78,
        76
      ]
    },
    {
      "name": "RngV2Prepared",
      "discriminator": [
        179,
        116,
        156,
        246,
        214,
        106,
        251,
        84
      ]
    },
    {
      "name": "RngV2Sealed",
      "discriminator": [
        254,
        213,
        156,
        79,
        58,
        7,
        117,
        68
      ]
    },
    {
      "name": "RngV2UnicornSealed",
      "discriminator": [
        185,
        188,
        133,
        32,
        27,
        159,
        219,
        247
      ]
    },
    {
      "name": "SlotSpinPreparedV1",
      "discriminator": [
        97,
        111,
        195,
        9,
        115,
        248,
        3,
        238
      ]
    },
    {
      "name": "SlotSpinResolvedV1",
      "discriminator": [
        90,
        186,
        90,
        84,
        162,
        58,
        205,
        244
      ]
    },
    {
      "name": "SortitionClaimed",
      "discriminator": [
        233,
        88,
        83,
        202,
        114,
        63,
        161,
        248
      ]
    },
    {
      "name": "SortitionDrawCreated",
      "discriminator": [
        253,
        96,
        11,
        164,
        201,
        212,
        83,
        73
      ]
    },
    {
      "name": "SortitionEconomicsInitialized",
      "discriminator": [
        46,
        28,
        235,
        93,
        92,
        240,
        81,
        202
      ]
    },
    {
      "name": "SortitionEntryFeePaid",
      "discriminator": [
        154,
        110,
        220,
        176,
        235,
        237,
        5,
        100
      ]
    },
    {
      "name": "SortitionRegistered",
      "discriminator": [
        210,
        247,
        5,
        165,
        240,
        146,
        127,
        116
      ]
    },
    {
      "name": "SortitionSealed",
      "discriminator": [
        106,
        206,
        90,
        149,
        253,
        82,
        5,
        135
      ]
    },
    {
      "name": "SortitionTicketClosed",
      "discriminator": [
        69,
        88,
        164,
        222,
        184,
        117,
        231,
        237
      ]
    },
    {
      "name": "UnicornGConfigInitialized",
      "discriminator": [
        227,
        134,
        69,
        163,
        78,
        14,
        140,
        123
      ]
    },
    {
      "name": "UnicornGConfigUpdated",
      "discriminator": [
        242,
        241,
        38,
        27,
        213,
        206,
        209,
        97
      ]
    }
  ],
  "errors": [
    {
      "code": 6000,
      "name": "InvalidInputAmount",
      "msg": "Invalid input amount"
    },
    {
      "code": 6001,
      "name": "RuntimePaused",
      "msg": "Runtime is paused"
    },
    {
      "code": 6002,
      "name": "Unauthorized",
      "msg": "Unauthorized"
    },
    {
      "code": 6003,
      "name": "UnauthorizedAdmin",
      "msg": "Unauthorized admin"
    },
    {
      "code": 6004,
      "name": "InvalidCompiledArtifactFormat",
      "msg": "Invalid compiled artifact format"
    },
    {
      "code": 6005,
      "name": "InvalidCompiledArtifactHash",
      "msg": "Invalid compiled artifact hash"
    },
    {
      "code": 6006,
      "name": "InvalidCompiledArtifactStatus",
      "msg": "Invalid compiled artifact status"
    },
    {
      "code": 6007,
      "name": "CompiledArtifactNotFinalized",
      "msg": "Compiled artifact is not finalized"
    },
    {
      "code": 6008,
      "name": "UnapprovedCompiledArtifact",
      "msg": "Compiled artifact is not approved for runtime binding"
    },
    {
      "code": 6009,
      "name": "InvalidArtifactUri",
      "msg": "Invalid artifact uri"
    },
    {
      "code": 6010,
      "name": "MissingArtifactChunk",
      "msg": "Missing compiled artifact chunk"
    },
    {
      "code": 6011,
      "name": "InvalidArtifactChunkPda",
      "msg": "Invalid compiled artifact chunk PDA"
    },
    {
      "code": 6012,
      "name": "InvalidArtifactChunkCount",
      "msg": "Invalid compiled artifact chunk count"
    },
    {
      "code": 6013,
      "name": "BlobNotFullyWritten",
      "msg": "Compiled artifact blob not fully written"
    },
    {
      "code": 6014,
      "name": "InvalidChunkWrite",
      "msg": "Invalid chunk write"
    },
    {
      "code": 6015,
      "name": "InvalidOutcomeId",
      "msg": "Invalid outcome id"
    },
    {
      "code": 6016,
      "name": "InvalidEffectType",
      "msg": "Invalid effect type"
    },
    {
      "code": 6017,
      "name": "InvalidReservedBytes",
      "msg": "Invalid reserved bytes"
    },
    {
      "code": 6018,
      "name": "MathOverflow",
      "msg": "Math overflow"
    },
    {
      "code": 6019,
      "name": "ArtifactBindingMismatch",
      "msg": "Artifact binding mismatch"
    },
    {
      "code": 6020,
      "name": "InvalidTreasuryAccount",
      "msg": "Invalid treasury account"
    },
    {
      "code": 6021,
      "name": "InvalidRngV2State",
      "msg": "Invalid RNG v2 state"
    },
    {
      "code": 6022,
      "name": "InvalidRngV2Status",
      "msg": "Invalid RNG v2 status"
    },
    {
      "code": 6023,
      "name": "InvalidSlotHashesSysvar",
      "msg": "Invalid slot hashes sysvar"
    },
    {
      "code": 6024,
      "name": "RngV2TargetSlotNotReady",
      "msg": "RNG v2 target slot is not ready"
    },
    {
      "code": 6025,
      "name": "RngV2SettlementWindowExpired",
      "msg": "RNG v2 settlement window expired"
    },
    {
      "code": 6026,
      "name": "RngV2SlotHashNotFound",
      "msg": "RNG v2 slot hash not found"
    },
    {
      "code": 6027,
      "name": "InvalidRngV2OperatorReveal",
      "msg": "Invalid RNG v2 operator reveal"
    },
    {
      "code": 6028,
      "name": "UnauthorizedRngV2Attester",
      "msg": "Unauthorized RNG v2 attester"
    },
    {
      "code": 6029,
      "name": "RngV2BountyTooLow",
      "msg": "RNG v2 bounty below required minimum"
    },
    {
      "code": 6030,
      "name": "RngV2PayoutMustBeZero",
      "msg": "RNG v2 artifact payout must be zero"
    },
    {
      "code": 6031,
      "name": "RngV2AttestDeadlineNotReached",
      "msg": "RNG v2 attest deadline not reached"
    },
    {
      "code": 6032,
      "name": "RngV2InputBelowFee",
      "msg": "RNG v2 input below snapshotted protocol fee"
    },
    {
      "code": 6033,
      "name": "InvalidEntropySource",
      "msg": "Invalid entropy source"
    },
    {
      "code": 6034,
      "name": "InvalidUnicornGConfig",
      "msg": "Invalid Unicorn-G config"
    },
    {
      "code": 6035,
      "name": "InvalidUnicornGProof",
      "msg": "Invalid Unicorn-G proof"
    },
    {
      "code": 6036,
      "name": "InvalidSortitionDraw",
      "msg": "Invalid sortition draw"
    },
    {
      "code": 6037,
      "name": "InvalidSortitionStatus",
      "msg": "Invalid sortition status"
    },
    {
      "code": 6038,
      "name": "InvalidSortitionWindow",
      "msg": "Invalid sortition window"
    },
    {
      "code": 6039,
      "name": "InvalidSortitionThreshold",
      "msg": "Invalid sortition threshold"
    },
    {
      "code": 6040,
      "name": "InvalidSortitionCommitment",
      "msg": "Invalid sortition commitment"
    },
    {
      "code": 6041,
      "name": "SortitionRegistrationOpen",
      "msg": "Sortition registration is still open"
    },
    {
      "code": 6042,
      "name": "SortitionRegistrationClosed",
      "msg": "Sortition registration is closed"
    },
    {
      "code": 6043,
      "name": "InvalidSortitionTicket",
      "msg": "Invalid sortition ticket"
    },
    {
      "code": 6044,
      "name": "InvalidSortitionSecret",
      "msg": "Invalid sortition secret"
    },
    {
      "code": 6045,
      "name": "SortitionPredicateNotMet",
      "msg": "Sortition predicate not met"
    },
    {
      "code": 6046,
      "name": "SortitionAlreadyClaimed",
      "msg": "Sortition ticket already claimed"
    },
    {
      "code": 6047,
      "name": "SortitionClaimWindowClosed",
      "msg": "Sortition claim window is closed"
    },
    {
      "code": 6048,
      "name": "InvalidSortitionConfig",
      "msg": "Invalid sortition config"
    },
    {
      "code": 6049,
      "name": "SortitionCloseTooEarly",
      "msg": "Sortition ticket cannot be closed before the claim window ends"
    },
    {
      "code": 6050,
      "name": "InvalidSkimBps",
      "msg": "Invalid close skim basis points"
    },
    {
      "code": 6051,
      "name": "InvalidEntryFee",
      "msg": "Invalid entry fee"
    },
    {
      "code": 6052,
      "name": "SortitionEconomicsAlreadySet",
      "msg": "Sortition economics already set for this draw"
    },
    {
      "code": 6053,
      "name": "SortitionPaidRegistrationRequired",
      "msg": "This draw requires paid registration"
    },
    {
      "code": 6054,
      "name": "SortitionEconomicsAfterRegistration",
      "msg": "Sortition economics must be set before the first registration"
    },
    {
      "code": 6055,
      "name": "InvalidConditionsArtifact",
      "msg": "Invalid conditions artifact"
    },
    {
      "code": 6056,
      "name": "SlotVaultReserveInsufficient",
      "msg": "Vault balance below the max-win exposure for this spin"
    },
    {
      "code": 6057,
      "name": "RngV2CompactArgsMustBeEmpty",
      "msg": "RNG v2 compact draw: winner args must be empty, the program selects winners"
    }
  ],
  "types": [
    {
      "name": "ApprovedOutcomeArtifact",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "publisher",
            "type": "pubkey"
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "is_finalized",
            "type": "bool"
          },
          {
            "name": "format_version",
            "type": "u16"
          },
          {
            "name": "blob_len",
            "type": "u32"
          },
          {
            "name": "chunk_count",
            "type": "u16"
          },
          {
            "name": "artifact_uri_len",
            "type": "u16"
          },
          {
            "name": "artifact_uri",
            "type": {
              "array": [
                "u8",
                200
              ]
            }
          },
          {
            "name": "audit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "created_at",
            "type": "i64"
          },
          {
            "name": "updated_at",
            "type": "i64"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                31
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ApprovedOutcomeArtifactChunk",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "chunk_index",
            "type": "u32"
          },
          {
            "name": "written_len",
            "type": "u16"
          },
          {
            "name": "data",
            "type": {
              "array": [
                "u8",
                1024
              ]
            }
          }
        ]
      }
    },
    {
      "name": "AttestWinnersArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ClaimSortitionTicketArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "secret",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "CloseSortitionTicketArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ConditionsResolvedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "operator",
            "type": "pubkey"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "entrant_count",
            "type": "u32"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winning_score_sum",
            "type": "u128"
          },
          {
            "name": "winners_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "facts_ref_root",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "CreateSortitionDrawArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "threshold",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "registration_duration_slots",
            "type": "u64"
          },
          {
            "name": "claim_duration_slots",
            "type": "u64"
          },
          {
            "name": "unclaimed_rule",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "ExpireRngV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "ExpireSealedRngV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "InitCompiledArtifactChunkArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "chunk_index",
            "type": "u32"
          }
        ]
      }
    },
    {
      "name": "InitSortitionEconomicsArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "fee_mode",
            "type": "u8"
          },
          {
            "name": "entry_fee_lamports",
            "type": "u64"
          },
          {
            "name": "close_skim_bps",
            "type": "u16"
          }
        ]
      }
    },
    {
      "name": "InitializeOutcomeConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "min_input_lamports",
            "type": "u64"
          },
          {
            "name": "max_input_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "InitializeProgramConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "fee_lamports",
            "type": "u64"
          },
          {
            "name": "treasury",
            "type": "pubkey"
          }
        ]
      }
    },
    {
      "name": "InitializeUnicornGConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "enabled",
            "type": "bool"
          },
          {
            "name": "rsa_modulus_id",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "delay_t",
            "type": "u64"
          },
          {
            "name": "delay_slots",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "MasterSeedRefreshedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "source_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "OutcomeConfig",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "authority",
            "type": "pubkey"
          },
          {
            "name": "treasury",
            "type": "pubkey"
          },
          {
            "name": "min_input_lamports",
            "type": "u64"
          },
          {
            "name": "max_input_lamports",
            "type": "u64"
          },
          {
            "name": "next_resolve_id",
            "type": "u64"
          },
          {
            "name": "is_paused",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "vault_bump",
            "type": "u8"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "last_seed_slot",
            "type": "u64"
          },
          {
            "name": "attester_key",
            "type": "pubkey"
          },
          {
            "name": "bounty_min",
            "type": "u64"
          },
          {
            "name": "slash_on_sealed_timeout",
            "type": "bool"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                22
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeConfigInitializedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "authority",
            "type": "pubkey"
          },
          {
            "name": "treasury",
            "type": "pubkey"
          },
          {
            "name": "min_input_lamports",
            "type": "u64"
          },
          {
            "name": "max_input_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolutionV2",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "outcome_id_lens",
            "type": "bytes"
          },
          {
            "name": "outcome_ids",
            "type": {
              "vec": {
                "array": [
                  "u8",
                  64
                ]
              }
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                29
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolutionV3",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                29
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolutionV4",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "rng_version",
            "type": "u8"
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "protocol_revision",
            "type": "u8"
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "entropy_source",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                19
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolveStartedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "OutcomeResolvedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolvedV2",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "outcome_id_lens",
            "type": "bytes"
          },
          {
            "name": "outcome_ids",
            "type": {
              "vec": {
                "array": [
                  "u8",
                  64
                ]
              }
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolvedV3",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "OutcomeResolvedV4",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "rng_version",
            "type": "u8"
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "entropy_source",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "OutcomeResolvedV5",
      "docs": [
        "rng_v2 resolution of a **compact** artifact (fmt 1/2/3/5/8): same prefix as",
        "`OutcomeResolvedV4`, plus the full program-selected winner list. `winner_claim_hash`",
        "is `rng_v2::winner_claim_digest` over that list."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "total_output_lamports",
            "type": "u64"
          },
          {
            "name": "rng_version",
            "type": "u8"
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "effect_count",
            "type": "u16"
          },
          {
            "name": "effects_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "entropy_source",
            "type": "u8"
          },
          {
            "name": "protocol_revision",
            "type": "u8"
          },
          {
            "name": "outcome_id_lens",
            "type": "bytes"
          },
          {
            "name": "outcome_ids",
            "type": {
              "vec": {
                "array": [
                  "u8",
                  64
                ]
              }
            }
          }
        ]
      }
    },
    {
      "name": "PrepareRngV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "PrepareSlotSpinArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "input_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "ProgramConfig",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "admin",
            "type": "pubkey"
          },
          {
            "name": "allow_unreviewed_binding",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "fee_lamports",
            "type": "u64"
          },
          {
            "name": "treasury",
            "type": "pubkey"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                22
              ]
            }
          }
        ]
      }
    },
    {
      "name": "RecoverProgramConfigAdminArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "new_admin",
            "type": "pubkey"
          },
          {
            "name": "new_treasury",
            "type": "pubkey"
          }
        ]
      }
    },
    {
      "name": "RefreshMasterSeedArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "new_master_seed",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "RegisterSortitionTicketArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "commitment",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ResolveConditionsArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ResolveOutcomeArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "input_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "ResolveOutcomeV121Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          }
        ]
      }
    },
    {
      "name": "ResolveOutcomeV4Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "outcome_id_lens",
            "type": "bytes"
          },
          {
            "name": "outcome_ids",
            "type": {
              "vec": {
                "array": [
                  "u8",
                  64
                ]
              }
            }
          }
        ]
      }
    },
    {
      "name": "ReviewCompiledArtifactArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "audit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_uri",
            "type": "bytes"
          }
        ]
      }
    },
    {
      "name": "RngV2Attested",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "attester",
            "type": "pubkey"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "protocol_revision",
            "type": "u8"
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "RngV2Expired",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports_refunded",
            "type": "u64"
          },
          {
            "name": "expired_at_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "RngV2ExpiredSealed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports_refunded",
            "type": "u64"
          },
          {
            "name": "input_lamports_slashed",
            "type": "u64"
          },
          {
            "name": "expired_at_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "RngV2Prepared",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "target_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "expiry_slot",
            "type": "u64"
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "fee_snapshot",
            "type": "u64"
          },
          {
            "name": "attest_deadline_slot",
            "type": "u64"
          },
          {
            "name": "entropy_source",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "RngV2Sealed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "sealer",
            "type": "pubkey"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "sealed_at_slot",
            "type": "u64"
          },
          {
            "name": "entropy_source",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "RngV2State",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "artifact_format_version",
            "type": "u16"
          },
          {
            "name": "snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "target_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "expiry_slot",
            "type": "u64"
          },
          {
            "name": "operator_commit_present",
            "type": "bool"
          },
          {
            "name": "operator_commit_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "fee_snapshot",
            "type": "u64"
          },
          {
            "name": "attest_deadline_slot",
            "type": "u64"
          },
          {
            "name": "entropy_source",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                7
              ]
            }
          }
        ]
      }
    },
    {
      "name": "RngV2UnicornSealed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "sealer",
            "type": "pubkey"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "resolved_slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "commit",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "u_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "y_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "bounty_lamports",
            "type": "u64"
          },
          {
            "name": "sealed_at_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SealRandomnessArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SealRandomnessUnicornArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "y",
            "type": {
              "array": [
                "u64",
                32
              ]
            }
          },
          {
            "name": "proof_a_neg",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "proof_b",
            "type": {
              "array": [
                "u8",
                128
              ]
            }
          },
          {
            "name": "proof_c",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          }
        ]
      }
    },
    {
      "name": "SealSortitionDrawArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          }
        ]
      }
    },
    {
      "name": "SetProgramConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "new_admin",
            "type": "pubkey"
          },
          {
            "name": "allow_unreviewed_binding",
            "type": "bool"
          },
          {
            "name": "fee_lamports",
            "type": "u64"
          },
          {
            "name": "treasury",
            "type": "pubkey"
          }
        ]
      }
    },
    {
      "name": "SetUnicornGConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "enabled",
            "type": "bool"
          },
          {
            "name": "rsa_modulus_id",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "delay_t",
            "type": "u64"
          },
          {
            "name": "delay_slots",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SettleRngV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "winner_count",
            "type": "u16"
          },
          {
            "name": "winner_claim_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "outcome_id_len",
            "type": "u8"
          },
          {
            "name": "outcome_id",
            "type": {
              "array": [
                "u8",
                64
              ]
            }
          },
          {
            "name": "operator_reveal_len",
            "type": "u8"
          },
          {
            "name": "operator_reveal",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "SettleSlotSpinArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SlotSpinPreparedV1",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "target_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "expiry_slot",
            "type": "u64"
          },
          {
            "name": "exposure_cap",
            "type": "u64"
          },
          {
            "name": "fee_snapshot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SlotSpinResolvedV1",
      "docs": [
        "Carries everything replay-by-signature verification needs: the frozen slots and",
        "their hashes reproduce the seed, the artifact hash pins the game, and the reel",
        "stops / payout are the claimed outcome to re-derive. No resolution account is",
        "persisted for slot spins."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "runtime_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "resolve_id",
            "type": "u64"
          },
          {
            "name": "actor",
            "type": "pubkey"
          },
          {
            "name": "input_lamports",
            "type": "u64"
          },
          {
            "name": "payout_lamports",
            "type": "u64"
          },
          {
            "name": "raw_win_lamports",
            "type": "u64"
          },
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "randomness",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "reel_count",
            "type": "u8"
          },
          {
            "name": "reel_stops",
            "type": {
              "array": [
                "u16",
                16
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "settled_at_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SortitionClaimed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "omega",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "predicate_digest",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "winners_count",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SortitionDraw",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "authority",
            "type": "pubkey"
          },
          {
            "name": "standard_version",
            "type": {
              "array": [
                "u8",
                5
              ]
            }
          },
          {
            "name": "threshold",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "target_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "registration_deadline",
            "type": "u64"
          },
          {
            "name": "expiry_slot",
            "type": "u64"
          },
          {
            "name": "registration_snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "status",
            "type": "u8"
          },
          {
            "name": "omega",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "claim_deadline",
            "type": "u64"
          },
          {
            "name": "winners_count",
            "type": "u64"
          },
          {
            "name": "unclaimed_rule",
            "type": "u8"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "fee_mode",
            "type": "u8"
          },
          {
            "name": "entry_fee_lamports",
            "type": "u64"
          },
          {
            "name": "close_skim_bps",
            "type": "u16"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                20
              ]
            }
          }
        ]
      }
    },
    {
      "name": "SortitionDrawCreated",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "authority",
            "type": "pubkey"
          },
          {
            "name": "standard_version",
            "type": {
              "array": [
                "u8",
                5
              ]
            }
          },
          {
            "name": "threshold",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "target_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "registration_deadline",
            "type": "u64"
          },
          {
            "name": "claim_deadline",
            "type": "u64"
          },
          {
            "name": "unclaimed_rule",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "SortitionEconomicsInitialized",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "fee_mode",
            "type": "u8"
          },
          {
            "name": "entry_fee_lamports",
            "type": "u64"
          },
          {
            "name": "close_skim_bps",
            "type": "u16"
          }
        ]
      }
    },
    {
      "name": "SortitionEntryFeePaid",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "participant",
            "type": "pubkey"
          },
          {
            "name": "fee_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SortitionRegistered",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "commitment",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "registration_snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "SortitionSealed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "sealer",
            "type": "pubkey"
          },
          {
            "name": "omega",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "resolved_slots",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "slot_hashes",
            "type": {
              "array": [
                {
                  "array": [
                    "u8",
                    32
                  ]
                },
                3
              ]
            }
          },
          {
            "name": "registration_snapshot_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "sealed_at_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SortitionTicketClosed",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "refunded_lamports",
            "type": "u64"
          },
          {
            "name": "skim_lamports",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SubmitCompiledArtifactArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "format_version",
            "type": "u16"
          },
          {
            "name": "blob_len",
            "type": "u32"
          }
        ]
      }
    },
    {
      "name": "SweepSortitionTicketsArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          }
        ]
      }
    },
    {
      "name": "TicketCommit",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "draw_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "ticket_id",
            "type": {
              "array": [
                "u8",
                16
              ]
            }
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "commitment",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "claimed",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                30
              ]
            }
          }
        ]
      }
    },
    {
      "name": "UnicornGConfig",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "admin",
            "type": "pubkey"
          },
          {
            "name": "enabled",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          },
          {
            "name": "rsa_modulus_id",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "delay_t",
            "type": "u64"
          },
          {
            "name": "delay_slots",
            "type": "u64"
          },
          {
            "name": "reserved",
            "type": {
              "array": [
                "u8",
                46
              ]
            }
          }
        ]
      }
    },
    {
      "name": "UnicornGConfigInitialized",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "admin",
            "type": "pubkey"
          },
          {
            "name": "enabled",
            "type": "bool"
          },
          {
            "name": "rsa_modulus_id",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "delay_t",
            "type": "u64"
          },
          {
            "name": "delay_slots",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "UnicornGConfigUpdated",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "admin",
            "type": "pubkey"
          },
          {
            "name": "enabled",
            "type": "bool"
          },
          {
            "name": "rsa_modulus_id",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "delay_t",
            "type": "u64"
          },
          {
            "name": "delay_slots",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "WriteCompiledArtifactChunkArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "compiled_artifact_hash",
            "type": {
              "array": [
                "u8",
                32
              ]
            }
          },
          {
            "name": "chunk_index",
            "type": "u32"
          },
          {
            "name": "offset",
            "type": "u16"
          },
          {
            "name": "data",
            "type": "bytes"
          }
        ]
      }
    }
  ]
}