Deploying to gh-pages from @ blockworks-foundation/mango-v4@857dcb397f 🚀
This commit is contained in:
parent
52eaac04e1
commit
403ae34568
|
@ -1 +1 @@
|
|||
{"rustc_fingerprint":14408050292296793830,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/1.69-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
|
||||
{"rustc_fingerprint":17845677691765103378,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/1.69-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
|
|
@ -10,7 +10,8 @@
|
|||
pub payer: Pubkey,
|
||||
pub system_program: Pubkey,
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generated client accounts for <a href="struct.Serum3RegisterMarket.html" title="struct mango_v4::accounts::Serum3RegisterMarket"><code>Serum3RegisterMarket</code></a>.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.group" class="structfield small-section-header"><a href="#structfield.group" class="anchor field">§</a><code>group: Pubkey</code></span><span id="structfield.admin" class="structfield small-section-header"><a href="#structfield.admin" class="anchor field">§</a><code>admin: Pubkey</code></span><span id="structfield.serum_program" class="structfield small-section-header"><a href="#structfield.serum_program" class="anchor field">§</a><code>serum_program: Pubkey</code></span><span id="structfield.serum_market_external" class="structfield small-section-header"><a href="#structfield.serum_market_external" class="anchor field">§</a><code>serum_market_external: Pubkey</code></span><span id="structfield.serum_market" class="structfield small-section-header"><a href="#structfield.serum_market" class="anchor field">§</a><code>serum_market: Pubkey</code></span><span id="structfield.index_reservation" class="structfield small-section-header"><a href="#structfield.index_reservation" class="anchor field">§</a><code>index_reservation: Pubkey</code></span><span id="structfield.quote_bank" class="structfield small-section-header"><a href="#structfield.quote_bank" class="anchor field">§</a><code>quote_bank: Pubkey</code></span><span id="structfield.base_bank" class="structfield small-section-header"><a href="#structfield.base_bank" class="anchor field">§</a><code>base_bank: Pubkey</code></span><span id="structfield.payer" class="structfield small-section-header"><a href="#structfield.payer" class="anchor field">§</a><code>payer: Pubkey</code></span><span id="structfield.system_program" class="structfield small-section-header"><a href="#structfield.system_program" class="anchor field">§</a><code>system_program: Pubkey</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-BorshSerialize-for-Serum3RegisterMarket" class="impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#impl-BorshSerialize-for-Serum3RegisterMarket" class="anchor">§</a><h3 class="code-header">impl BorshSerialize for <a class="struct" href="struct.Serum3RegisterMarket.html" title="struct mango_v4::accounts::Serum3RegisterMarket">Serum3RegisterMarket</a><span class="where fmt-newline">where
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.group" class="structfield small-section-header"><a href="#structfield.group" class="anchor field">§</a><code>group: Pubkey</code></span><span id="structfield.admin" class="structfield small-section-header"><a href="#structfield.admin" class="anchor field">§</a><code>admin: Pubkey</code></span><div class="docblock"><p>group admin or fast listing admin, checked at #1</p>
|
||||
</div><span id="structfield.serum_program" class="structfield small-section-header"><a href="#structfield.serum_program" class="anchor field">§</a><code>serum_program: Pubkey</code></span><span id="structfield.serum_market_external" class="structfield small-section-header"><a href="#structfield.serum_market_external" class="anchor field">§</a><code>serum_market_external: Pubkey</code></span><span id="structfield.serum_market" class="structfield small-section-header"><a href="#structfield.serum_market" class="anchor field">§</a><code>serum_market: Pubkey</code></span><span id="structfield.index_reservation" class="structfield small-section-header"><a href="#structfield.index_reservation" class="anchor field">§</a><code>index_reservation: Pubkey</code></span><span id="structfield.quote_bank" class="structfield small-section-header"><a href="#structfield.quote_bank" class="anchor field">§</a><code>quote_bank: Pubkey</code></span><span id="structfield.base_bank" class="structfield small-section-header"><a href="#structfield.base_bank" class="anchor field">§</a><code>base_bank: Pubkey</code></span><span id="structfield.payer" class="structfield small-section-header"><a href="#structfield.payer" class="anchor field">§</a><code>payer: Pubkey</code></span><span id="structfield.system_program" class="structfield small-section-header"><a href="#structfield.system_program" class="anchor field">§</a><code>system_program: Pubkey</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-BorshSerialize-for-Serum3RegisterMarket" class="impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#impl-BorshSerialize-for-Serum3RegisterMarket" class="anchor">§</a><h3 class="code-header">impl BorshSerialize for <a class="struct" href="struct.Serum3RegisterMarket.html" title="struct mango_v4::accounts::Serum3RegisterMarket">Serum3RegisterMarket</a><span class="where fmt-newline">where
|
||||
Pubkey: BorshSerialize,</span></h3></section></summary><div class="impl-items"><section id="method.serialize" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a class="fn">serialize</a><W: <a class="trait" href="https://doc.rust-lang.org/1.69.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>>(&self, writer: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.reference.html">&mut W</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.69.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.try_to_vec" class="method trait-impl"><a href="#method.try_to_vec" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_to_vec</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u8.html">u8</a>, <a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <a class="struct" href="https://doc.rust-lang.org/1.69.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></h4></section></summary><div class='docblock'>Serialize this instance into a vector of bytes.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToAccountMetas-for-Serum3RegisterMarket" class="impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#impl-ToAccountMetas-for-Serum3RegisterMarket" class="anchor">§</a><h3 class="code-header">impl ToAccountMetas for <a class="struct" href="struct.Serum3RegisterMarket.html" title="struct mango_v4::accounts::Serum3RegisterMarket">Serum3RegisterMarket</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_account_metas" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#method.to_account_metas" class="anchor">§</a><h4 class="code-header">fn <a class="fn">to_account_metas</a>(&self, is_signer: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><AccountMeta> <a href="#" class="tooltip" data-notable-ty="Vec<AccountMeta>">ⓘ</a></h4></section></summary><div class='docblock'><code>is_signer</code> is given as an optional override for the signer meta field.
|
||||
This covers the edge case when a program-derived-address needs to relay
|
||||
a transaction from a client to another program but sign the transaction
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
pub base_bank: AccountLoader<'info, <a class="struct" href="../state/struct.Bank.html" title="struct mango_v4::state::Bank">Bank</a>>,
|
||||
pub payer: Signer<'info>,
|
||||
pub system_program: Program<'info, System>,
|
||||
}</code></pre><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.group" class="structfield small-section-header"><a href="#structfield.group" class="anchor field">§</a><code>group: AccountLoader<'info, <a class="struct" href="../state/struct.Group.html" title="struct mango_v4::state::Group">Group</a>></code></span><span id="structfield.admin" class="structfield small-section-header"><a href="#structfield.admin" class="anchor field">§</a><code>admin: Signer<'info></code></span><span id="structfield.serum_program" class="structfield small-section-header"><a href="#structfield.serum_program" class="anchor field">§</a><code>serum_program: UncheckedAccount<'info></code></span><div class="docblock"><p>CHECK: Can register a market for any serum program</p>
|
||||
}</code></pre><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.group" class="structfield small-section-header"><a href="#structfield.group" class="anchor field">§</a><code>group: AccountLoader<'info, <a class="struct" href="../state/struct.Group.html" title="struct mango_v4::state::Group">Group</a>></code></span><span id="structfield.admin" class="structfield small-section-header"><a href="#structfield.admin" class="anchor field">§</a><code>admin: Signer<'info></code></span><div class="docblock"><p>group admin or fast listing admin, checked at #1</p>
|
||||
</div><span id="structfield.serum_program" class="structfield small-section-header"><a href="#structfield.serum_program" class="anchor field">§</a><code>serum_program: UncheckedAccount<'info></code></span><div class="docblock"><p>CHECK: Can register a market for any serum program</p>
|
||||
</div><span id="structfield.serum_market_external" class="structfield small-section-header"><a href="#structfield.serum_market_external" class="anchor field">§</a><code>serum_market_external: UncheckedAccount<'info></code></span><div class="docblock"><p>CHECK: Can register any serum market</p>
|
||||
</div><span id="structfield.serum_market" class="structfield small-section-header"><a href="#structfield.serum_market" class="anchor field">§</a><code>serum_market: AccountLoader<'info, <a class="struct" href="../state/struct.Serum3Market.html" title="struct mango_v4::state::Serum3Market">Serum3Market</a>></code></span><span id="structfield.index_reservation" class="structfield small-section-header"><a href="#structfield.index_reservation" class="anchor field">§</a><code>index_reservation: AccountLoader<'info, <a class="struct" href="../state/struct.Serum3MarketIndexReservation.html" title="struct mango_v4::state::Serum3MarketIndexReservation">Serum3MarketIndexReservation</a>></code></span><span id="structfield.quote_bank" class="structfield small-section-header"><a href="#structfield.quote_bank" class="anchor field">§</a><code>quote_bank: AccountLoader<'info, <a class="struct" href="../state/struct.Bank.html" title="struct mango_v4::state::Bank">Bank</a>></code></span><span id="structfield.base_bank" class="structfield small-section-header"><a href="#structfield.base_bank" class="anchor field">§</a><code>base_bank: AccountLoader<'info, <a class="struct" href="../state/struct.Bank.html" title="struct mango_v4::state::Bank">Bank</a>></code></span><span id="structfield.payer" class="structfield small-section-header"><a href="#structfield.payer" class="anchor field">§</a><code>payer: Signer<'info></code></span><span id="structfield.system_program" class="structfield small-section-header"><a href="#structfield.system_program" class="anchor field">§</a><code>system_program: Program<'info, System></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Accounts%3C'info%3E-for-Serum3RegisterMarket%3C'info%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#impl-Accounts%3C'info%3E-for-Serum3RegisterMarket%3C'info%3E" class="anchor">§</a><h3 class="code-header">impl<'info> Accounts<'info> for <a class="struct" href="struct.Serum3RegisterMarket.html" title="struct mango_v4::accounts_ix::Serum3RegisterMarket">Serum3RegisterMarket</a><'info><span class="where fmt-newline">where
|
||||
'info: 'info,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_accounts" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/accounts_ix/serum3_register_market.rs.html#5">source</a><a href="#method.try_accounts" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_accounts</a>(
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -58,12 +58,12 @@
|
|||
</span><span class="kw">pub struct </span>Serum3RegisterMarket<<span class="lifetime">'info</span>> {
|
||||
<span class="attr">#[account(
|
||||
<span class="kw-2">mut</span>,
|
||||
has_one = admin,
|
||||
constraint = group.load()<span class="question-mark">?</span>.is_ix_enabled(IxGate::Serum3RegisterMarket) @ MangoError::IxIsDisabled,
|
||||
constraint = group.load()<span class="question-mark">?</span>.serum3_supported()
|
||||
)]
|
||||
</span><span class="kw">pub </span>group: AccountLoader<<span class="lifetime">'info</span>, Group>,
|
||||
<span class="kw">pub </span>admin: Signer<<span class="lifetime">'info</span>>,
|
||||
<span class="doccomment">/// group admin or fast listing admin, checked at #1
|
||||
</span><span class="kw">pub </span>admin: Signer<<span class="lifetime">'info</span>>,
|
||||
|
||||
<span class="doccomment">/// CHECK: Can register a market for any serum program
|
||||
</span><span class="kw">pub </span>serum_program: UncheckedAccount<<span class="lifetime">'info</span>>,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue