FADEqXiuK5nK2KgigvUXMKRxccN27Nq7CwSLggwoWT3z: 38 instructions, 10 accounts, 41 events, 98 errors. Generate a typed client from it as the Quickstart shows.
Copy the block below into a file named fade.json (the copy button keeps it byte for byte), then check it:
sha256sum fade.json
# 9e057d6ce6e6d982d96a96dfb04bc3a7b8a12caba86a3c4a28e3f009884289d9 fade.json
address is the devnet program and its USDC mint the devnet mint. The program reads its optional accounts as a tail after the fixed ones: generate with Codama’s optionalAccountStrategy: "omitted".
fade.json
{
"address": "FADEqXiuK5nK2KgigvUXMKRxccN27Nq7CwSLggwoWT3z",
"metadata": {
"name": "fade",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Fade: a permissionless reward protocol for Solana"
},
"instructions": [
{
"name": "accept_council_transfer",
"docs": [
"Signed by the pending council: it becomes the council. Nothing else in `Config` moves."
],
"discriminator": [
26,
64,
200,
195,
111,
27,
178,
92
],
"accounts": [
{
"name": "new_council",
"docs": [
"The pending council: its signature proves it can act as the council."
],
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "acknowledge_halts",
"docs": [
"Council: acknowledges the revealer's withholding halts, which then no longer hold a promotion or a re-open of the route."
],
"discriminator": [
47,
74,
121,
233,
41,
42,
5,
35
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "activate_chain",
"docs": [
"Anyone, never paused: promotes the queued chain once it is due and the active one no longer assigns."
],
"discriminator": [
95,
58,
231,
111,
195,
16,
235,
66
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; nobody is paid to promote."
],
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "queued_chain",
"docs": [
"The revealer's queued chain."
],
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain, when it has one: the predecessor."
],
"optional": true
},
{
"name": "cursor_chain",
"docs": [
"The reveal cursor's chain, only when it is not the active one."
],
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "begin_council_transfer",
"docs": [
"Council only: names the next council, which accepts with its own signature. A new call replaces the pending transfer."
],
"discriminator": [
194,
28,
251,
65,
5,
87,
246,
110
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "new_council",
"type": "pubkey"
}
]
},
{
"name": "cancel_council_transfer",
"docs": [
"Council only: drops the pending council transfer."
],
"discriminator": [
36,
87,
170,
238,
177,
28,
65,
254
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "claim_deposit",
"docs": [
"Anyone: the request's own `CLAIM_FEE` pays whoever claims it."
],
"discriminator": [
201,
106,
1,
224,
122,
144,
210,
155
],
"accounts": [
{
"name": "caller",
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "request",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "request.epoch_id",
"account": "DepositRequest"
},
{
"kind": "account",
"path": "request.owner",
"account": "DepositRequest"
}
]
}
},
{
"name": "owner_shares",
"docs": [
"The owner's canonical share account, whatever its state; the handler delivers to it only if it can receive."
],
"writable": true
},
{
"name": "owner_usdc",
"docs": [
"The owner's canonical USDC account, whatever its state: where a return goes, only if it can receive."
],
"writable": true
},
{
"name": "share_claims",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
99,
108,
97,
105,
109,
115
]
}
]
}
},
{
"name": "share_mint",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "deposit_queue_usdc",
"docs": [
"Holds a returned epoch's deposits and every parked return."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116,
45,
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "owner",
"writable": true,
"optional": true
},
{
"name": "record",
"docs": [
"Exists only once the request's epoch has been struck; absent once the request is parked."
],
"writable": true,
"optional": true
},
{
"name": "rent_receiver",
"writable": true,
"optional": true
},
{
"name": "owner_destination",
"docs": [
"For a parked request only, and only with the owner's signature: another account of the owner's (shares, or USDC for a return), checked to be able to receive."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i (0 to 3) set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address. The high byte names who holds an absent `rent_receiver`: bit 8 set when the caller does, bit 9 when the owner does; at most one of them, never with bit 2, and no other bit of the high byte."
],
"type": "u16"
}
]
},
{
"name": "claim_shares",
"docs": [
"Anyone, never paused, unpaid: the protocol's accrued shares (without `integrator`) or one integrator's (with it), all of them, to their stored destination, and the ledger zeroed."
],
"discriminator": [
130,
131,
29,
237,
134,
20,
110,
245
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; nobody is paid to claim."
],
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "destination",
"docs": [
"`config.protocol_treasury` without `integrator` (`TreasuryMismatch`), `integrator.share_account` with it (`ShareAccountMismatch`); inspected before the transfer, which is made only if it can receive (`DestinationUnusable`)."
],
"writable": true
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "integrator",
"docs": [
"The integrator whose app shares are claimed, at `[\"integrator\", authority]` with its stored bump; absent for the protocol's shares."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "claim_withdraw",
"discriminator": [
232,
89,
154,
117,
16,
204,
182,
224
],
"accounts": [
{
"name": "caller",
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "request",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
119,
105,
116,
104,
100,
114,
97,
119
]
},
{
"kind": "account",
"path": "request.epoch_id",
"account": "WithdrawRequest"
},
{
"kind": "account",
"path": "request.owner",
"account": "WithdrawRequest"
}
]
}
},
{
"name": "owner_usdc",
"docs": [
"The owner's canonical USDC account, whatever its state; the handler delivers to it only if it can receive."
],
"writable": true
},
{
"name": "payable_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
97,
121,
97,
98,
108,
101
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "owner",
"writable": true,
"optional": true
},
{
"name": "at_record",
"docs": [
"The record the chain is read at: the request's own epoch or a later one of the same chain. The final claim reads the one that ends the chain; a record where the chain splits carries the request into the next chain. Absent once the request is parked."
],
"writable": true,
"optional": true
},
{
"name": "start_record",
"docs": [
"The request's own record, when it is not `at_record` and this is the request's first claim: it holds the chain indices at its start."
],
"writable": true,
"optional": true
},
{
"name": "rent_receiver",
"writable": true,
"optional": true
},
{
"name": "start_rent_receiver",
"writable": true,
"optional": true
},
{
"name": "owner_destination",
"docs": [
"For a parked request only, and only with the owner's signature: another USDC account of the owner's, checked to be able to receive."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i (0 to 5) set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address. The high byte names who holds an absent `rent_receiver` and `start_rent_receiver`: bit 8 set when the caller holds `rent_receiver`, bit 9 when the owner does (at most one, never with bit 3); bit 10 set when the caller holds `start_rent_receiver`, bit 11 when the owner does, bit 12 when the tail's `rent_receiver` does (at most one, never with bit 4); no other bit of the high byte."
],
"type": "u16"
}
]
},
{
"name": "close_chain",
"docs": [
"Anyone, never paused: closes a finished chain, its rent to whoever paid it."
],
"discriminator": [
74,
2,
211,
50,
181,
202,
203,
83
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; the rent goes to whoever paid it."
],
"signer": true
},
{
"name": "revealer_state"
},
{
"name": "chain",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "rent_payer",
"writable": true,
"optional": true
}
],
"args": [
{
"name": "chain_id",
"type": "u64"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "close_commit_reveal",
"docs": [
"The guardian or the council, at once: closes the open commit-reveal route; small entries open on ORAO and nothing is refused."
],
"discriminator": [
103,
94,
204,
140,
82,
114,
248,
36
],
"accounts": [
{
"name": "authority",
"docs": [
"The guardian or the council."
],
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "deliver_reward",
"docs": [
"Anyone: delivers a reward parked at settlement to the recipient, or a return parked to `refund_to` (the funder's canonical USDC account once `refund_to` cannot receive)."
],
"discriminator": [
68,
198,
138,
55,
188,
112,
125,
44
],
"accounts": [
{
"name": "caller",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "entry",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "recipient",
"docs": [
"The destination, checked in the handler (`RecipientMismatch`): a parked reward's is the recipient stored at open; a parked return's (`REFUND_OUTCOME`) is `refund_to`, or the funder's canonical USDC account once `refund_to` cannot receive. Read as a token account only when something is owed: a parked reward of 0 (a losing result parked by its revealer) moves nothing, so its recipient may be closed for good and the entry still closes to its payer."
],
"writable": true
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "payer",
"writable": true,
"optional": true
},
{
"name": "refund_to",
"docs": [
"A parked return delivered to the funder's canonical account only: the entry's `refund_to`, shown unable to receive (closed, frozen, or no longer a USDC account)."
],
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "expire_entry",
"docs": [
"Anyone, after `T_SETTLE`, if the randomness never arrived: lapse. Refused while a request at the entry's seed is fulfilled with a non-zero value, bound or not (`AlreadyFulfilled`: resolve it); an entry never requested needs its seed recorded first."
],
"discriminator": [
203,
143,
152,
58,
25,
222,
186,
140
],
"accounts": [
{
"name": "caller",
"writable": true,
"signer": true
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "integrator",
"writable": true
},
{
"name": "entry",
"docs": [
"An ORAO entry: a commit-reveal one is refused."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "vrf_payer",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
114,
102,
45,
112,
97,
121,
101,
114
]
},
{
"kind": "account",
"path": "entry"
}
]
}
},
{
"name": "randomness",
"docs": [
"The bound request, or, for an entry never requested, the request address derived from its recorded seed; checked in the handler."
]
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "payer",
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "halt_chain",
"docs": [
"The guardian or the council: halts the revealer at the first pending entry whose target is not yet past (none whose entropy may exist is voided) and marks the active chain halted; no cooldown."
],
"discriminator": [
50,
211,
32,
73,
240,
120,
57,
150
],
"accounts": [
{
"name": "authority",
"docs": [
"The guardian or the council."
],
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain (`active_chain_id`), marked `Halted`."
],
"writable": true
},
{
"name": "slot_hashes",
"docs": [
"Pinned to the sysvar; parsed with a bounded reader. Its newest slot tells which pending cells have an `s*` already."
],
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "initialize",
"docs": [
"One-time setup by the program's upgrade authority; seeds the strike fund, writes the deployment nonce, sets the commit-reveal revealer (the default key for none) without delay and creates its state."
],
"discriminator": [
175,
175,
109,
31,
13,
152,
155,
237
],
"accounts": [
{
"name": "payer",
"docs": [
"Must be the program's upgrade authority: the one party that could already do anything, so no new trust is created. Pays every rent and seeds the strike fund."
],
"writable": true,
"signer": true
},
{
"name": "fade_program"
},
{
"name": "program_data"
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "queue",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "revealer_state",
"docs": [
"The commit-reveal revealer's state, slot 0, never closed."
],
"writable": true
},
{
"name": "slot_hashes",
"docs": [
"The SlotHashes sysvar, at its pinned address; its newest hash enters the deployment nonce."
],
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint",
"docs": [
"`Account<Mint>` of the legacy token module: a Token-2022 mint fails the owner check."
],
"address": "4Bhynkq8NVXwijur3SBuyZoDzAaMpqsD1XPdTY3kCxWQ"
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "deposit_queue_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116,
45,
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "payable_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
97,
121,
97,
98,
108,
101
]
}
]
}
},
{
"name": "share_mint",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "share_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "share_claims",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
99,
108,
97,
105,
109,
115
]
}
]
}
},
{
"name": "dead_shares",
"docs": [
"The dead shares' account: its authority is the `Vault` PDA, for which the program never signs, so nothing ever leaves it."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
97,
100,
45,
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "protocol_treasury",
"docs": [
"Where the protocol share goes. Any USDC token account; its owner is the council's business."
]
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
}
],
"args": [
{
"name": "council",
"type": "pubkey"
},
{
"name": "guardian",
"type": "pubkey"
},
{
"name": "params",
"type": {
"defined": {
"name": "RiskParams"
}
}
},
{
"name": "max_assets",
"type": "u64"
},
{
"name": "revealer",
"type": "pubkey"
}
]
},
{
"name": "open_entry",
"docs": [
"Signed by the integrator (a program over CPI with its `[\"fade-integrator\"]` PDA, or a server or wallet) and by the funder. `route` confirms the route the program computes, `RouteMismatch` otherwise; each route takes its own optional accounts."
],
"discriminator": [
1,
153,
198,
202,
144,
85,
178,
227
],
"accounts": [
{
"name": "payer",
"docs": [
"Pays the entry's rent, the oracle prefund and the crank fee (ORAO) or the reveal fee (commit-reveal); receives every return of lamports when the entry closes."
],
"writable": true,
"signer": true
},
{
"name": "funder_usdc",
"docs": [
"Stored as the entry's `refund_to`: where a return goes."
],
"writable": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "integrator",
"docs": [
"Created by the integrator's first entry; never re-initialised, never closed."
],
"writable": true
},
{
"name": "protocol_treasury",
"writable": true
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "entry",
"docs": [
"Never `init_if_needed`: the address is nonce-scoped and one-shot."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "integrator"
},
{
"kind": "arg",
"path": "nonce"
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "integrator_authority",
"docs": [
"The integrator's identity: a program signs with its `[\"fade-integrator\"]` PDA through `invoke_signed`, a server or a wallet with its own key."
],
"signer": true,
"optional": true
},
{
"name": "funder",
"docs": [
"Owns `funder_usdc`, pays the entry cost, and signs this very instruction: the user, or an app paying from funds it holds for its users or its own budget."
],
"signer": true,
"optional": true
},
{
"name": "share_account",
"docs": [
"A USDC token account, checked in the handler rather than typed so that it may be the funder's own USDC account, a user acting as its own integrator. Stored by the first entry, and must equal the stored one after; never an account the vault owns."
],
"writable": true,
"optional": true
},
{
"name": "recipient",
"docs": [
"Any legacy-SPL USDC account the vault's authority does not own (`VaultOwnedRecipient`); stored, and the only place a reward can go."
],
"optional": true
},
{
"name": "vrf_payer",
"docs": [
"ORAO route only: the entry's request payer, prefunded here."
],
"writable": true,
"optional": true
},
{
"name": "orao_network_state",
"docs": [
"ORAO route only: ORAO's network state at the address derived from the pinned ORAO id, owner checked in the handler; the fee is read from it, never set by Fade."
],
"optional": true
},
{
"name": "revealer_state",
"docs": [
"Commit-reveal route only: the revealer's state, slot 0."
],
"writable": true,
"optional": true
},
{
"name": "chain",
"docs": [
"Commit-reveal route only: the revealer's active chain, when it has one."
],
"writable": true,
"optional": true
},
{
"name": "next_chain",
"docs": [
"Commit-reveal route only: the revealer's queued chain, promoted here when the active one can no longer assign (exhausted, stopped, halted, or none yet). The SDK passes it when the active chain has fewer than `CR_RING` indices left or does not assign."
],
"writable": true,
"optional": true
},
{
"name": "slot_hashes",
"docs": [
"Commit-reveal route only: pinned to the sysvar, parsed with a bounded reader (the piggyback recording of older cells)."
],
"optional": true
}
],
"args": [
{
"name": "cost",
"type": "u64"
},
{
"name": "reward_table",
"type": {
"vec": {
"defined": {
"name": "RewardLevel"
}
}
}
},
{
"name": "app_share_bps",
"type": "u64"
},
{
"name": "nonce",
"type": "u64"
},
{
"name": "route",
"type": "u8"
},
{
"name": "roles",
"docs": [
"Who holds an absent `share_account` (bits 0-1: 1 `funder_usdc`, 2 the treasury) and an absent `recipient` (bits 2-3: 1 `funder_usdc`, 2 the share account, 3 the treasury)."
],
"type": "u8"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
},
{
"name": "max_crank_lamports",
"docs": [
"The most the payer agrees to prepay in lamports for the crank fee (ORAO: `crank_request_lamports + crank_settle_lamports`) or the reveal fee (commit-reveal: `cr_settle_lamports`): an open whose fee in force is above it is refused (`CrankFeeAboveMax`)."
],
"type": "u64"
}
]
},
{
"name": "publish_chain",
"docs": [
"Signed by the revealer, never paused: queues the next hash chain, promotable after `chain_activation_seconds`."
],
"discriminator": [
146,
220,
58,
91,
70,
255,
204,
125
],
"accounts": [
{
"name": "payer",
"docs": [
"Pays the chain's rent, returned to it by `close_chain`."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "chain",
"writable": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "revealer",
"docs": [
"`config.revealer`."
],
"signer": true,
"optional": true
}
],
"args": [
{
"name": "chain_id",
"type": "u64"
},
{
"name": "length",
"type": "u64"
},
{
"name": "anchor",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "record_entry_entropy",
"docs": [
"Anyone, never paused, unpaid: records an Open entry's seed and entropy slot while SlotHashes proves them (from two slots after its open, for about 512 slots), so that finding its ORAO request never depends on the sysvar again. A commit-reveal entry's `s*` and `h*` go to the revealer's ring instead, with every older pending cell's. Succeeds without writing on an entry already recorded."
],
"discriminator": [
204,
101,
69,
211,
75,
56,
189,
233
],
"accounts": [
{
"name": "entry",
"docs": [
"The entry, at `[\"entry\", integrator, nonce]` with its stored bump."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "revealer_state",
"docs": [
"The revealer's state, commit-reveal entries only: their `s*` and `h*` are recorded in its ring."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "refund_expired_entry",
"docs": [
"Anyone, never paused, paid the settler's share, after `T_SETTLE`: an Open entry gets its vault credit back only when its seed was never recorded and its entropy slot SlotHashes no longer proves (whether its request exists can no longer be checked). An entry whose seed is known is resolved from a fulfilled request at its seed or expired, never returned (`EntropyStillProven`)."
],
"discriminator": [
123,
143,
139,
110,
205,
192,
127,
38
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; receives the settler's share of the crank fee."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "integrator",
"writable": true
},
{
"name": "entry",
"docs": [
"An ORAO entry: a commit-reveal one is refused."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "vrf_payer",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
114,
102,
45,
112,
97,
121,
101,
114
]
},
{
"kind": "account",
"path": "entry"
}
]
}
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "refund_to",
"docs": [
"The funder's account stored at open (`refund_to`), where a return goes on either route; inspected before any transfer."
],
"writable": true
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "payer",
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "refund_unrevealed_entries",
"docs": [
"`refund_unrevealed_entry` for `count` entries (at most 16), in order; bit `i` of `direct` gives entry `i`'s `refund_to` and `payer` (remaining accounts: `entry`, `integrator`, then those two)."
],
"discriminator": [
235,
172,
19,
118,
243,
96,
253,
130
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; receives each entry's `crank_settle_lamports`."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "cursor_chain",
"docs": [
"The revealer's reveal cursor chain (`reveal_chain_id`)."
],
"writable": true
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain, exactly when it is not the cursor's."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "count",
"type": "u8"
},
{
"name": "direct",
"type": "u16"
},
{
"name": "refs",
"docs": [
"The chunk's accounts follow the tail, each once, in order of first use; one byte per slot names the account it holds, `0xFF` the caller."
],
"type": "bytes"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "refund_unrevealed_entry",
"docs": [
"Anyone, never paused, paid the entry's reveal fee: returns a commit-reveal entry in full past its reveal deadline, once its `s*` can no longer be proven, or while a halt makes it return-only. A deadline or unprovable return halts the revealer, so every pending entry is returnable at once, and starts the cooldown; the `cr_max_halts`-th unacknowledged one closes the route. Without `refund_to` and `payer`, the return is parked for `deliver_reward`."
],
"discriminator": [
191,
51,
190,
155,
40,
239,
167,
132
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; receives the entry's `crank_settle_lamports`."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "integrator",
"writable": true
},
{
"name": "entry",
"docs": [
"A commit-reveal entry: an ORAO one is refused."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "cursor_chain",
"docs": [
"The revealer's reveal cursor chain (`reveal_chain_id`)."
],
"writable": true
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain, exactly when it is not the cursor's."
],
"writable": true,
"optional": true
},
{
"name": "refund_to",
"docs": [
"The entry's `refund_to`, inspected before any transfer; left out (with `payer`), the return is parked for `deliver_reward`."
],
"writable": true,
"optional": true
},
{
"name": "payer",
"docs": [
"The payer recorded at open: receives the entry's rent by the close, a direct credit. Given exactly when `refund_to` is."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "roles",
"docs": [
"The caller stands in for `refund_to` (bit 0) or `payer` (bit 1), each then absent from the tail."
],
"type": "u8"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "reopen_commit_reveal",
"docs": [
"Council only, at once: re-opens the closed route and zeroes both breaker rings; requires a revealer, no pending entry, the halts acknowledged, a chain that assigns and `PAUSE_COMMIT_REVEAL` clear."
],
"discriminator": [
140,
213,
176,
63,
135,
22,
80,
201
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain (`active_chain_id`), exactly when it has one."
],
"optional": true
},
{
"name": "queued_chain",
"docs": [
"The revealer's queued chain (`queued_chain_id`), exactly when it has one."
],
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "request_deposit",
"discriminator": [
243,
202,
197,
215,
135,
97,
213,
109
],
"accounts": [
{
"name": "owner",
"writable": true,
"signer": true
},
{
"name": "owner_usdc",
"writable": true
},
{
"name": "owner_shares",
"docs": [
"Where the claim will pay the shares: the owner's canonical account, created now so that no keeper ever advances someone else's rent."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "owner"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "share_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "queue",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "vault",
"docs": [
"Always read, for the deposit cap and for the price a strike would clear the request at now: an amount buying fewer than two share units there is refused (`BelowMinimum`); written when this request opens an epoch."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "deposit_queue_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116,
45,
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "share_mint",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "request",
"docs": [
"The epoch is the one the program computes from the queue and the clock, never an argument: a caller-chosen epoch would choose its price."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "queue.joining_epoch_id(clock.unix_timestamp)",
"account": "Queue"
},
{
"kind": "account",
"path": "owner"
}
]
}
},
{
"name": "instructions",
"address": "Sysvar1nstructions1111111111111111111111111"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "amount",
"type": "u64"
}
]
},
{
"name": "request_randomness",
"docs": [
"Anyone, from two slots after the open until `T_SETTLE`: creates the entry's ORAO request and binds it. A request someone else created at the entry's seed is never bound, pending or fulfilled (`RequestPreempted`); once ORAO fulfils it, the entry is resolved from it with `resolve_entry`, its seed recorded first."
],
"discriminator": [
213,
5,
173,
166,
37,
236,
31,
18
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; receives the requester's share of the crank fee."
],
"writable": true,
"signer": true
},
{
"name": "entry",
"docs": [
"An ORAO entry: a commit-reveal one is refused."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "vrf_payer",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
114,
102,
45,
112,
97,
121,
101,
114
]
},
{
"kind": "account",
"path": "entry"
}
]
}
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "orao_network_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
111,
45,
118,
114,
102,
45,
110,
101,
116,
119,
111,
114,
107,
45,
99,
111,
110,
102,
105,
103,
117,
114,
97,
116,
105,
111,
110
]
}
],
"program": {
"kind": "const",
"value": [
7,
71,
177,
26,
250,
145,
180,
209,
249,
34,
242,
123,
14,
186,
193,
218,
178,
59,
33,
41,
164,
190,
243,
79,
50,
164,
123,
88,
245,
206,
252,
120
]
}
}
},
{
"name": "orao_treasury",
"writable": true
},
{
"name": "request",
"writable": true
},
{
"name": "orao_program",
"address": "VRFzZoJdhFWL8rkvu87LpKM3RbcVezpMEc6X5GVDr7y"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "request_withdraw",
"discriminator": [
137,
95,
187,
96,
250,
138,
31,
182
],
"accounts": [
{
"name": "owner",
"writable": true,
"signer": true
},
{
"name": "owner_shares",
"writable": true
},
{
"name": "owner_usdc",
"docs": [
"Where the claim will pay the USDC: the owner's canonical account."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "owner"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "usdc_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "queue",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "vault",
"docs": [
"Always read for the withdrawal minimum, valued at the settled price; written when this request opens an epoch."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "share_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "share_mint",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "request",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
119,
105,
116,
104,
100,
114,
97,
119
]
},
{
"kind": "account",
"path": "queue.joining_epoch_id(clock.unix_timestamp)",
"account": "Queue"
},
{
"kind": "account",
"path": "owner"
}
]
}
},
{
"name": "instructions",
"address": "Sysvar1nstructions1111111111111111111111111"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "shares",
"type": "u64"
}
]
},
{
"name": "resolve_entry",
"docs": [
"Anyone, once ORAO has fulfilled the entry's request; no deadline. A Requested entry settles from its bound request; an Open entry whose seed is recorded, from the request at its seed's address, whoever created it (`EntropyUnrecorded` before the seed is recorded)."
],
"discriminator": [
19,
84,
99,
148,
39,
161,
105,
160
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone, once ORAO has fulfilled; receives the settler's share of the crank fee."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "integrator",
"writable": true
},
{
"name": "entry",
"docs": [
"An ORAO entry: a commit-reveal one is refused."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "entry.integrator",
"account": "Entry"
},
{
"kind": "account",
"path": "entry.nonce",
"account": "Entry"
}
]
}
},
{
"name": "vrf_payer",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
114,
102,
45,
112,
97,
121,
101,
114
]
},
{
"kind": "account",
"path": "entry"
}
]
}
},
{
"name": "randomness",
"docs": [
"A Requested entry's bound request; an Open entry's, the request at its recorded seed's address, whoever created it; checked in the handler."
]
},
{
"name": "recipient",
"writable": true
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "payer",
"writable": true,
"optional": true
}
],
"args": [
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "reveal_and_settle",
"docs": [
"Anyone, never paused, paid per entry: reveals `top_link`, link `top_index` of the revealer's reveal cursor chain, and settles every entry it exposes (the chain's head + 1 to `top_index`, at most 16), in order, each followed by the breaker's update and check; a trip closes the route, halts both chains and leaves the rest return-only. Bit `k` of `direct` gives group `k`'s `recipient` and `payer` (remaining accounts: `entry`, `integrator`, then those two); otherwise its reward is parked."
],
"discriminator": [
109,
135,
160,
152,
80,
87,
25,
104
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone (the revealer's fee payer in practice); receives each settled entry's `crank_settle_lamports`."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "chain",
"docs": [
"The revealer's reveal cursor chain (`reveal_chain_id`), identified by its fields (`WrongChain` for another chain)."
],
"writable": true
},
{
"name": "slot_hashes",
"address": "SysvarS1otHashes111111111111111111111111111"
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "reward_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
114,
101,
119,
97,
114,
100,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain, exactly when it is not the cursor's (`WrongChainId` otherwise): a breaker trip halts both."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "top_index",
"type": "u64"
},
{
"name": "top_link",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "direct",
"type": "u16"
},
{
"name": "refs",
"docs": [
"The chunk's accounts follow the tail, each once, in order of first use; one byte per slot names the account it holds, `0xFF` the caller."
],
"type": "bytes"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "set_guardian",
"docs": [
"Council only, applied at once: replaces the guardian. Pause flags are left as they are."
],
"discriminator": [
147,
243,
50,
121,
154,
164,
50,
30
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "new_guardian",
"type": "pubkey"
}
]
},
{
"name": "set_max_assets",
"docs": [
"Council only, applied at once either way: the deposit cap on the vault's settled and queued assets (`u64::MAX`: none)."
],
"discriminator": [
255,
30,
87,
108,
250,
54,
161,
52
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "max_assets",
"type": "u64"
}
]
},
{
"name": "set_params",
"docs": [
"Council only, at once after validation; Closes the commit-reveal route when the new `cr_max_halts` is at or below the unacknowledged halts."
],
"discriminator": [
27,
234,
178,
52,
147,
2,
187,
141
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "protocol_treasury",
"docs": [
"The treasury the change sets; the current one to leave it alone."
]
},
{
"name": "vault",
"docs": [
"Closed here when the change lowers `cr_max_halts` to or below the revealer's unacknowledged halts."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "revealer_state",
"docs": [
"Read for `unacknowledged_halts`."
]
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "RiskParams"
}
}
}
]
},
{
"name": "set_pause_flags",
"docs": [
"The guardian may only set flags; the council may also clear them."
],
"discriminator": [
205,
167,
85,
237,
144,
202,
248,
175
],
"accounts": [
{
"name": "authority",
"docs": [
"The guardian or the council."
],
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "pause_flags",
"type": "u8"
}
]
},
{
"name": "set_protocol_share_tiers",
"docs": [
"Council only, at once: replaces the protocol share tiers whole; a `count` of 0 turns them off (`fade_math::share_tiers`)."
],
"discriminator": [
59,
97,
51,
181,
192,
56,
14,
104
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "count",
"type": "u8"
},
{
"name": "min_volumes",
"type": {
"array": [
"u64",
4
]
}
},
{
"name": "rates_bps",
"type": {
"array": [
"u16",
4
]
}
}
]
},
{
"name": "set_revealer",
"docs": [
"Council, at once: replaces the revealer, or clears it (the default key) and closes the commit-reveal route. A queued chain of another key is vetoed, the chain that assigns stops and drains."
],
"discriminator": [
254,
250,
222,
67,
115,
246,
223,
211
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "vault",
"docs": [
"Needed for a clear, which closes the route; ignored for a new key, which may leave it absent."
],
"writable": true,
"optional": true
},
{
"name": "queued_chain",
"docs": [
"The revealer's queued chain, optional for any change: given, it is vetoed (or kept when the new key published it); absent, a queued chain is dropped from the queue."
],
"writable": true,
"optional": true
},
{
"name": "active_chain",
"docs": [
"The revealer's active chain, exactly when it has one, for any change."
],
"writable": true,
"optional": true
}
],
"args": [
{
"name": "new_revealer",
"type": "pubkey"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "set_share_account",
"docs": [
"Signed by the integrator's authority: the only way to move its share account."
],
"discriminator": [
100,
171,
226,
215,
6,
73,
125,
202
],
"accounts": [
{
"name": "integrator_authority",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "integrator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
105,
110,
116,
101,
103,
114,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "integrator_authority"
}
]
}
},
{
"name": "share_account",
"docs": [
"Any USDC account but the vault's own: an integrator may route its share anywhere else."
]
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "set_share_metadata",
"docs": [
"Council only: the share mint's name, symbol and logo in wallets (Token Metadata). Creates the metadata on the first call, rewrites it after."
],
"discriminator": [
106,
202,
192,
212,
13,
208,
211,
35
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "vault_authority",
"docs": [
"The share mint's mint authority and the metadata's update authority."
],
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "share_mint",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "metadata",
"docs": [
"The share mint's metadata PDA under Token Metadata; created on the first call."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
109,
101,
116,
97,
100,
97,
116,
97
]
},
{
"kind": "const",
"value": [
11,
112,
101,
177,
227,
209,
124,
69,
56,
157,
82,
127,
107,
4,
195,
205,
88,
184,
108,
115,
26,
160,
253,
181,
73,
182,
209,
188,
3,
248,
41,
70
]
},
{
"kind": "account",
"path": "share_mint"
}
],
"program": {
"kind": "const",
"value": [
11,
112,
101,
177,
227,
209,
124,
69,
56,
157,
82,
127,
107,
4,
195,
205,
88,
184,
108,
115,
26,
160,
253,
181,
73,
182,
209,
188,
3,
248,
41,
70
]
}
}
},
{
"name": "token_metadata_program",
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
},
{
"name": "payer",
"docs": [
"Pays the metadata account's rent and Token Metadata's creation fee."
],
"writable": true,
"signer": true,
"optional": true
}
],
"args": [
{
"name": "name",
"type": "string"
},
{
"name": "symbol",
"type": "string"
},
{
"name": "uri",
"type": "string"
},
{
"name": "present",
"docs": [
"The optional tail's presence mask: bit i set when the tail's account i follows the declared accounts, absent accounts left out, never marked by the program's address."
],
"type": "u16"
}
]
},
{
"name": "stop_chain",
"docs": [
"Council: the active chain stops assigning; its pending indices drain."
],
"discriminator": [
127,
88,
173,
76,
146,
21,
108,
189
],
"accounts": [
{
"name": "council",
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state"
},
{
"name": "chain",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "chain_id",
"type": "u64"
}
]
},
{
"name": "strike_epoch",
"docs": [
"Anyone, once the live epoch has closed and no entry opened before the close is still open."
],
"discriminator": [
142,
118,
147,
245,
251,
183,
34,
93
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; advances the record's rent, which the strike fund reimburses, and receives `STRIKE_REWARD` from the fund."
],
"writable": true,
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "queue",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "record",
"docs": [
"Written once; afterwards only its count of pending readers changes."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
112,
111,
99,
104
]
},
{
"kind": "account",
"path": "queue.current.epoch_id",
"account": "Queue"
}
]
}
},
{
"name": "deposit_queue_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116,
45,
113,
117,
101,
117,
101
]
}
]
}
},
{
"name": "vault_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
100,
99,
45,
118,
97,
117,
108,
116
]
}
]
}
},
{
"name": "payable_usdc",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
97,
121,
97,
98,
108,
101
]
}
]
}
},
{
"name": "share_mint",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "share_escrow",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
101,
115,
99,
114,
111,
119
]
}
]
}
},
{
"name": "share_claims",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
101,
45,
99,
108,
97,
105,
109,
115
]
}
]
}
},
{
"name": "dead_shares",
"docs": [
"Receives `DEAD_SHARES` at the vault's first mint, and nothing ever leaves it."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
97,
100,
45,
115,
104,
97,
114,
101,
115
]
}
]
}
},
{
"name": "vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
97,
117,
108,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "usdc_mint"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": []
},
{
"name": "sweep_entry_vrf",
"docs": [
"Anyone, never paused, unpaid: the lamports on a closed direct entry's `vrf_payer` (ORAO's return for a request fulfilled after the entry expired, or a transfer), to the caller. Nothing to sweep succeeds without moving anything."
],
"discriminator": [
171,
23,
81,
250,
198,
81,
213,
195
],
"accounts": [
{
"name": "caller",
"docs": [
"Anyone; receives what a closed entry's `vrf_payer` holds."
],
"writable": true,
"signer": true
},
{
"name": "integrator",
"docs": [
"Read for `next_nonce`: only an entry the integrator opened is swept."
],
"pda": {
"seeds": [
{
"kind": "const",
"value": [
105,
110,
116,
101,
103,
114,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "integrator.authority",
"account": "Integrator"
}
]
}
},
{
"name": "entry",
"docs": [
"Entry `nonce`'s address, `[\"entry\", integrator, nonce]`. Only its owner is read: an entry's address is never used again, so any owner but this program means the entry has closed."
],
"pda": {
"seeds": [
{
"kind": "const",
"value": [
101,
110,
116,
114,
121
]
},
{
"kind": "account",
"path": "integrator"
},
{
"kind": "arg",
"path": "nonce"
}
]
}
},
{
"name": "vrf_payer",
"docs": [
"`[\"vrf-payer\", entry]`, signed by the program."
],
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
114,
102,
45,
112,
97,
121,
101,
114
]
},
{
"kind": "account",
"path": "entry"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "nonce",
"type": "u64"
}
]
},
{
"name": "veto_chain",
"docs": [
"The guardian or the council: vetoes the queued chain."
],
"discriminator": [
25,
253,
136,
251,
14,
97,
234,
144
],
"accounts": [
{
"name": "authority",
"docs": [
"The guardian or the council."
],
"signer": true
},
{
"name": "config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "revealer_state",
"writable": true
},
{
"name": "chain",
"writable": true
},
{
"name": "event_authority"
},
{
"name": "program"
}
],
"args": [
{
"name": "chain_id",
"type": "u64"
}
]
}
],
"accounts": [
{
"name": "Config",
"discriminator": [
155,
12,
170,
224,
30,
250,
204,
130
]
},
{
"name": "DepositRequest",
"discriminator": [
86,
27,
56,
8,
25,
62,
62,
243
]
},
{
"name": "Entry",
"discriminator": [
63,
18,
152,
113,
215,
246,
221,
250
]
},
{
"name": "EpochRecord",
"discriminator": [
193,
72,
26,
28,
161,
98,
58,
132
]
},
{
"name": "HashChain",
"discriminator": [
235,
24,
190,
194,
57,
204,
138,
239
]
},
{
"name": "Integrator",
"discriminator": [
188,
141,
128,
161,
231,
248,
0,
128
]
},
{
"name": "Queue",
"discriminator": [
204,
167,
6,
247,
20,
33,
2,
188
]
},
{
"name": "RevealerState",
"discriminator": [
248,
53,
96,
203,
48,
204,
144,
245
]
},
{
"name": "Vault",
"discriminator": [
211,
8,
232,
43,
2,
152,
117,
119
]
},
{
"name": "WithdrawRequest",
"discriminator": [
186,
239,
174,
191,
189,
13,
47,
196
]
}
],
"events": [
{
"name": "ChainActivated",
"discriminator": [
209,
105,
170,
106,
251,
135,
216,
203
]
},
{
"name": "ChainAdvanced",
"discriminator": [
207,
53,
12,
13,
166,
110,
237,
65
]
},
{
"name": "ChainClosed",
"discriminator": [
76,
212,
226,
84,
73,
197,
97,
2
]
},
{
"name": "ChainPublished",
"discriminator": [
27,
168,
101,
137,
87,
54,
35,
134
]
},
{
"name": "ChainStopped",
"discriminator": [
243,
237,
43,
231,
247,
206,
221,
157
]
},
{
"name": "ChainVetoed",
"discriminator": [
80,
61,
47,
82,
21,
52,
67,
209
]
},
{
"name": "ClaimDelivered",
"discriminator": [
153,
180,
207,
20,
6,
69,
10,
36
]
},
{
"name": "CouncilTransferCancelled",
"discriminator": [
238,
27,
237,
127,
202,
198,
31,
144
]
},
{
"name": "CouncilTransferStarted",
"discriminator": [
104,
139,
98,
138,
230,
170,
135,
43
]
},
{
"name": "CouncilTransferred",
"discriminator": [
254,
113,
123,
81,
75,
3,
82,
87
]
},
{
"name": "CrBreakerTripped",
"discriminator": [
163,
8,
200,
60,
149,
120,
97,
156
]
},
{
"name": "CrClosed",
"discriminator": [
102,
94,
164,
242,
147,
79,
156,
86
]
},
{
"name": "CrReopened",
"discriminator": [
26,
43,
24,
88,
153,
130,
129,
101
]
},
{
"name": "DepositClaimed",
"discriminator": [
119,
147,
244,
76,
141,
103,
170,
176
]
},
{
"name": "DepositRequested",
"discriminator": [
35,
33,
229,
138,
116,
238,
192,
22
]
},
{
"name": "EntryEntropyRecorded",
"discriminator": [
144,
132,
195,
202,
68,
32,
6,
243
]
},
{
"name": "EntryExpired",
"discriminator": [
205,
180,
243,
250,
250,
44,
150,
206
]
},
{
"name": "EntryOpened",
"discriminator": [
100,
185,
205,
172,
46,
202,
149,
203
]
},
{
"name": "EntryResolved",
"discriminator": [
113,
17,
101,
64,
117,
32,
124,
86
]
},
{
"name": "EntryRevealRefunded",
"discriminator": [
134,
162,
1,
83,
82,
39,
6,
25
]
},
{
"name": "EntryRevealResolved",
"discriminator": [
112,
93,
164,
91,
157,
103,
70,
134
]
},
{
"name": "EntrySharesClaimed",
"discriminator": [
184,
20,
178,
130,
155,
35,
19,
73
]
},
{
"name": "EntryVrfSwept",
"discriminator": [
224,
196,
228,
246,
36,
238,
107,
133
]
},
{
"name": "EpochStruck",
"discriminator": [
104,
123,
204,
144,
191,
189,
72,
242
]
},
{
"name": "GuardianChanged",
"discriminator": [
152,
239,
217,
24,
162,
189,
236,
143
]
},
{
"name": "HaltsAcknowledged",
"discriminator": [
138,
156,
162,
219,
27,
167,
199,
158
]
},
{
"name": "Initialized",
"discriminator": [
208,
213,
115,
98,
115,
82,
201,
209
]
},
{
"name": "IntegratorCreated",
"discriminator": [
154,
43,
148,
226,
179,
128,
14,
229
]
},
{
"name": "MaxAssetsChanged",
"discriminator": [
34,
174,
163,
142,
91,
31,
152,
76
]
},
{
"name": "ParamsChanged",
"discriminator": [
174,
49,
9,
64,
58,
171,
241,
24
]
},
{
"name": "PauseFlagsChanged",
"discriminator": [
56,
73,
67,
44,
237,
239,
68,
124
]
},
{
"name": "ProtocolShareTiersChanged",
"discriminator": [
228,
174,
9,
132,
3,
205,
128,
242
]
},
{
"name": "RandomnessRequested",
"discriminator": [
10,
64,
183,
29,
104,
63,
90,
149
]
},
{
"name": "RevealerApplied",
"discriminator": [
152,
126,
138,
57,
204,
15,
149,
250
]
},
{
"name": "RevealerEntropyRecorded",
"discriminator": [
148,
105,
64,
138,
125,
194,
68,
214
]
},
{
"name": "RevealerHalted",
"discriminator": [
61,
137,
29,
22,
8,
106,
33,
229
]
},
{
"name": "RewardDelivered",
"discriminator": [
136,
67,
88,
179,
92,
47,
154,
100
]
},
{
"name": "ShareAccountChanged",
"discriminator": [
249,
118,
104,
137,
89,
217,
64,
5
]
},
{
"name": "ShareMetadataSet",
"discriminator": [
40,
99,
178,
110,
127,
67,
58,
252
]
},
{
"name": "WithdrawClaimed",
"discriminator": [
77,
130,
89,
38,
239,
172,
174,
85
]
},
{
"name": "WithdrawRequested",
"discriminator": [
114,
16,
240,
206,
93,
128,
151,
39
]
}
],
"errors": [
{
"code": 6000,
"name": "NotUpgradeAuthority",
"msg": "signer is not the program's upgrade authority"
},
{
"code": 6001,
"name": "InvalidParams",
"msg": "parameters are out of range"
},
{
"code": 6002,
"name": "Paused",
"msg": "this operation is paused"
},
{
"code": 6003,
"name": "NotCouncil",
"msg": "signer is not the council"
},
{
"code": 6004,
"name": "NotGuardian",
"msg": "signer is neither the council nor the guardian"
},
{
"code": 6005,
"name": "GuardianCannotUnpause",
"msg": "the guardian may only set pause flags, never clear them"
},
{
"code": 6006,
"name": "NoPendingChange",
"msg": "no parameter change is pending"
},
{
"code": 6007,
"name": "ChangeNotDue",
"msg": "the pending parameter change is not due yet"
},
{
"code": 6008,
"name": "WrongMint",
"msg": "wrong mint"
},
{
"code": 6009,
"name": "MathOverflow",
"msg": "arithmetic overflow"
},
{
"code": 6010,
"name": "ZeroAmount",
"msg": "amount must be non-zero"
},
{
"code": 6011,
"name": "RemainingAccounts",
"msg": "unexpected remaining accounts"
},
{
"code": 6012,
"name": "LevelCount",
"msg": "reward table: zero levels or more than 32"
},
{
"code": 6013,
"name": "ProbabilityRange",
"msg": "reward table: a probability of zero or above 1"
},
{
"code": 6014,
"name": "ProbabilitySum",
"msg": "reward table: probabilities do not sum to exactly 1"
},
{
"code": 6015,
"name": "RewardCeiling",
"msg": "reward table: a level above 10 000x the cost"
},
{
"code": 6016,
"name": "RewardTableOverpays",
"msg": "reward table: pays more in rewards than it takes in costs on average"
},
{
"code": 6017,
"name": "MarginFloor",
"msg": "reward table margin does not cover the vault margin floor plus the protocol and app shares"
},
{
"code": 6018,
"name": "AppShareTooHigh",
"msg": "app share above the maximum"
},
{
"code": 6019,
"name": "CostBounds",
"msg": "entry cost below the minimum or above the maximum"
},
{
"code": 6020,
"name": "PerEntryCap",
"msg": "worst-case reward above the per-entry cap"
},
{
"code": 6021,
"name": "IntegratorCap",
"msg": "integrator exposure above its ceiling"
},
{
"code": 6022,
"name": "UtilisationBreaker",
"msg": "utilisation breaker: the vault is too committed"
},
{
"code": 6023,
"name": "GlobalExposure",
"msg": "reserved liability would exceed kappa of assets"
},
{
"code": 6024,
"name": "Insolvent",
"msg": "the vault could not pay every open entry at once"
},
{
"code": 6025,
"name": "DrawdownBreaker",
"msg": "drawdown breaker: the share price fell too far in 24 hours"
},
{
"code": 6026,
"name": "WrongNonce",
"msg": "entry nonce must equal the integrator's next nonce"
},
{
"code": 6027,
"name": "ShareAccountMismatch",
"msg": "share account differs from the integrator record"
},
{
"code": 6028,
"name": "WrongEntryStatus",
"msg": "the entry is not in the state this instruction needs"
},
{
"code": 6029,
"name": "RequestWindow",
"msg": "randomness may only be requested from two slots after the open until T_SETTLE"
},
{
"code": 6030,
"name": "EntropyUnavailable",
"msg": "SlotHashes holds no slot after the open"
},
{
"code": 6031,
"name": "NetworkStateUnreadable",
"msg": "ORAO network state could not be read"
},
{
"code": 6032,
"name": "TreasuryMismatch",
"msg": "treasury does not match ORAO network state"
},
{
"code": 6033,
"name": "WrongRandomnessAccount",
"msg": "randomness account is not the one bound to this entry"
},
{
"code": 6034,
"name": "NotFulfilled",
"msg": "randomness is not fulfilled"
},
{
"code": 6035,
"name": "AlreadyFulfilled",
"msg": "randomness is fulfilled: resolve, do not expire"
},
{
"code": 6036,
"name": "NotExpired",
"msg": "T_SETTLE has not elapsed"
},
{
"code": 6037,
"name": "NoLevelSelected",
"msg": "no reward level could be selected"
},
{
"code": 6038,
"name": "RecipientMismatch",
"msg": "recipient differs from the one stored at open"
},
{
"code": 6039,
"name": "NoLiveEpoch",
"msg": "no epoch is live"
},
{
"code": 6040,
"name": "EpochNotClosed",
"msg": "the epoch has not closed yet"
},
{
"code": 6041,
"name": "StrikeNotClean",
"msg": "an entry opened before the close is still open"
},
{
"code": 6042,
"name": "BelowMinimum",
"msg": "request below the minimum"
},
{
"code": 6043,
"name": "FirstDepositTooSmall",
"msg": "a first deposit must be at least min_first_deposit"
},
{
"code": 6044,
"name": "ForbiddenComposition",
"msg": "a top-level instruction of this transaction is not allowed with a request"
},
{
"code": 6045,
"name": "WrongRecord",
"msg": "the record does not belong to this request's epoch or chain"
},
{
"code": 6046,
"name": "StartRecordRequired",
"msg": "the epoch record of the request's start is required"
},
{
"code": 6047,
"name": "RentReceiverRequired",
"msg": "the account that advanced the record's rent is required"
},
{
"code": 6048,
"name": "NothingToClaim",
"msg": "nothing to claim yet"
},
{
"code": 6049,
"name": "WrongOwner",
"msg": "wrong owner"
},
{
"code": 6050,
"name": "NotStruck",
"msg": "the request's epoch has not been struck"
},
{
"code": 6051,
"name": "DestinationUnusable",
"msg": "the owner's token account cannot receive yet"
},
{
"code": 6052,
"name": "EntropyUnrecorded",
"msg": "the entropy was never recorded and SlotHashes no longer proves it"
},
{
"code": 6053,
"name": "EntropyStillProven",
"msg": "SlotHashes still proves the entry's entropy: record it, then settle or expire the entry"
},
{
"code": 6054,
"name": "ConfigVersion",
"msg": "the Config was written for another layout version"
},
{
"code": 6055,
"name": "DepositCapReached",
"msg": "the deposit would take the vault above its deposit cap"
},
{
"code": 6056,
"name": "NoPendingCouncilTransfer",
"msg": "no council transfer is pending"
},
{
"code": 6057,
"name": "NotPendingCouncil",
"msg": "only the pending council accepts the transfer"
},
{
"code": 6058,
"name": "CouncilTransferNotDue",
"msg": "the council transfer is not due yet"
},
{
"code": 6059,
"name": "RequestPreempted",
"msg": "someone else created the request at the entry's seed: it is never bound"
},
{
"code": 6060,
"name": "InvalidRevealer",
"msg": "the revealer key must differ from the council and the guardian"
},
{
"code": 6061,
"name": "VaultOwnedShareAccount",
"msg": "a token account the vault owns cannot be a share account"
},
{
"code": 6062,
"name": "ChainLengthOutOfRange",
"msg": "a hash chain's length must be within [MIN_CHAIN_LENGTH, MAX_CHAIN_LENGTH]"
},
{
"code": 6063,
"name": "ChainQueueFull",
"msg": "a hash chain is queued already"
},
{
"code": 6064,
"name": "ChainNotActive",
"msg": "the hash chain is not in the status this instruction needs"
},
{
"code": 6065,
"name": "ChainActivationPending",
"msg": "the queued hash chain cannot be promoted yet"
},
{
"code": 6066,
"name": "ChainOutstanding",
"msg": "a hash chain still has pending indices"
},
{
"code": 6067,
"name": "WrongChainId",
"msg": "the hash chain is not the one this instruction needs"
},
{
"code": 6068,
"name": "NotRevealer",
"msg": "signer is not the revealer"
},
{
"code": 6069,
"name": "RevealerPending",
"msg": "a revealer change is pending"
},
{
"code": 6070,
"name": "WrongRoute",
"msg": "the entry is on the other route"
},
{
"code": 6071,
"name": "RouteMismatch",
"msg": "the route given is not the entry's route: parameters changed, re-quote"
},
{
"code": 6072,
"name": "RouteUnavailable",
"msg": "the commit-reveal route is paused"
},
{
"code": 6073,
"name": "MissingRouteAccounts",
"msg": "an account the entry's route needs is missing"
},
{
"code": 6074,
"name": "RevealBacklog",
"msg": "the revealer has too many pending entries: temporarily unavailable"
},
{
"code": 6075,
"name": "RevealerCooldown",
"msg": "the revealer's cooldown runs: temporarily unavailable"
},
{
"code": 6076,
"name": "ChainExhausted",
"msg": "the active hash chain is exhausted and no successor was given"
},
{
"code": 6077,
"name": "ChainHalted",
"msg": "the revealer is halted"
},
{
"code": 6078,
"name": "NotRevealDeadline",
"msg": "the entry's reveal deadline has not passed"
},
{
"code": 6079,
"name": "EntrySettleable",
"msg": "the entry can still be revealed: it is not returned before its deadline"
},
{
"code": 6080,
"name": "MalformedChunk",
"msg": "the groups of accounts do not match the instruction's arguments"
},
{
"code": 6081,
"name": "CrRouteOpen",
"msg": "the commit-reveal route is open"
},
{
"code": 6082,
"name": "CrRouteClosed",
"msg": "the commit-reveal route is closed"
},
{
"code": 6083,
"name": "CrReopenPending",
"msg": "a re-open of the commit-reveal route is queued already"
},
{
"code": 6084,
"name": "CrReopenNotDue",
"msg": "the queued re-open of the commit-reveal route is not due yet"
},
{
"code": 6085,
"name": "CrHaltOutstanding",
"msg": "a commit-reveal entry is still pending"
},
{
"code": 6086,
"name": "CrHaltsUnacknowledged",
"msg": "the revealer's halts are unacknowledged"
},
{
"code": 6087,
"name": "RevealerNotSet",
"msg": "no revealer is set"
},
{
"code": 6088,
"name": "CrReopenNoChain",
"msg": "no chain of the revealer would assign a commit-reveal entry"
},
{
"code": 6089,
"name": "WrongChain",
"msg": "the hash chain is not the revealer's reveal cursor"
},
{
"code": 6090,
"name": "WrongChainIndex",
"msg": "the index is not the next one the chain reveals"
},
{
"code": 6091,
"name": "RevealTooFar",
"msg": "a reveal covers at most MAX_REVEAL_CHUNK indices above the head"
},
{
"code": 6092,
"name": "InvalidReveal",
"msg": "the link does not verify against the chain's head"
},
{
"code": 6093,
"name": "RevealDeadlinePassed",
"msg": "the reveal deadline has passed: the entry is returned"
},
{
"code": 6094,
"name": "VaultOwnedRecipient",
"msg": "the reward recipient may not be an account the vault owns"
},
{
"code": 6095,
"name": "TryingToInitPayerAsProgramAccount",
"msg": "the payer of an account cannot be the account it creates"
},
{
"code": 6096,
"name": "AccountNotEnoughKeys",
"msg": "an account the instruction needs is missing"
},
{
"code": 6097,
"name": "CrankFeeAboveMax",
"msg": "the entry's crank fee is above the most its payer agreed to prepay"
}
],
"types": [
{
"name": "BreakerBucket",
"docs": [
"One bucket of the breaker's window (48 bytes): settlements whose slot is in bucket `id = slot / CR_BREAKER_BUCKET_SLOTS`."
],
"serialization": "bytemuck",
"repr": {
"kind": "c"
},
"type": {
"kind": "struct",
"fields": [
{
"name": "id",
"type": "u64"
},
{
"name": "settled",
"type": "u32"
},
{
"name": "_pad",
"type": "u32"
},
{
"name": "excess",
"docs": [
"`i128`, little-endian: `Σ (reward − expected)`."
],
"type": {
"array": [
"u8",
16
]
}
},
{
"name": "variance",
"docs": [
"`u128`, little-endian: `Σ variance`."
],
"type": {
"array": [
"u8",
16
]
}
}
]
}
},
{
"name": "Cell",
"docs": [
"One pending or done index of a revealer, at `ring[seq mod CR_RING]` (72 bytes)."
],
"serialization": "bytemuck",
"repr": {
"kind": "c"
},
"type": {
"kind": "struct",
"fields": [
{
"name": "target_slot",
"type": "u64"
},
{
"name": "deadline_slot",
"type": "u64"
},
{
"name": "entropy_slot",
"docs": [
"0 = unrecorded."
],
"type": "u64"
},
{
"name": "entropy_hash",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "liability",
"docs": [
"The entry's reserved liability, for `RevealerState.pending_liability`."
],
"type": "u64"
},
{
"name": "state",
"docs": [
"`Cell::PENDING`, `REVEALED` or `REFUNDED`; `EMPTY` before first use."
],
"type": "u8"
},
{
"name": "_pad",
"type": {
"array": [
"u8",
7
]
}
}
]
}
},
{
"name": "ChainActivated",
"docs": [
"A queued chain became the one that assigns (`activate_chain`, or a commit-reveal open): its index 1 is sequence number `first_seq`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "first_seq",
"type": "u64"
},
{
"name": "predecessor_id",
"docs": [
"The chain it follows, or 0."
],
"type": "u64"
},
{
"name": "reveal_chain_id",
"docs": [
"`RevealerState.reveal_chain_id` after the promotion."
],
"type": "u64"
}
]
}
},
{
"name": "ChainAdvanced",
"docs": [
"The reveal cursor's chain advanced from `from_index` (its head before) to `to_index`, whose link `link` is now its head link; every index in between settled. After a trip `to_index` is the tripping index, and the chunk's later indices are return-only. `last_advance_slot` is the revealer's public lag mark."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "from_index",
"type": "u64"
},
{
"name": "to_index",
"type": "u64"
},
{
"name": "link",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "last_advance_slot",
"type": "u64"
}
]
}
},
{
"name": "ChainClosed",
"docs": [
"`close_chain`: a finished chain's account is closed, its rent returned."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "status",
"type": {
"defined": {
"name": "ChainStatus"
}
}
},
{
"name": "rent_payer",
"type": "pubkey"
},
{
"name": "lamports",
"type": "u64"
}
]
}
},
{
"name": "ChainPublished",
"docs": [
"`publish_chain`: a chain is queued, promotable from `activates_ts`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "publisher",
"docs": [
"The key that signed: the revealer, or the queued one ahead of its change."
],
"type": "pubkey"
},
{
"name": "rent_payer",
"type": "pubkey"
},
{
"name": "length",
"type": "u64"
},
{
"name": "anchor",
"docs": [
"`x_0`: the monitor checks it against the revealer's own report."
],
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "activates_ts",
"type": "i64"
}
]
}
},
{
"name": "ChainStatus",
"docs": [
"A hash chain's life."
],
"type": {
"kind": "enum",
"variants": [
{
"name": "Queued"
},
{
"name": "Active"
},
{
"name": "Draining"
},
{
"name": "Done"
},
{
"name": "Halted"
},
{
"name": "Vetoed"
}
]
}
},
{
"name": "ChainStopped",
"docs": [
"The council stopped the active chain (`stop_chain`): it assigns no more, its pending indices still reveal."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "status",
"docs": [
"`Draining` while indices are pending, `Done` otherwise."
],
"type": {
"defined": {
"name": "ChainStatus"
}
}
},
{
"name": "pending",
"type": "u64"
}
]
}
},
{
"name": "ChainVetoed",
"docs": [
"The guardian or the council vetoed a queued chain."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "by",
"type": "pubkey"
},
{
"name": "vetoes",
"docs": [
"`RevealerState.vetoes` after it."
],
"type": "u64"
}
]
}
},
{
"name": "ClaimDelivered",
"docs": [
"A parked claim handed over once the owner's account could receive."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "deposit",
"docs": [
"A deposit request (shares, or USDC when `refund`) or a withdrawal request (USDC)."
],
"type": "bool"
},
{
"name": "refund",
"docs": [
"A deposit request's return: `amount` is USDC."
],
"type": "bool"
},
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "Config",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "vault_authority_bump",
"docs": [
"Bump of `[\"vault-authority\"]`, which owns every token account."
],
"type": "u8"
},
{
"name": "council",
"docs": [
"Parameter authority, and the only party that lifts a pause."
],
"type": "pubkey"
},
{
"name": "guardian",
"docs": [
"May only tighten: set pause flags, veto a queued chain, close the commit-reveal route, halt the revealer."
],
"type": "pubkey"
},
{
"name": "protocol_treasury",
"docs": [
"USDC token account receiving the protocol share."
],
"type": "pubkey"
},
{
"name": "usdc_mint",
"type": "pubkey"
},
{
"name": "pause_flags",
"docs": [
"Bit set: see `Config::PAUSE_*`."
],
"type": "u8"
},
{
"name": "params",
"type": {
"defined": {
"name": "RiskParams"
}
}
},
{
"name": "_reserved_pending",
"docs": [
"329 bytes at offset 428 (`version` at 8, after the discriminator). Never read or written by the program. Zero in an account this build initialises. The devnet deployment's account may hold non-zero bytes here, written by its `initialize` (a copy of its first parameters and treasury) or by a change queued before its upgrade to this build. Clients must not read them. A later field taken from these bytes must first zero them on any deployment initialised before this build (devnet), as every earlier field taken from a reserved tail assumed zero."
],
"type": {
"array": [
"u8",
329
]
}
},
{
"name": "max_assets",
"docs": [
"Ceiling on the vault's settled assets plus its queued deposits that a deposit request may reach, USDC base units; `u64::MAX` is no cap. Set by the council alone (`set_max_assets`), outside `params`, applied at once. Taken from the reserved tail."
],
"type": "u64"
},
{
"name": "pending_council",
"docs": [
"The council a `begin_council_transfer` named, `Pubkey::default()` when none is pending; it alone accepts, at once, with its own signature. Taken from the reserved tail."
],
"type": "pubkey"
},
{
"name": "_reserved_transfer",
"docs": [
"8 bytes at offset 797. Never read or written by the program. Zero in an account this build initialises. The devnet deployment's account may hold non-zero bytes here, written by its `initialize` or by a change queued before its upgrade to this build. Clients must not read them. A later field taken from these bytes must first zero them on any deployment initialised before this build (devnet), as every earlier field taken from a reserved tail assumed zero."
],
"type": {
"array": [
"u8",
8
]
}
},
{
"name": "deployment_nonce",
"docs": [
"Written once by `initialize`: `SHA256(\"FADE/DEPLOYMENT/v1\" ‖ program ‖ le64(slot) ‖ newest SlotHashes hash)`. Every hash-chain link and commit-reveal outcome preimage carries it."
],
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "revealer",
"docs": [
"The commit-reveal revealer's key; `Pubkey::default()` when none is set, and the route is then closed. `initialize` sets the first one; every later change is the council's `set_revealer`, at once."
],
"type": "pubkey"
},
{
"name": "_reserved_revealer_change",
"docs": [
"40 bytes at offset 869. Never read or written by the program. Zero in an account this build initialises. The devnet deployment's account may hold non-zero bytes here, written by its `initialize` or by a change queued before its upgrade to this build. Clients must not read them. A later field taken from these bytes must first zero them on any deployment initialised before this build (devnet), as every earlier field taken from a reserved tail assumed zero."
],
"type": {
"array": [
"u8",
40
]
}
},
{
"name": "_reserved_revealers",
"docs": [
"Room for a second revealer key and an enable mask; zero in version 1."
],
"type": {
"array": [
"u8",
96
]
}
},
{
"name": "_reserved",
"docs": [
"80 bytes at offset 1 005. The first 41 hold the protocol share tiers, little-endian: byte 0 is the count of used tiers, then four 10-byte slots, slot i at byte 1 + 10 i, each a `u64` `min_volume` (the integrator's cumulative volume, USDC base units, from which the tier applies) then a `u16` rate in bps. Bytes 41 to 79 are spare, zero. The tiers are valid when the count is at most 4, every used `min_volume` is above zero and strictly rising, every used rate is at most 10 000 bps and strictly falling, and every unused slot is all zero. A count of 0 means no tier, and so do tiers that are not valid: they are never rejected on read, only ignored. An entry's protocol share rate is that of the highest used tier whose `min_volume` is at most its integrator's `volume_total` before the open, capped at the base `params.protocol_share_bps` (a tier rate above the base pays the base), and the base when no tier is reached or the tiers are not valid. Written whole by `set_protocol_share_tiers` only."
],
"type": {
"array": [
"u8",
80
]
}
}
]
}
},
{
"name": "CouncilTransferCancelled",
"docs": [
"`cancel_council_transfer` dropped the pending transfer to `new_council`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "council",
"type": "pubkey"
},
{
"name": "new_council",
"type": "pubkey"
}
]
}
},
{
"name": "CouncilTransferStarted",
"docs": [
"`begin_council_transfer` named a new council, which may accept at once: `effective_at` is the transaction's time. A new call replaces the pending one."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_council",
"type": "pubkey"
},
{
"name": "new_council",
"type": "pubkey"
},
{
"name": "effective_at",
"type": "i64"
}
]
}
},
{
"name": "CouncilTransferred",
"docs": [
"`accept_council_transfer`: `new_council` is the council."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_council",
"type": "pubkey"
},
{
"name": "new_council",
"type": "pubkey"
}
]
}
},
{
"name": "CrBreakerTripped",
"docs": [
"The breaker tripped at the settlement of `entry` (sequence number `seq`) at `slot`: the window's `excess` (`X`), `variance` (`V`) and `isqrt_v`, the 7-day `week_excess` (`X7`) and the `assets` (`A`) it was checked against, the thresholds read at the check, and the arm (0 significant and material, 1 beyond the ceiling, 2 the week line, 3 an overflow). The route closed now if `route_was_open` (`cr_closed_by` 1), both chains are halted, and every cell pending after `seq` is return-only from `halt_seq` (0 when none was pending). `ordinal` is `Vault.cr_breaker_trips` after it."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "slot",
"type": "u64"
},
{
"name": "seq",
"type": "u64"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "excess",
"type": "i128"
},
{
"name": "variance",
"type": "u128"
},
{
"name": "isqrt_v",
"type": "u128"
},
{
"name": "week_excess",
"type": "i128"
},
{
"name": "assets",
"type": "u64"
},
{
"name": "k_tenths",
"type": "u64"
},
{
"name": "floor_bps",
"type": "u64"
},
{
"name": "ceiling_bps",
"type": "u64"
},
{
"name": "week_bps",
"type": "u64"
},
{
"name": "arm",
"type": "u8"
},
{
"name": "route_was_open",
"type": "bool"
},
{
"name": "halt_seq",
"type": "u64"
},
{
"name": "ordinal",
"type": "u64"
}
]
}
},
{
"name": "CrClosed",
"docs": [
"The commit-reveal route closed: small entries open on ORAO from now. `by` is `Vault.cr_closed_by`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "by",
"type": "u8"
},
{
"name": "slot",
"type": "u64"
}
]
}
},
{
"name": "CrReopened",
"docs": [
"The commit-reveal route re-opened (`reopen_commit_reveal`, `by` the council): the closure `closed_by` at `closed_slot` is lifted and both breaker rings are zeroed. Small entries take the route again from `slot`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "by",
"type": "pubkey"
},
{
"name": "closed_by",
"type": "u8"
},
{
"name": "closed_slot",
"type": "u64"
},
{
"name": "slot",
"type": "u64"
}
]
}
},
{
"name": "DepositClaimed",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "shares",
"type": "u64"
},
{
"name": "refunded",
"docs": [
"USDC returned instead of shares: the epoch's deposits were returned as a whole (`EpochRecord::deposits_refunded`). 0 when `shares` is not."
],
"type": "u64"
},
{
"name": "delivered",
"docs": [
"What was due reached the owner; otherwise it is parked on the request."
],
"type": "bool"
}
]
}
},
{
"name": "DepositRequest",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "parked",
"docs": [
"Set by a claim that could not deliver: the owner's share account (or, for a return, USDC account) could not receive. The epoch's record is released; `shares_due` or `usdc_due` waits here."
],
"type": "bool"
},
{
"name": "shares_due",
"type": "u64"
},
{
"name": "usdc_due",
"docs": [
"USDC a parked return returns, held in the deposit queue."
],
"type": "u64"
},
{
"name": "claim_fee",
"docs": [
"The `CLAIM_FEE` prepaid at creation (`params.claim_fee_lamports` then)."
],
"type": "u64"
}
]
}
},
{
"name": "DepositRequested",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "Entry",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "vrf_payer_bump",
"type": "u8"
},
{
"name": "status",
"type": {
"defined": {
"name": "EntryStatus"
}
}
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "nonce",
"type": "u64"
},
{
"name": "payer",
"docs": [
"Paid the rent and the SOL; receives every return and the rent at close."
],
"type": "pubkey"
},
{
"name": "recipient",
"docs": [
"Stored at open, immutable: the only account a reward can go to."
],
"type": "pubkey"
},
{
"name": "cost",
"type": "u64"
},
{
"name": "vault_credit",
"type": "u64"
},
{
"name": "max_reward",
"type": "u64"
},
{
"name": "reserved_liability",
"type": "u64"
},
{
"name": "cap",
"docs": [
"The per-entry cap that applied at open."
],
"type": "u64"
},
{
"name": "margin_bps",
"type": "u64"
},
{
"name": "app_share_bps",
"type": "u64"
},
{
"name": "vault_margin_bps",
"type": "u64"
},
{
"name": "drawdown_bps",
"docs": [
"The drawdown threshold at open: settlement records a trip against it without reading live parameters."
],
"type": "u64"
},
{
"name": "open_slot",
"type": "u64"
},
{
"name": "open_ts",
"type": "i64"
},
{
"name": "expiry_slot",
"docs": [
"`open_slot + T_SETTLE`, fixed at open: after it an unfulfilled entry can be expired."
],
"type": "u64"
},
{
"name": "side",
"docs": [
"Which epoch counter the entry joined, and in which generation."
],
"type": "u8"
},
{
"name": "generation",
"type": "u32"
},
{
"name": "crank_request_lamports",
"docs": [
"Lamports of crank fee still held for the requester and the settler."
],
"type": "u64"
},
{
"name": "crank_settle_lamports",
"type": "u64"
},
{
"name": "randomness",
"docs": [
"The ORAO request account, bound by `request_randomness`."
],
"type": "pubkey"
},
{
"name": "entropy_slot",
"docs": [
"`s*`, `h*` and the ORAO seed, recorded by `record_entry_entropy` or `request_randomness`; all zero until then."
],
"type": "u64"
},
{
"name": "entropy_hash",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "seed",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "outcome",
"docs": [
"The outcome resolved, or `REFUND_OUTCOME` for a return parked in `reward_escrow`; 0 until either."
],
"type": "u8"
},
{
"name": "parked_amount",
"docs": [
"Set when the reward (or the returned credit) waits in `reward_escrow`."
],
"type": "u64"
},
{
"name": "reward_table_len",
"type": "u8"
},
{
"name": "reward_table",
"type": {
"array": [
{
"defined": {
"name": "RewardLevel"
}
},
32
]
}
},
{
"name": "route",
"docs": [
"`ROUTE_ORAO` (0) or `ROUTE_COMMIT_REVEAL` (1), fixed at open."
],
"type": "u8"
},
{
"name": "funder",
"docs": [
"The funder's key: owner of the fallback destination of a return."
],
"type": "pubkey"
},
{
"name": "refund_to",
"docs": [
"The funder's USDC account at open: where a return goes."
],
"type": "pubkey"
},
{
"name": "protocol_share",
"docs": [
"Commit-reveal only: the shares `Vault.entry_shares_held` holds for the entry until it settles or is returned; 0 on ORAO, which pays them at open."
],
"type": "u64"
},
{
"name": "app_share",
"type": "u64"
},
{
"name": "cr_chain",
"docs": [
"Commit-reveal only: the revealer's chain id, the entry's index in it and its revealer sequence number."
],
"type": "u64"
},
{
"name": "cr_index",
"type": "u64"
},
{
"name": "cr_seq",
"type": "u64"
},
{
"name": "target_slot",
"docs": [
"Commit-reveal only: the target slot and the reveal deadline, fixed at open."
],
"type": "u64"
},
{
"name": "reveal_deadline_slot",
"type": "u64"
},
{
"name": "_cr_reserved",
"docs": [
"Room for a second revealer's chain, index, sequence number and a required mask; zero in version 1."
],
"type": {
"array": [
"u8",
64
]
}
}
]
}
},
{
"name": "EntryEntropyRecorded",
"docs": [
"An Open direct entry's seed and entropy slot, recorded while SlotHashes proved `s*`: its ORAO request address no longer depends on the sysvar."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "seed",
"docs": [
"The ORAO seed; zero on commit-reveal, whose `s*` and `h*` go to the revealer's ring."
],
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "entropy_slot",
"type": "u64"
},
{
"name": "entropy_hash",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "route",
"type": "u8"
}
]
}
},
{
"name": "EntryExpired",
"docs": [
"A direct entry's expiry: lapsed by `expire_entry`, or returned by `refund_expired_entry`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "lapsed",
"docs": [
"The vault credit lapsed to the vault; 0 for a return."
],
"type": "u64"
},
{
"name": "requested",
"docs": [
"The entry's randomness was requested: its bound request was pending or fulfilled with zero."
],
"type": "bool"
},
{
"name": "request_found",
"docs": [
"An ORAO request exists at the entry's seed: bound when `requested`, created through ORAO by someone and never bound otherwise (pending or fulfilled with zero)."
],
"type": "bool"
},
{
"name": "checked",
"docs": [
"The program could look for that request: always for a lapse, never for a return. The alarm reads a keeper's failure only from `checked && !request_found`."
],
"type": "bool"
},
{
"name": "pending",
"docs": [
"The bound request was still pending and `vrf_payer` paid its rent, so ORAO's rent return reaches `vrf_payer` when it fulfils it, after the entry's close, and `sweep_entry_vrf` moves it then. False for a request someone else created and the entry bound: ORAO returns its creator."
],
"type": "bool"
},
{
"name": "refunded",
"docs": [
"The entry was returned, not lapsed: never requested, its seed never recorded, and SlotHashes no longer proving it."
],
"type": "bool"
},
{
"name": "refund",
"docs": [
"The vault credit returned to the recipient (or parked in `reward_escrow`); 0 unless `refunded`."
],
"type": "u64"
},
{
"name": "parked",
"docs": [
"The return waits in `reward_escrow` for `deliver_reward`: the recipient could not receive it. The entry stays, `DeliveryPending` with `outcome` `REFUND_OUTCOME`."
],
"type": "bool"
},
{
"name": "entry_lapsed_withheld",
"docs": [
"`Vault.entry_lapsed_withheld` after this expiry: when it counts as one a withheld randomness may explain (all but `!requested && checked && !request_found`), its ordinal in that count."
],
"type": "u64"
}
]
}
},
{
"name": "EntryOpened",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "nonce",
"type": "u64"
},
{
"name": "recipient",
"type": "pubkey"
},
{
"name": "cost",
"type": "u64"
},
{
"name": "vault_credit",
"type": "u64"
},
{
"name": "max_reward",
"type": "u64"
},
{
"name": "reserved_liability",
"type": "u64"
},
{
"name": "cap",
"type": "u64"
},
{
"name": "margin_bps",
"type": "u64"
},
{
"name": "app_share_bps",
"type": "u64"
},
{
"name": "open_slot",
"type": "u64"
},
{
"name": "route",
"docs": [
"`ROUTE_ORAO` or `ROUTE_COMMIT_REVEAL`."
],
"type": "u8"
},
{
"name": "funder",
"type": "pubkey"
},
{
"name": "refund_to",
"docs": [
"The funder's USDC account: where a return goes."
],
"type": "pubkey"
},
{
"name": "protocol_share",
"docs": [
"Held by the vault until settlement on commit-reveal; paid at open, to the treasury and the share account, on ORAO."
],
"type": "u64"
},
{
"name": "app_share",
"type": "u64"
},
{
"name": "cr_chain",
"docs": [
"Commit-reveal only (0 on ORAO): the chain, the index, the revealer sequence number, the target slot and the reveal deadline."
],
"type": "u64"
},
{
"name": "cr_index",
"type": "u64"
},
{
"name": "cr_seq",
"type": "u64"
},
{
"name": "target_slot",
"type": "u64"
},
{
"name": "reveal_deadline_slot",
"type": "u64"
}
]
}
},
{
"name": "EntryResolved",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "outcome",
"type": "u8"
},
{
"name": "reward",
"type": "u64"
},
{
"name": "pending",
"docs": [
"The reward went to `reward_escrow`: the recipient could not receive it."
],
"type": "bool"
}
]
}
},
{
"name": "EntryRevealRefunded",
"docs": [
"A commit-reveal entry was returned in full (`refund_unrevealed_entry*`): its whole cost to `refund_to`, or into `reward_escrow` for it (`parked`, then delivered by `deliver_reward`). `reason`: 0 deadline, 1 unprovable entropy, 2 halted; `class` the halt class it is returned under (1 withholding, which deadline and unprovable returns are, 2 council, 3 breaker). `ordinal` is the Vault counter of that reason and class after it (`cr_timeouts_deadline`, `cr_timeouts_unprovable`, `cr_refunds_withholding_halt`, `cr_refunds_council_halt`, `cr_refunds_breaker_halt`): the monitor counts them, so a gap is a missing event."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "index",
"type": "u64"
},
{
"name": "seq",
"type": "u64"
},
{
"name": "reason",
"type": "u8"
},
{
"name": "class",
"type": "u8"
},
{
"name": "refund",
"type": "u64"
},
{
"name": "refund_to",
"docs": [
"`Entry.refund_to`, the destination whether delivered now or parked."
],
"type": "pubkey"
},
{
"name": "parked",
"type": "bool"
},
{
"name": "ordinal",
"type": "u64"
}
]
}
},
{
"name": "EntryRevealResolved",
"docs": [
"A commit-reveal entry settled by its reveal (`reveal_and_settle`): its `secret` (link `x_index` of chain `chain_id`), `s*` and `h*` give anyone the outcome; `outcome` is the level resolved, `reward` what it pays, delivered to the recipient or parked in `reward_escrow` (`parked`, then `deliver_reward`). `expected` and `variance` are the entry's moments, what the breaker added to its window with `reward − expected`, so the per-integrator monitor recomputes the window from events alone."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "index",
"type": "u64"
},
{
"name": "seq",
"type": "u64"
},
{
"name": "secret",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "entropy_slot",
"type": "u64"
},
{
"name": "entropy_hash",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "outcome",
"type": "u8"
},
{
"name": "reward",
"type": "u64"
},
{
"name": "expected",
"type": "u64"
},
{
"name": "variance",
"type": "u128"
},
{
"name": "parked",
"type": "bool"
}
]
}
},
{
"name": "EntrySharesClaimed",
"docs": [
"`claim_shares` paid an accrued share ledger out: the protocol's (`integrator` the default key) or one integrator's (its record), to its stored destination."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "destination",
"type": "pubkey"
},
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "EntryStatus",
"type": {
"kind": "enum",
"variants": [
{
"name": "Open"
},
{
"name": "Requested"
},
{
"name": "DeliveryPending"
}
]
}
},
{
"name": "EntryVrfSwept",
"docs": [
"Lamports that reached a closed direct entry's `vrf_payer` (ORAO's rent return for a request fulfilled after the entry expired, or a transfer), swept to the caller."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"docs": [
"The entry's address; the entry no longer exists."
],
"type": "pubkey"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "nonce",
"type": "u64"
},
{
"name": "to",
"type": "pubkey"
},
{
"name": "lamports",
"type": "u64"
}
]
}
},
{
"name": "EpochRecord",
"docs": [
"Written once by the strike; only `pending` changes afterwards."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "close_ts",
"type": "i64"
},
{
"name": "struck_ts",
"type": "i64"
},
{
"name": "total_assets",
"docs": [
"The vault's settled assets and its shares at the strike, before its flows: these fix the price."
],
"type": "u64"
},
{
"name": "total_shares",
"type": "u64"
},
{
"name": "deposits",
"type": "u64"
},
{
"name": "shares_minted",
"type": "u64"
},
{
"name": "withdraw_shares",
"type": "u64"
},
{
"name": "assets_owed",
"type": "u64"
},
{
"name": "assets_paid",
"type": "u64"
},
{
"name": "shares_burnt",
"type": "u64"
},
{
"name": "chain_id",
"docs": [
"The epoch id the withdrawal chain this strike belongs to started at."
],
"type": "u64"
},
{
"name": "r_before",
"type": "u128"
},
{
"name": "v_before",
"type": "u128"
},
{
"name": "r_after",
"type": "u128"
},
{
"name": "v_after",
"type": "u128"
},
{
"name": "pending",
"docs": [
"Requests whose remaining claims still read this record."
],
"type": "u32"
},
{
"name": "requests",
"docs": [
"Requests made in this epoch."
],
"type": "u32"
},
{
"name": "rent_payer",
"docs": [
"Where the rent goes when the record closes: the queue (the strike fund advanced it) or the striker (the fund could not)."
],
"type": "pubkey"
},
{
"name": "deposits_refunded",
"docs": [
"The epoch's deposits stayed in the deposit queue and every deposit claim returns its USDC (`fade_math::shares::mint`); `shares_minted` is 0."
],
"type": "bool"
}
]
}
},
{
"name": "EpochStruck",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "total_assets",
"type": "u64"
},
{
"name": "total_shares",
"type": "u64"
},
{
"name": "deposits",
"type": "u64"
},
{
"name": "shares_minted",
"docs": [
"The depositors' shares, `dead_shares` excluded."
],
"type": "u64"
},
{
"name": "dead_shares",
"docs": [
"`DEAD_SHARES` at the vault's first mint, otherwise 0."
],
"type": "u64"
},
{
"name": "deposits_refunded",
"docs": [
"The deposits stayed in the queue: every deposit claim returns its USDC."
],
"type": "bool"
},
{
"name": "withdraw_shares",
"type": "u64"
},
{
"name": "assets_owed",
"type": "u64"
},
{
"name": "assets_paid",
"type": "u64"
},
{
"name": "shares_burnt",
"type": "u64"
},
{
"name": "reward",
"type": "u64"
}
]
}
},
{
"name": "GuardianChanged",
"docs": [
"`set_guardian` replaced the guardian; `old_guardian` may equal `new_guardian` (the call is idempotent)."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_guardian",
"type": "pubkey"
},
{
"name": "new_guardian",
"type": "pubkey"
}
]
}
},
{
"name": "HaltsAcknowledged",
"docs": [
"The council acknowledged the withholding halts (`acknowledge_halts`): `acknowledged` of them, `unacknowledged_halts` now 0."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "by",
"type": "pubkey"
},
{
"name": "acknowledged",
"type": "u8"
},
{
"name": "withholding_halts",
"type": "u64"
}
]
}
},
{
"name": "HashChain",
"docs": [
"One of a revealer's hash chains, at `[\"chain\", [slot], chain_id_le]`; closed by `close_chain`, its rent to `rent_payer`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "slot",
"type": "u8"
},
{
"name": "status",
"type": {
"defined": {
"name": "ChainStatus"
}
}
},
{
"name": "chain_id",
"type": "u64"
},
{
"name": "publisher",
"type": "pubkey"
},
{
"name": "rent_payer",
"type": "pubkey"
},
{
"name": "length",
"docs": [
"`N`, in `[MIN_CHAIN_LENGTH, MAX_CHAIN_LENGTH]`."
],
"type": "u64"
},
{
"name": "anchor",
"docs": [
"`x_0`."
],
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "published_ts",
"type": "i64"
},
{
"name": "activates_ts",
"type": "i64"
},
{
"name": "first_seq",
"docs": [
"The revealer `seq` of index 1, set at promotion."
],
"type": "u64"
},
{
"name": "next_index",
"docs": [
"Starts at 1."
],
"type": "u64"
},
{
"name": "head_index",
"docs": [
"Starts at 0 and `anchor`."
],
"type": "u64"
},
{
"name": "head_link",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "last_target_slot",
"docs": [
"Monotonicity across opens, copied from the predecessor at promotion."
],
"type": "u64"
},
{
"name": "last_deadline_slot",
"type": "u64"
},
{
"name": "revealed",
"type": "u64"
},
{
"name": "refunded",
"type": "u64"
},
{
"name": "_reserved",
"type": {
"array": [
"u8",
64
]
}
}
]
}
},
{
"name": "Initialized",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "council",
"type": "pubkey"
},
{
"name": "guardian",
"type": "pubkey"
},
{
"name": "protocol_treasury",
"type": "pubkey"
},
{
"name": "max_assets",
"type": "u64"
},
{
"name": "revealer",
"docs": [
"The commit-reveal revealer `initialize` set; the default key for none."
],
"type": "pubkey"
},
{
"name": "deployment_nonce",
"docs": [
"`Config.deployment_nonce`."
],
"type": {
"array": [
"u8",
32
]
}
}
]
}
},
{
"name": "Integrator",
"docs": [
"An integrator's record, keyed on the address that signs its entries. Never closed, so its nonce can never restart."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "authority",
"type": "pubkey"
},
{
"name": "share_account",
"docs": [
"USDC account receiving the app share; changed only by `set_share_account`."
],
"type": "pubkey"
},
{
"name": "reserved_liability",
"type": "u64"
},
{
"name": "open_entries",
"type": "u64"
},
{
"name": "next_nonce",
"type": "u64"
},
{
"name": "volume_total",
"type": "u64"
},
{
"name": "created_at",
"type": "i64"
},
{
"name": "app_shares_accrued",
"docs": [
"App shares of this integrator's settled commit-reveal entries, not yet claimed (`claim_shares`); counted in `Vault.app_shares_owed`. Taken from the reserved tail."
],
"type": "u64"
},
{
"name": "_reserved",
"type": {
"array": [
"u8",
49
]
}
}
]
}
},
{
"name": "IntegratorCreated",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "authority",
"type": "pubkey"
},
{
"name": "share_account",
"type": "pubkey"
}
]
}
},
{
"name": "LiveEpoch",
"docs": [
"One live epoch in `Queue`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "live",
"type": "bool"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "close_ts",
"docs": [
"0 for `next` until it is promoted."
],
"type": "i64"
},
{
"name": "deposits",
"type": "u64"
},
{
"name": "withdraw_shares",
"docs": [
"Queued withdrawal shares, including those rolled from a rationed strike."
],
"type": "u64"
},
{
"name": "deposit_requests",
"type": "u32"
},
{
"name": "withdraw_requests",
"docs": [
"New withdrawal requests of this epoch; rolled ones are counted by the chain."
],
"type": "u32"
},
{
"name": "smallest_deposit",
"docs": [
"The smallest amount a deposit request of this epoch was opened with, 0 while it has none: at most every request's amount, which top-ups only raise. The strike returns the epoch rather than mint a request no share (`fade_math::shares::mint`)."
],
"type": "u64"
}
]
}
},
{
"name": "MaxAssetsChanged",
"docs": [
"`set_max_assets` replaced the deposit cap; `u64::MAX` is no cap, and `old_max_assets` may equal `new_max_assets` (the call is idempotent)."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_max_assets",
"type": "u64"
},
{
"name": "new_max_assets",
"type": "u64"
}
]
}
},
{
"name": "ParamsChanged",
"docs": [
"`set_params` applied a change: `applied` is always true and `effective_at` the transaction's time (the field layout is kept for decoders)."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "applied",
"type": "bool"
},
{
"name": "effective_at",
"type": "i64"
}
]
}
},
{
"name": "PauseFlagsChanged",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "by",
"type": "pubkey"
},
{
"name": "pause_flags",
"type": "u8"
}
]
}
},
{
"name": "ProtocolShareTiersChanged",
"docs": [
"`set_protocol_share_tiers` replaced the protocol share tiers: the tiers before and after, each as the first 41 bytes of `Config._reserved` hold them (byte 0 the count, then four 10-byte slots of a `u64` `min_volume` and a `u16` rate in bps, little-endian; the validity rule and the rate an entry pays are in that field's documentation); the old ones as read, valid or not. A new count of 0 turns them off. An open's resolved share is in its `EntryOpened.protocol_share` amount."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_tiers",
"type": {
"array": [
"u8",
41
]
}
},
{
"name": "new_tiers",
"type": {
"array": [
"u8",
41
]
}
}
]
}
},
{
"name": "Queue",
"docs": [
"The liquidity-provider side. Its lamports above its own rent-exempt minimum are the strike fund."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "current",
"type": {
"defined": {
"name": "LiveEpoch"
}
}
},
{
"name": "next",
"type": {
"defined": {
"name": "LiveEpoch"
}
}
},
{
"name": "next_epoch_id",
"docs": [
"The id the next epoch to be created receives. Starts at 1."
],
"type": "u64"
},
{
"name": "chain_id",
"docs": [
"The epoch id the running withdrawal chain started at, or 0."
],
"type": "u64"
},
{
"name": "chain_r",
"docs": [
"Chain indices of, `INDEX_SCALE` fixed point."
],
"type": "u128"
},
{
"name": "chain_v",
"type": "u128"
},
{
"name": "chain_requests",
"docs": [
"Withdrawal requests of struck epochs still waiting for the chain to end."
],
"type": "u32"
},
{
"name": "_reserved",
"type": {
"array": [
"u8",
112
]
}
}
]
}
},
{
"name": "RandomnessRequested",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "request",
"type": "pubkey"
},
{
"name": "seed",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "entropy_slot",
"type": "u64"
}
]
}
},
{
"name": "RevealerApplied",
"docs": [
"The revealer key changed: `set_revealer`, at once, with a new key or clearing it (`new_revealer` the default key). A queued chain of another key left the queue (`vetoed_chain_id`, else 0): vetoed when its account was given, otherwise dropped with its account still `Queued`, which only `close_chain` then touches. The chain that assigned stopped (`stopped_chain_id`, else 0), its pending indices left to the old key: its status after the stop (`Draining` or `Done`, `None` when nothing stopped) and those pending indices, so that an indexer sees the change's effects without reading the accounts. `vetoes` is `RevealerState.vetoes` after it."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "old_revealer",
"type": "pubkey"
},
{
"name": "new_revealer",
"type": "pubkey"
},
{
"name": "vetoed_chain_id",
"type": "u64"
},
{
"name": "stopped_chain_id",
"type": "u64"
},
{
"name": "stopped_status",
"type": {
"option": {
"defined": {
"name": "ChainStatus"
}
}
}
},
{
"name": "stopped_pending",
"type": "u64"
},
{
"name": "vetoes",
"type": "u64"
}
]
}
},
{
"name": "RevealerEntropyRecorded",
"docs": [
"Cells of the revealer's ring whose `s*` and `h*` an instruction recorded on the side: every commit-reveal open, and `record_entry_entropy` for the cells older than its entry's. `recorded` cells between `from_seq` and `to_seq`, both included."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "from_seq",
"type": "u64"
},
{
"name": "to_seq",
"type": "u64"
},
{
"name": "recorded",
"type": "u64"
}
]
}
},
{
"name": "RevealerHalted",
"docs": [
"A halt: every pending cell from `halt_seq` is return-only (`class` 1 withholding, 2 council, 3 breaker). `by` signed the instruction that halted. A withholding halt also starts the cooldown and counts in `unacknowledged_halts`. `reveal_chain_id` and `active_chain_id` are the revealer's chains at the halt: a withholding or breaker halt marks both `Halted`, a council halt (`halt_chain`) the active one only, and with nothing pending puts no halt in place (`halt_seq` 0). A `halt_chain` under another halt keeps it, and carries its `halt_seq` and `class`."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "halt_seq",
"type": "u64"
},
{
"name": "class",
"type": "u8"
},
{
"name": "by",
"type": "pubkey"
},
{
"name": "withholding_halts",
"type": "u64"
},
{
"name": "unacknowledged_halts",
"type": "u8"
},
{
"name": "cooldown_until_slot",
"type": "u64"
},
{
"name": "reveal_chain_id",
"type": "u64"
},
{
"name": "active_chain_id",
"type": "u64"
}
]
}
},
{
"name": "RevealerState",
"docs": [
"A revealer's state, at `[\"revealer\", [slot]]`, never closed. Version 1 has slot 0 only, created by `initialize`."
],
"serialization": "bytemuck",
"repr": {
"kind": "c"
},
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "slot",
"type": "u8"
},
{
"name": "halt_class",
"docs": [
"`RevealerState::HALT_*` while `halt_seq ≠ 0`."
],
"type": "u8"
},
{
"name": "unacknowledged_halts",
"docs": [
"Withholding halts since the council's last `acknowledge_halts`."
],
"type": "u8"
},
{
"name": "_pad",
"type": {
"array": [
"u8",
3
]
}
},
{
"name": "active_chain_id",
"docs": [
"The chain that assigns new indices; 0 = none."
],
"type": "u64"
},
{
"name": "queued_chain_id",
"docs": [
"One published chain awaiting promotion; 0 = none."
],
"type": "u64"
},
{
"name": "reveal_chain_id",
"docs": [
"The chain whose reveals are allowed: the oldest with pending indices."
],
"type": "u64"
},
{
"name": "next_chain_id",
"docs": [
"The id the next published chain takes; starts at 1, never reused."
],
"type": "u64"
},
{
"name": "next_seq",
"docs": [
"The next sequence number to assign; starts at 1."
],
"type": "u64"
},
{
"name": "head_seq",
"docs": [
"The highest sequence number whose cell is done."
],
"type": "u64"
},
{
"name": "halt_seq",
"docs": [
"0, or the first sequence number of a halt."
],
"type": "u64"
},
{
"name": "pending_liability",
"docs": [
"`Σ liability` of pending cells (public figure)."
],
"type": "u64"
},
{
"name": "last_advance_slot",
"docs": [
"The slot of the last `reveal_and_settle`."
],
"type": "u64"
},
{
"name": "cooldown_until_slot",
"docs": [
"No assignment before this slot."
],
"type": "u64"
},
{
"name": "revealed",
"docs": [
"Public counters."
],
"type": "u64"
},
{
"name": "timeouts_deadline",
"type": "u64"
},
{
"name": "timeouts_unprovable",
"type": "u64"
},
{
"name": "refunds_council_halt",
"type": "u64"
},
{
"name": "refunds_breaker_halt",
"type": "u64"
},
{
"name": "withholding_halts",
"type": "u64"
},
{
"name": "council_halts",
"type": "u64"
},
{
"name": "breaker_halts",
"type": "u64"
},
{
"name": "vetoes",
"type": "u64"
},
{
"name": "ring",
"type": {
"array": [
{
"defined": {
"name": "Cell"
}
},
64
]
}
},
{
"name": "breaker",
"type": {
"array": [
{
"defined": {
"name": "BreakerBucket"
}
},
24
]
}
},
{
"name": "breaker_week",
"type": {
"array": [
{
"defined": {
"name": "WeekBucket"
}
},
7
]
}
},
{
"name": "refunds_withholding_halt",
"docs": [
"Returns of the cells a withholding halt made return-only."
],
"type": "u64"
},
{
"name": "_reserved",
"docs": [
"Room for a later revealer bond; zero in version 1."
],
"type": {
"array": [
"u8",
120
]
}
}
]
}
},
{
"name": "RewardDelivered",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "entry",
"type": "pubkey"
},
{
"name": "recipient",
"type": "pubkey"
},
{
"name": "reward",
"type": "u64"
}
]
}
},
{
"name": "RewardLevel",
"type": {
"kind": "struct",
"fields": [
{
"name": "p",
"docs": [
"Probability in 1e-9."
],
"type": "u64"
},
{
"name": "m",
"docs": [
"The reward as a multiple of the cost, in bps."
],
"type": "u64"
}
]
}
},
{
"name": "RiskParams",
"docs": [
"Governable parameters: Settlement never reads them; everything an entry needs is snapshotted at open."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "exposure_fraction_bps",
"docs": [
"Fraction of a Kelly-style exposure bound an entry's liability may take, in bps."
],
"type": "u64"
},
{
"name": "censorship_bps",
"docs": [
"Flat ceiling on an entry's liability as a fraction of assets, in bps."
],
"type": "u64"
},
{
"name": "integrator_cap_bps",
"docs": [
"One integrator's open liability as a fraction of assets, in bps."
],
"type": "u64"
},
{
"name": "utilisation_breaker_bps",
"docs": [
"Committed fraction of assets above which new entries are refused, in bps."
],
"type": "u64"
},
{
"name": "kappa_bps",
"docs": [
"Reserved liability as a fraction of assets never exceeded, in bps."
],
"type": "u64"
},
{
"name": "drawdown_bps",
"docs": [
"Fall of the share price within 24 hours that stops new entries, in bps."
],
"type": "u64"
},
{
"name": "min_cost",
"type": "u64"
},
{
"name": "max_cost",
"type": "u64"
},
{
"name": "min_vault_margin_bps",
"docs": [
"Smallest share of the entry cost the vault must earn in expectation, in bps."
],
"type": "u64"
},
{
"name": "protocol_share_bps",
"docs": [
"Taken from the entry cost at open, to the treasury, in bps."
],
"type": "u64"
},
{
"name": "max_app_share_bps",
"type": "u64"
},
{
"name": "t_settle_slots",
"docs": [
"Slots from open after which an unfulfilled entry can be expired."
],
"type": "u64"
},
{
"name": "crank_request_lamports",
"docs": [
"Part of the crank fee paid to whoever requests the randomness, lamports."
],
"type": "u64"
},
{
"name": "crank_settle_lamports",
"docs": [
"Part of the crank fee paid to whoever settles or expires, lamports."
],
"type": "u64"
},
{
"name": "epoch_length_seconds",
"type": "u64"
},
{
"name": "claim_fee_lamports",
"docs": [
"Held in each request, paid to whoever claims it, lamports."
],
"type": "u64"
},
{
"name": "strike_fee_lamports",
"docs": [
"Paid into the strike fund by a request while the fund is below target, lamports."
],
"type": "u64"
},
{
"name": "strike_reward_lamports",
"docs": [
"Paid from the strike fund to whoever strikes an epoch, lamports."
],
"type": "u64"
},
{
"name": "fund_target_lamports",
"type": "u64"
},
{
"name": "min_deposit",
"docs": [
"Smallest deposit request, USDC base units."
],
"type": "u64"
},
{
"name": "min_withdraw_assets",
"docs": [
"Smallest withdrawal request, in USDC base units, valued at the settled share price when it is made, unless it is the owner's whole balance."
],
"type": "u64"
},
{
"name": "min_first_deposit",
"docs": [
"Smallest deposit while no share exists."
],
"type": "u64"
},
{
"name": "vrf_min_cost",
"docs": [
"Entries costing less take the commit-reveal route while it is open; the others, and all of them while it is closed, take ORAO."
],
"type": "u64"
},
{
"name": "cr_target_delay_slots",
"docs": [
"`k`: a commit-reveal entry's target slot is its open slot plus this."
],
"type": "u64"
},
{
"name": "cr_reveal_deadline_slots",
"docs": [
"A commit-reveal entry's reveal deadline is its open slot plus this."
],
"type": "u64"
},
{
"name": "cr_settle_lamports",
"docs": [
"Lamports a reveal or a return pays its caller, per entry."
],
"type": "u64"
},
{
"name": "chain_activation_seconds",
"docs": [
"Seconds a published hash chain waits before it can assign."
],
"type": "u64"
},
{
"name": "cr_max_unrevealed",
"docs": [
"Pending commit-reveal indices at which opens are refused."
],
"type": "u64"
},
{
"name": "cr_max_reveal_lag_slots",
"docs": [
"Age of the oldest pending target, in slots, past which opens are refused."
],
"type": "u64"
},
{
"name": "cr_halt_cooldown_slots",
"docs": [
"Slots a withholding halt blocks assignment for."
],
"type": "u64"
},
{
"name": "cr_max_halts",
"docs": [
"Unacknowledged withholding halts that close the route; 0 = never."
],
"type": "u64"
},
{
"name": "cr_breaker_k_tenths",
"docs": [
"The breaker's significance `K`, in tenths."
],
"type": "u64"
},
{
"name": "cr_breaker_floor_bps",
"docs": [
"`F`: the breaker's material floor, in bps of assets."
],
"type": "u64"
},
{
"name": "cr_breaker_ceiling_bps",
"docs": [
"`C`: the breaker's ceiling per 24-bucket window, in bps of assets; 0 = off."
],
"type": "u64"
},
{
"name": "cr_breaker_week_bps",
"docs": [
"`G`: the breaker's 7-day ceiling, in bps of assets; 0 = off."
],
"type": "u64"
},
{
"name": "cr_max_multiplier_bps",
"docs": [
"The highest top multiplier, in bps, of a table the commit-reveal route takes: a table paying more takes ORAO whatever the cost."
],
"type": "u64"
}
]
}
},
{
"name": "ShareAccountChanged",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "integrator",
"type": "pubkey"
},
{
"name": "share_account",
"type": "pubkey"
}
]
}
},
{
"name": "ShareMetadataSet",
"docs": [
"`set_share_metadata` created the share mint's Token Metadata account, or rewrote it (`created` false)."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "created",
"type": "bool"
},
{
"name": "name",
"type": "string"
},
{
"name": "symbol",
"type": "string"
},
{
"name": "uri",
"type": "string"
}
]
}
},
{
"name": "Vault",
"docs": [
"The entry side. Never written by a liquidity-provider instruction except the strike and the request that opens an epoch."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "total_assets",
"docs": [
"Everything the vault owns, tracked internally, never read from a token account."
],
"type": "u64"
},
{
"name": "total_shares",
"docs": [
"Equal to the share mint's supply; only the strike mints and burns."
],
"type": "u64"
},
{
"name": "total_reserved_liability",
"docs": [
"`Σ max_reward − vault_credit` of open entries."
],
"type": "u64"
},
{
"name": "open_vault_credits",
"docs": [
"`Σ vault_credit` of open entries."
],
"type": "u64"
},
{
"name": "open_before_close",
"docs": [
"Open entries opened before the live epoch's close."
],
"type": "u32"
},
{
"name": "open_after_close",
"docs": [
"Open entries opened at or after it, or while no epoch was live."
],
"type": "u32"
},
{
"name": "generation",
"type": "u32"
},
{
"name": "close_ts",
"docs": [
"The live epoch's close, or 0."
],
"type": "i64"
},
{
"name": "price_maxima",
"docs": [
"Highest share price of each of the last 24 hours."
],
"type": {
"array": [
"u128",
24
]
}
},
{
"name": "price_head_hour",
"type": "i64"
},
{
"name": "drawdown_trip_ts",
"docs": [
"Last time the drawdown condition was seen holding."
],
"type": "i64"
},
{
"name": "volume_total",
"docs": [
"Cumulative entry cost ever opened."
],
"type": "u64"
},
{
"name": "integrators",
"type": "u64"
},
{
"name": "after_close_gain",
"docs": [
"Results of entries opened after the live close that have already closed: what the vault gained (`vault_credit − reward`) and lost on them. A strike leaves them out of its price; they are the next epoch's."
],
"type": "u64"
},
{
"name": "after_close_loss",
"type": "u64"
},
{
"name": "entry_lapsed_withheld",
"docs": [
"The expiries a withheld randomness may explain (`EntryExpired`'s `requested || request_found || !checked`, every return included): a durable count, so that an alarm never has to infer a withheld randomness from transaction history it could not read."
],
"type": "u64"
},
{
"name": "entry_shares_held",
"docs": [
"Protocol and app shares of open commit-reveal entries, held in `vault_usdc` outside `total_assets` until they settle (then accrued) or are returned (then returned with the cost)."
],
"type": "u64"
},
{
"name": "protocol_shares_accrued",
"docs": [
"The protocol's shares of settled commit-reveal entries, for `claim_shares`."
],
"type": "u64"
},
{
"name": "app_shares_owed",
"docs": [
"`Σ Integrator.app_shares_accrued`, for `claim_shares`. Vault identity: `vault_usdc ≥ total_assets + entry_shares_held + protocol_shares_accrued + app_shares_owed`."
],
"type": "u64"
},
{
"name": "cr_closed_slot",
"docs": [
"0 while the commit-reveal route is open, else the slot it closed at."
],
"type": "u64"
},
{
"name": "cr_closed_by",
"docs": [
"Who closed it: `CR_OPEN` (0), `CR_CLOSED_BY_BREAKER` (1), `CR_CLOSED_BY_GOVERNANCE` (2), `CR_CLOSED_REVEALER_CLEARED` (3), `CR_CLOSED_BY_WITHHOLDING` (4). Set by the first closure only."
],
"type": "u8"
},
{
"name": "_reserved_reopen",
"docs": [
"8 bytes at offset 535. Never read or written by the program. Zero in an account this build initialises. The devnet deployment's account may hold non-zero bytes here, written by its `initialize` or by a change queued before its upgrade to this build. Clients must not read them. A later field taken from these bytes must first zero them on any deployment initialised before this build (devnet), as every earlier field taken from a reserved tail assumed zero."
],
"type": {
"array": [
"u8",
8
]
}
},
{
"name": "cr_breaker_trips",
"docs": [
"Ordinal of breaker trips, ever."
],
"type": "u64"
},
{
"name": "cr_timeouts_deadline",
"docs": [
"Return ordinals, one per reason and halt class: each `EntryRevealRefunded` carries the one it counts in."
],
"type": "u64"
},
{
"name": "cr_timeouts_unprovable",
"type": "u64"
},
{
"name": "cr_refunds_council_halt",
"type": "u64"
},
{
"name": "cr_refunds_breaker_halt",
"type": "u64"
},
{
"name": "cr_refunds_withholding_halt",
"docs": [
"Returns of the cells a withholding halt made return-only."
],
"type": "u64"
},
{
"name": "_reserved",
"type": {
"array": [
"u8",
32
]
}
}
]
}
},
{
"name": "WeekBucket",
"docs": [
"One super-bucket of the breaker's 7-day ring (32 bytes)."
],
"serialization": "bytemuck",
"repr": {
"kind": "c"
},
"type": {
"kind": "struct",
"fields": [
{
"name": "id",
"type": "u64"
},
{
"name": "_pad",
"type": "u64"
},
{
"name": "excess",
"docs": [
"`i128`, little-endian: `Σ (reward − expected)`."
],
"type": {
"array": [
"u8",
16
]
}
}
]
}
},
{
"name": "WithdrawClaimed",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "at_epoch_id",
"docs": [
"The record the claim read the chain at."
],
"type": "u64"
},
{
"name": "assets",
"type": "u64"
},
{
"name": "closed",
"docs": [
"The request is fully served and closed."
],
"type": "bool"
},
{
"name": "delivered",
"docs": [
"What was owed reached the owner; otherwise it is parked on the request."
],
"type": "bool"
}
]
}
},
{
"name": "WithdrawRequest",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "shares",
"type": "u64"
},
{
"name": "r_start",
"docs": [
"Chain indices at the request's start, copied from the start record by the first claim; 0 before."
],
"type": "u128"
},
{
"name": "v_start",
"type": "u128"
},
{
"name": "paid",
"docs": [
"Assets already paid by earlier partial claims."
],
"type": "u64"
},
{
"name": "chain_id",
"docs": [
"The chain the request entered, copied with the indices; every later claim must read a record of this chain. A split carries the request into the next chain: its remaining `shares` at indices `START`."
],
"type": "u64"
},
{
"name": "undelivered",
"docs": [
"Assets owed but not delivered: the owner's USDC account could not receive when a claim ran. Delivered by the next claim that can."
],
"type": "u64"
},
{
"name": "parked",
"docs": [
"Set by the final claim when it could not deliver: every record is released and only `undelivered` remains to hand over."
],
"type": "bool"
},
{
"name": "claim_fee",
"docs": [
"The `CLAIM_FEE` prepaid at creation (as `DepositRequest.claim_fee`)."
],
"type": "u64"
}
]
}
},
{
"name": "WithdrawRequested",
"type": {
"kind": "struct",
"fields": [
{
"name": "version",
"type": "u8"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "epoch_id",
"type": "u64"
},
{
"name": "shares",
"type": "u64"
}
]
}
}
],
"constants": [
{
"name": "CONFIG_SEED",
"type": "bytes",
"value": "[99, 111, 110, 102, 105, 103]"
},
{
"name": "CR_BREAKER_BUCKETS",
"docs": [
"The breaker's window: buckets and their length in slots."
],
"type": "u64",
"value": "24"
},
{
"name": "CR_BREAKER_BUCKET_SLOTS",
"type": "u64",
"value": "9000"
},
{
"name": "CR_BREAKER_WEEK_BUCKETS",
"docs": [
"The breaker's 7-day ring: super-buckets and their length in slots."
],
"type": "u64",
"value": "7"
},
{
"name": "CR_BREAKER_WEEK_BUCKET_SLOTS",
"type": "u64",
"value": "216000"
},
{
"name": "CR_CHAIN_TAG",
"type": "bytes",
"value": "[70, 65, 68, 69, 47, 67, 82, 45, 67, 72, 65, 73, 78, 47, 118, 49]"
},
{
"name": "CR_COST_CEILING",
"docs": [
"The highest `vrf_min_cost`: 1,000 USDC."
],
"type": "u64",
"value": "1000000000"
},
{
"name": "CR_OUTCOME_TAG",
"type": "bytes",
"value": "[70, 65, 68, 69, 47, 67, 82, 45, 79, 85, 84, 67, 79, 77, 69, 47, 118, 49]"
},
{
"name": "CR_RING",
"docs": [
"Cells of `RevealerState.ring`."
],
"type": "u64",
"value": "64"
},
{
"name": "DEAD_SHARES_SEED",
"docs": [
"The share account that holds `fade_math::shares::DEAD_SHARES` for good. Its authority is the `Vault` PDA, for which the program never signs: no instruction can move them, so the supply never returns to zero."
],
"type": "bytes",
"value": "[100, 101, 97, 100, 45, 115, 104, 97, 114, 101, 115]"
},
{
"name": "DEPLOYMENT_TAG",
"docs": [
"Domain tags of the commit-reveal route, equal to `fade_math::preimages`' (a test pins them): the deployment nonce, a hash chain's link step and a commit-reveal outcome."
],
"type": "bytes",
"value": "[70, 65, 68, 69, 47, 68, 69, 80, 76, 79, 89, 77, 69, 78, 84, 47, 118, 49]"
},
{
"name": "DEPOSIT_QUEUE_SEED",
"docs": [
"Deposits queued for a strike; not part of the vault's assets yet."
],
"type": "bytes",
"value": "[100, 101, 112, 111, 115, 105, 116, 45, 113, 117, 101, 117, 101]"
},
{
"name": "DEPOSIT_SEED",
"docs": [
"`[\"deposit\", epoch_id, owner]`."
],
"type": "bytes",
"value": "[100, 101, 112, 111, 115, 105, 116]"
},
{
"name": "ENTRY_SEED",
"docs": [
"`[\"entry\", integrator, nonce]`."
],
"type": "bytes",
"value": "[101, 110, 116, 114, 121]"
},
{
"name": "EPOCH_SEED",
"docs": [
"`[\"epoch\", epoch_id]`."
],
"type": "bytes",
"value": "[101, 112, 111, 99, 104]"
},
{
"name": "HASH_CHAIN_SEED",
"docs": [
"`[\"chain\", [slot], chain_id_le]`: one of a revealer's hash chains. Named apart from `Queue.chain_id`, the liquidity providers' epoch chain."
],
"type": "bytes",
"value": "[99, 104, 97, 105, 110]"
},
{
"name": "INTEGRATOR_AUTHORITY_SEED",
"docs": [
"The seed a program integrator derives its signing PDA with, under its own program id: `[\"fade-integrator\"]`. Only that program can sign for it."
],
"type": "bytes",
"value": "[102, 97, 100, 101, 45, 105, 110, 116, 101, 103, 114, 97, 116, 111, 114]"
},
{
"name": "INTEGRATOR_SEED",
"docs": [
"`[\"integrator\", authority]`: keyed on the address that signs `open_entry`."
],
"type": "bytes",
"value": "[105, 110, 116, 101, 103, 114, 97, 116, 111, 114]"
},
{
"name": "MAX_CHAIN_LENGTH",
"type": "u64",
"value": "262144"
},
{
"name": "MAX_REVEAL_CHUNK",
"docs": [
"Indices one `reveal_and_settle` may expose."
],
"type": "u64",
"value": "16"
},
{
"name": "MIN_CHAIN_LENGTH",
"docs": [
"Bounds on a hash chain's length."
],
"type": "u64",
"value": "1024"
},
{
"name": "PAYABLE_SEED",
"docs": [
"Assets struck withdrawals are owed, not yet claimed."
],
"type": "bytes",
"value": "[112, 97, 121, 97, 98, 108, 101]"
},
{
"name": "QUEUE_SEED",
"docs": [
"The liquidity-provider side's state; its lamports above rent are the strike fund."
],
"type": "bytes",
"value": "[113, 117, 101, 117, 101]"
},
{
"name": "REFUND_OUTCOME",
"docs": [
"`Entry.outcome` of a return parked in `reward_escrow`: no reward table holds this index (32 levels at most), so a `DeliveryPending` entry carrying it is a returned credit waiting for `deliver_reward`, never a settlement. `u8::MAX`, written out so that the IDL and the generated clients carry the value."
],
"type": "u8",
"value": "255"
},
{
"name": "REVEALER_SEED",
"docs": [
"`[\"revealer\", [slot]]`: a revealer's state on the commit-reveal route. Version 1 has slot 0 only, created by `initialize`."
],
"type": "bytes",
"value": "[114, 101, 118, 101, 97, 108, 101, 114]"
},
{
"name": "REWARD_ESCROW_SEED",
"docs": [
"Rewards to a recipient that could not receive them at settlement."
],
"type": "bytes",
"value": "[114, 101, 119, 97, 114, 100, 45, 101, 115, 99, 114, 111, 119]"
},
{
"name": "ROUTE_COMMIT_REVEAL",
"docs": [
"`Entry.route` of an entry resolved by commit-reveal."
],
"type": "u8",
"value": "1"
},
{
"name": "ROUTE_ORAO",
"docs": [
"`Entry.route` of an entry resolved by ORAO."
],
"type": "u8",
"value": "0"
},
{
"name": "SHARE_CLAIMS_SEED",
"type": "bytes",
"value": "[115, 104, 97, 114, 101, 45, 99, 108, 97, 105, 109, 115]"
},
{
"name": "SHARE_ESCROW_SEED",
"type": "bytes",
"value": "[115, 104, 97, 114, 101, 45, 101, 115, 99, 114, 111, 119]"
},
{
"name": "SHARE_MINT_SEED",
"type": "bytes",
"value": "[115, 104, 97, 114, 101, 115]"
},
{
"name": "USDC_VAULT_SEED",
"docs": [
"The vault's USDC: backs every open entry."
],
"type": "bytes",
"value": "[117, 115, 100, 99, 45, 118, 97, 117, 108, 116]"
},
{
"name": "VAULT_AUTHORITY_SEED",
"docs": [
"Signs for every token account the vault owns. No data."
],
"type": "bytes",
"value": "[118, 97, 117, 108, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116, 121]"
},
{
"name": "VAULT_SEED",
"docs": [
"The entry side's state."
],
"type": "bytes",
"value": "[118, 97, 117, 108, 116]"
},
{
"name": "VRF_PAYER_SEED",
"docs": [
"`[\"vrf-payer\", entry]`: the system-owned PDA that pays ORAO."
],
"type": "bytes",
"value": "[118, 114, 102, 45, 112, 97, 121, 101, 114]"
},
{
"name": "WITHDRAW_SEED",
"docs": [
"`[\"withdraw\", epoch_id, owner]`."
],
"type": "bytes",
"value": "[119, 105, 116, 104, 100, 114, 97, 119]"
}
]
}