Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support priority fees using helius #296

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/app/src/common/sunriseClientWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class SunriseClientWrapper {
);
const client = await SunriseStakeClient.get(provider, stage, {
verbose: Boolean(process.env.REACT_APP_VERBOSE),
addPriorityFee: true,
});

return new SunriseClientWrapper(
Expand Down
2 changes: 1 addition & 1 deletion packages/client/doc/assets/search.js

Large diffs are not rendered by default.

150 changes: 92 additions & 58 deletions packages/client/doc/classes/SunriseStakeClient.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><span class="tsd-kind-parameter">config</span>: <span class="tsd-signature-type ">SunriseStakeConfig</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type ">PublicKey</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/util.ts#L153">util.ts:153</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/util.ts#L153">util.ts:153</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion packages/client/doc/functions/getStakePoolAccount.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h5><span class="tsd-kind-parameter">connection</span>: <span class="tsd-signatu
<h5><span class="tsd-kind-parameter">stakePoolAddress</span>: <span class="tsd-signature-type ">PublicKey</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/StakePool.html" class="tsd-signature-type tsd-kind-interface">StakePool</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/decodeStakePool.ts#L90">decodeStakePool.ts:90</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/decodeStakePool.ts#L90">decodeStakePool.ts:90</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion packages/client/doc/functions/toSol.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h5><span class="tsd-kind-parameter">lamports</span>: <span class="tsd-signature
<h5><span class="tsd-kind-parameter">precision</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = MAX_NUM_PRECISION</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/util.ts#L39">util.ts:39</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/util.ts#L39">util.ts:39</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
18 changes: 9 additions & 9 deletions packages/client/doc/interfaces/Balance.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Balance</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L10">types/Details.ts:10</a></li></ul></aside>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L10">types/Details.ts:10</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -43,42 +43,42 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>bsol<wbr/>Balance</span><a href="#bsolBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">bsol<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">TokenAmount</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L17">types/Details.ts:17</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L17">types/Details.ts:17</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="gsolBalance" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>gsol<wbr/>Balance</span><a href="#gsolBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">gsol<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">TokenAmount</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L11">types/Details.ts:11</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L11">types/Details.ts:11</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="gsolSupply" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>gsol<wbr/>Supply</span><a href="#gsolSupply" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">gsol<wbr/>Supply</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">TokenAmount</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L12">types/Details.ts:12</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L12">types/Details.ts:12</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="holdingAccountBalance" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>holding<wbr/>Account<wbr/>Balance</span><a href="#holdingAccountBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">holding<wbr/>Account<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L18">types/Details.ts:18</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L18">types/Details.ts:18</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="liqPoolBalance" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>liq<wbr/>Pool<wbr/>Balance</span><a href="#liqPoolBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">liq<wbr/>Pool<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">TokenAmount</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L15">types/Details.ts:15</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L15">types/Details.ts:15</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="msolBalance" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>msol<wbr/>Balance</span><a href="#msolBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">msol<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">TokenAmount</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L13">types/Details.ts:13</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L13">types/Details.ts:13</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="msolPrice" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>msol<wbr/>Price</span><a href="#msolPrice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">msol<wbr/>Price</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L14">types/Details.ts:14</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L14">types/Details.ts:14</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="treasuryBalance" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>treasury<wbr/>Balance</span><a href="#treasuryBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">treasury<wbr/>Balance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Details.ts#L16">types/Details.ts:16</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Details.ts#L16">types/Details.ts:16</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
18 changes: 9 additions & 9 deletions packages/client/doc/interfaces/BlazeState.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">BlazeState</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L3">types/Solblaze.ts:3</a></li></ul></aside>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L3">types/Solblaze.ts:3</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -43,42 +43,42 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>bsol<wbr/>Mint</span><a href="#bsolMint" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">bsol<wbr/>Mint</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L5">types/Solblaze.ts:5</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L5">types/Solblaze.ts:5</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="depositAuthority" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>deposit<wbr/>Authority</span><a href="#depositAuthority" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">deposit<wbr/>Authority</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L11">types/Solblaze.ts:11</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L11">types/Solblaze.ts:11</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="feesDepot" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>fees<wbr/>Depot</span><a href="#feesDepot" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">fees<wbr/>Depot</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L9">types/Solblaze.ts:9</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L9">types/Solblaze.ts:9</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="managerAccount" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>manager<wbr/>Account</span><a href="#managerAccount" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">manager<wbr/>Account</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L8">types/Solblaze.ts:8</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L8">types/Solblaze.ts:8</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="pool" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>pool</span><a href="#pool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">pool</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L4">types/Solblaze.ts:4</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L4">types/Solblaze.ts:4</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="reserveAccount" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>reserve<wbr/>Account</span><a href="#reserveAccount" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">reserve<wbr/>Account</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L7">types/Solblaze.ts:7</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L7">types/Solblaze.ts:7</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="validatorList" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>validator<wbr/>List</span><a href="#validatorList" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">validator<wbr/>List</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L6">types/Solblaze.ts:6</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L6">types/Solblaze.ts:6</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="withdrawAuthority" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>withdraw<wbr/>Authority</span><a href="#withdrawAuthority" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">withdraw<wbr/>Authority</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">PublicKey</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/ae81f1f/packages/client/src/types/Solblaze.ts#L10">types/Solblaze.ts:10</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/sunrise-stake/app/blob/dfd86a5/packages/client/src/types/Solblaze.ts#L10">types/Solblaze.ts:10</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading