@solana/web3.js 0.98.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -55
- package/lib/index.browser.esm.js +48 -24
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +101 -56
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +88 -64
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +42 -25
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +27 -45
- package/src/message.ts +9 -12
- package/src/transaction.ts +2 -2
- package/src/util/guarded-array-utils.ts +37 -0
- package/src/validator-info.ts +5 -4
- package/bin/bpf-sdk-install.sh +0 -38
- package/bin/localnet.sh +0 -161
- package/bpf-sdk/LICENSE +0 -13
- package/bpf-sdk/c/README.md +0 -44
- package/bpf-sdk/c/bpf.ld +0 -20
- package/bpf-sdk/c/bpf.mk +0 -249
- package/bpf-sdk/c/inc/deserialize_deprecated.h +0 -115
- package/bpf-sdk/c/inc/solana_sdk.h +0 -669
- package/bpf-sdk/c/inc/stdio.h +0 -4
- package/bpf-sdk/c/inc/stdlib.h +0 -2
- package/bpf-sdk/c/inc/string.h +0 -7
- package/bpf-sdk/c/inc/sys/param.h +0 -1
- package/bpf-sdk/c/inc/wchar.h +0 -1
- package/bpf-sdk/env.sh +0 -39
- package/bpf-sdk/rust/bpf.ld +0 -20
- package/bpf-sdk/rust/build.sh +0 -21
- package/bpf-sdk/rust/clean.sh +0 -17
- package/bpf-sdk/rust/xargo-build.sh +0 -29
- package/bpf-sdk/scripts/dump.sh +0 -45
- package/bpf-sdk/scripts/install.sh +0 -178
- package/bpf-sdk/scripts/objcopy.sh +0 -6
- package/bpf-sdk/scripts/package.sh +0 -19
- package/bpf-sdk/scripts/strip.sh +0 -23
- package/bpf-sdk/version.txt +0 -2
- package/doc/assets/css/main.css +0 -2660
- package/doc/assets/images/icons.png +0 -0
- package/doc/assets/images/icons@2x.png +0 -0
- package/doc/assets/images/widgets.png +0 -0
- package/doc/assets/images/widgets@2x.png +0 -0
- package/doc/assets/js/main.js +0 -248
- package/doc/assets/js/search.js +0 -1
- package/doc/classes/account.html +0 -244
- package/doc/classes/authorized.html +0 -234
- package/doc/classes/bpfloader.html +0 -267
- package/doc/classes/connection.html +0 -2354
- package/doc/classes/loader.html +0 -275
- package/doc/classes/lockup.html +0 -250
- package/doc/classes/message.html +0 -326
- package/doc/classes/nonceaccount.html +0 -233
- package/doc/classes/publickey.html +0 -411
- package/doc/classes/secp256k1program.html +0 -308
- package/doc/classes/stakeinstruction.html +0 -403
- package/doc/classes/stakeprogram.html +0 -503
- package/doc/classes/systeminstruction.html +0 -563
- package/doc/classes/systemprogram.html +0 -503
- package/doc/classes/transaction.html +0 -688
- package/doc/classes/transactioninstruction.html +0 -240
- package/doc/classes/validatorinfo.html +0 -279
- package/doc/classes/voteaccount.html +0 -331
- package/doc/index.html +0 -640
- package/doc/interfaces/feecalculator.html +0 -166
- package/doc/modules.html +0 -4682
- package/examples/README.md +0 -10
- package/examples/account.html +0 -24
- package/examples/account.js +0 -10
- package/examples/bpf-c-noop/.gitignore +0 -1
- package/examples/bpf-c-noop/makefile +0 -1
- package/examples/bpf-c-noop/src/noop/noop.c +0 -19
- package/examples/bpf-rust-noop/.gitignore +0 -3
- package/examples/bpf-rust-noop/Cargo.toml +0 -23
- package/examples/bpf-rust-noop/Xargo.toml +0 -2
- package/examples/bpf-rust-noop/src/lib.rs +0 -70
- package/examples/get-balance.html +0 -37
- package/examples/get-balance.js +0 -18
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>StakeProgram | @solana/web3.js</title>
|
|
7
|
-
<meta name="description" content="Documentation for @solana/web3.js">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">@solana/web3.js</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
43
|
-
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="tsd-page-title">
|
|
52
|
-
<div class="container">
|
|
53
|
-
<ul class="tsd-breadcrumb">
|
|
54
|
-
<li>
|
|
55
|
-
<a href="../modules.html">@solana/web3.js</a>
|
|
56
|
-
</li>
|
|
57
|
-
<li>
|
|
58
|
-
<a href="stakeprogram.html">StakeProgram</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class StakeProgram</h1>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</header>
|
|
65
|
-
<div class="container container-main">
|
|
66
|
-
<div class="row">
|
|
67
|
-
<div class="col-8 col-content">
|
|
68
|
-
<section class="tsd-panel tsd-comment">
|
|
69
|
-
<div class="tsd-comment tsd-typography">
|
|
70
|
-
<div class="lead">
|
|
71
|
-
<p>Factory class for transactions to interact with the Stake program</p>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</section>
|
|
75
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
76
|
-
<h3>Hierarchy</h3>
|
|
77
|
-
<ul class="tsd-hierarchy">
|
|
78
|
-
<li>
|
|
79
|
-
<span class="target">StakeProgram</span>
|
|
80
|
-
</li>
|
|
81
|
-
</ul>
|
|
82
|
-
</section>
|
|
83
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
84
|
-
<h2>Index</h2>
|
|
85
|
-
<section class="tsd-panel tsd-index-panel">
|
|
86
|
-
<div class="tsd-index-content">
|
|
87
|
-
<section class="tsd-index-section ">
|
|
88
|
-
<h3>Accessors</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#programid" class="tsd-kind-icon">program<wbr>Id</a></li>
|
|
91
|
-
<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#space" class="tsd-kind-icon">space</a></li>
|
|
92
|
-
</ul>
|
|
93
|
-
</section>
|
|
94
|
-
<section class="tsd-index-section ">
|
|
95
|
-
<h3>Methods</h3>
|
|
96
|
-
<ul class="tsd-index-list">
|
|
97
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#authorize" class="tsd-kind-icon">authorize</a></li>
|
|
98
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#authorizewithseed" class="tsd-kind-icon">authorize<wbr>With<wbr>Seed</a></li>
|
|
99
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#createaccount" class="tsd-kind-icon">create<wbr>Account</a></li>
|
|
100
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#createaccountwithseed" class="tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed</a></li>
|
|
101
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#deactivate" class="tsd-kind-icon">deactivate</a></li>
|
|
102
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#delegate" class="tsd-kind-icon">delegate</a></li>
|
|
103
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#initialize" class="tsd-kind-icon">initialize</a></li>
|
|
104
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#split" class="tsd-kind-icon">split</a></li>
|
|
105
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeprogram.html#withdraw" class="tsd-kind-icon">withdraw</a></li>
|
|
106
|
-
</ul>
|
|
107
|
-
</section>
|
|
108
|
-
</div>
|
|
109
|
-
</section>
|
|
110
|
-
</section>
|
|
111
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
112
|
-
<h2>Accessors</h2>
|
|
113
|
-
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
114
|
-
<a name="programid" class="tsd-anchor"></a>
|
|
115
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> program<wbr>Id</h3>
|
|
116
|
-
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
117
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> programId<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></li>
|
|
118
|
-
</ul>
|
|
119
|
-
<ul class="tsd-descriptions">
|
|
120
|
-
<li class="tsd-description">
|
|
121
|
-
<aside class="tsd-sources">
|
|
122
|
-
<ul>
|
|
123
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L486">stake-program.ts:486</a></li>
|
|
124
|
-
</ul>
|
|
125
|
-
</aside>
|
|
126
|
-
<div class="tsd-comment tsd-typography">
|
|
127
|
-
<div class="lead">
|
|
128
|
-
<p>Public key that identifies the Stake program</p>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
<h4 class="tsd-returns-title">Returns <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></h4>
|
|
132
|
-
</li>
|
|
133
|
-
</ul>
|
|
134
|
-
</section>
|
|
135
|
-
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
136
|
-
<a name="space" class="tsd-anchor"></a>
|
|
137
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> space</h3>
|
|
138
|
-
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
139
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> space<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
|
|
140
|
-
</ul>
|
|
141
|
-
<ul class="tsd-descriptions">
|
|
142
|
-
<li class="tsd-description">
|
|
143
|
-
<aside class="tsd-sources">
|
|
144
|
-
<ul>
|
|
145
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L497">stake-program.ts:497</a></li>
|
|
146
|
-
</ul>
|
|
147
|
-
</aside>
|
|
148
|
-
<div class="tsd-comment tsd-typography">
|
|
149
|
-
<div class="lead">
|
|
150
|
-
<p>Max space of a Stake account</p>
|
|
151
|
-
</div>
|
|
152
|
-
<p>This is generated from the solana-stake-program StakeState struct as
|
|
153
|
-
<code>std::mem::size_of::<StakeState>()</code>:
|
|
154
|
-
<a href="https://docs.rs/solana-stake-program/1.4.4/solana_stake_program/stake_state/enum.StakeState.html">https://docs.rs/solana-stake-program/1.4.4/solana_stake_program/stake_state/enum.StakeState.html</a></p>
|
|
155
|
-
</div>
|
|
156
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
|
157
|
-
</li>
|
|
158
|
-
</ul>
|
|
159
|
-
</section>
|
|
160
|
-
</section>
|
|
161
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
162
|
-
<h2>Methods</h2>
|
|
163
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
164
|
-
<a name="authorize" class="tsd-anchor"></a>
|
|
165
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> authorize</h3>
|
|
166
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
167
|
-
<li class="tsd-signature tsd-kind-icon">authorize<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#authorizestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
168
|
-
</ul>
|
|
169
|
-
<ul class="tsd-descriptions">
|
|
170
|
-
<li class="tsd-description">
|
|
171
|
-
<aside class="tsd-sources">
|
|
172
|
-
<ul>
|
|
173
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L605">stake-program.ts:605</a></li>
|
|
174
|
-
</ul>
|
|
175
|
-
</aside>
|
|
176
|
-
<div class="tsd-comment tsd-typography">
|
|
177
|
-
<div class="lead">
|
|
178
|
-
<p>Generate a Transaction that authorizes a new PublicKey as Staker
|
|
179
|
-
or Withdrawer on the Stake account.</p>
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
183
|
-
<ul class="tsd-parameters">
|
|
184
|
-
<li>
|
|
185
|
-
<h5>params: <a href="../modules.html#authorizestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeStakeParams</a></h5>
|
|
186
|
-
</li>
|
|
187
|
-
</ul>
|
|
188
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
189
|
-
</li>
|
|
190
|
-
</ul>
|
|
191
|
-
</section>
|
|
192
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
193
|
-
<a name="authorizewithseed" class="tsd-anchor"></a>
|
|
194
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> authorize<wbr>With<wbr>Seed</h3>
|
|
195
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
196
|
-
<li class="tsd-signature tsd-kind-icon">authorize<wbr>With<wbr>Seed<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#authorizewithseedstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeWithSeedStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
197
|
-
</ul>
|
|
198
|
-
<ul class="tsd-descriptions">
|
|
199
|
-
<li class="tsd-description">
|
|
200
|
-
<aside class="tsd-sources">
|
|
201
|
-
<ul>
|
|
202
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L639">stake-program.ts:639</a></li>
|
|
203
|
-
</ul>
|
|
204
|
-
</aside>
|
|
205
|
-
<div class="tsd-comment tsd-typography">
|
|
206
|
-
<div class="lead">
|
|
207
|
-
<p>Generate a Transaction that authorizes a new PublicKey as Staker
|
|
208
|
-
or Withdrawer on the Stake account.</p>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
212
|
-
<ul class="tsd-parameters">
|
|
213
|
-
<li>
|
|
214
|
-
<h5>params: <a href="../modules.html#authorizewithseedstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeWithSeedStakeParams</a></h5>
|
|
215
|
-
</li>
|
|
216
|
-
</ul>
|
|
217
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
218
|
-
</li>
|
|
219
|
-
</ul>
|
|
220
|
-
</section>
|
|
221
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
222
|
-
<a name="createaccount" class="tsd-anchor"></a>
|
|
223
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Account</h3>
|
|
224
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
225
|
-
<li class="tsd-signature tsd-kind-icon">create<wbr>Account<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#createstakeaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateStakeAccountParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
226
|
-
</ul>
|
|
227
|
-
<ul class="tsd-descriptions">
|
|
228
|
-
<li class="tsd-description">
|
|
229
|
-
<aside class="tsd-sources">
|
|
230
|
-
<ul>
|
|
231
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L556">stake-program.ts:556</a></li>
|
|
232
|
-
</ul>
|
|
233
|
-
</aside>
|
|
234
|
-
<div class="tsd-comment tsd-typography">
|
|
235
|
-
<div class="lead">
|
|
236
|
-
<p>Generate a Transaction that creates a new Stake account</p>
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
240
|
-
<ul class="tsd-parameters">
|
|
241
|
-
<li>
|
|
242
|
-
<h5>params: <a href="../modules.html#createstakeaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateStakeAccountParams</a></h5>
|
|
243
|
-
</li>
|
|
244
|
-
</ul>
|
|
245
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
246
|
-
</li>
|
|
247
|
-
</ul>
|
|
248
|
-
</section>
|
|
249
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
250
|
-
<a name="createaccountwithseed" class="tsd-anchor"></a>
|
|
251
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Account<wbr>With<wbr>Seed</h3>
|
|
252
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
253
|
-
<li class="tsd-signature tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#createstakeaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateStakeAccountWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
254
|
-
</ul>
|
|
255
|
-
<ul class="tsd-descriptions">
|
|
256
|
-
<li class="tsd-description">
|
|
257
|
-
<aside class="tsd-sources">
|
|
258
|
-
<ul>
|
|
259
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L533">stake-program.ts:533</a></li>
|
|
260
|
-
</ul>
|
|
261
|
-
</aside>
|
|
262
|
-
<div class="tsd-comment tsd-typography">
|
|
263
|
-
<div class="lead">
|
|
264
|
-
<p>Generate a Transaction that creates a new Stake account at
|
|
265
|
-
an address generated with <code>from</code>, a seed, and the Stake programId</p>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
269
|
-
<ul class="tsd-parameters">
|
|
270
|
-
<li>
|
|
271
|
-
<h5>params: <a href="../modules.html#createstakeaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateStakeAccountWithSeedParams</a></h5>
|
|
272
|
-
</li>
|
|
273
|
-
</ul>
|
|
274
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
275
|
-
</li>
|
|
276
|
-
</ul>
|
|
277
|
-
</section>
|
|
278
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
279
|
-
<a name="deactivate" class="tsd-anchor"></a>
|
|
280
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> deactivate</h3>
|
|
281
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
282
|
-
<li class="tsd-signature tsd-kind-icon">deactivate<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#deactivatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DeactivateStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
283
|
-
</ul>
|
|
284
|
-
<ul class="tsd-descriptions">
|
|
285
|
-
<li class="tsd-description">
|
|
286
|
-
<aside class="tsd-sources">
|
|
287
|
-
<ul>
|
|
288
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L741">stake-program.ts:741</a></li>
|
|
289
|
-
</ul>
|
|
290
|
-
</aside>
|
|
291
|
-
<div class="tsd-comment tsd-typography">
|
|
292
|
-
<div class="lead">
|
|
293
|
-
<p>Generate a Transaction that deactivates Stake tokens.</p>
|
|
294
|
-
</div>
|
|
295
|
-
</div>
|
|
296
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
297
|
-
<ul class="tsd-parameters">
|
|
298
|
-
<li>
|
|
299
|
-
<h5>params: <a href="../modules.html#deactivatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DeactivateStakeParams</a></h5>
|
|
300
|
-
</li>
|
|
301
|
-
</ul>
|
|
302
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
303
|
-
</li>
|
|
304
|
-
</ul>
|
|
305
|
-
</section>
|
|
306
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
307
|
-
<a name="delegate" class="tsd-anchor"></a>
|
|
308
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> delegate</h3>
|
|
309
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
310
|
-
<li class="tsd-signature tsd-kind-icon">delegate<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#delegatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DelegateStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
311
|
-
</ul>
|
|
312
|
-
<ul class="tsd-descriptions">
|
|
313
|
-
<li class="tsd-description">
|
|
314
|
-
<aside class="tsd-sources">
|
|
315
|
-
<ul>
|
|
316
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L577">stake-program.ts:577</a></li>
|
|
317
|
-
</ul>
|
|
318
|
-
</aside>
|
|
319
|
-
<div class="tsd-comment tsd-typography">
|
|
320
|
-
<div class="lead">
|
|
321
|
-
<p>Generate a Transaction that delegates Stake tokens to a validator
|
|
322
|
-
Vote PublicKey. This transaction can also be used to redelegate Stake
|
|
323
|
-
to a new validator Vote PublicKey.</p>
|
|
324
|
-
</div>
|
|
325
|
-
</div>
|
|
326
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
327
|
-
<ul class="tsd-parameters">
|
|
328
|
-
<li>
|
|
329
|
-
<h5>params: <a href="../modules.html#delegatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DelegateStakeParams</a></h5>
|
|
330
|
-
</li>
|
|
331
|
-
</ul>
|
|
332
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
333
|
-
</li>
|
|
334
|
-
</ul>
|
|
335
|
-
</section>
|
|
336
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
337
|
-
<a name="initialize" class="tsd-anchor"></a>
|
|
338
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> initialize</h3>
|
|
339
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
340
|
-
<li class="tsd-signature tsd-kind-icon">initialize<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#initializestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
341
|
-
</ul>
|
|
342
|
-
<ul class="tsd-descriptions">
|
|
343
|
-
<li class="tsd-description">
|
|
344
|
-
<aside class="tsd-sources">
|
|
345
|
-
<ul>
|
|
346
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L504">stake-program.ts:504</a></li>
|
|
347
|
-
</ul>
|
|
348
|
-
</aside>
|
|
349
|
-
<div class="tsd-comment tsd-typography">
|
|
350
|
-
<div class="lead">
|
|
351
|
-
<p>Generate an Initialize instruction to add to a Stake Create transaction</p>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
355
|
-
<ul class="tsd-parameters">
|
|
356
|
-
<li>
|
|
357
|
-
<h5>params: <a href="../modules.html#initializestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeStakeParams</a></h5>
|
|
358
|
-
</li>
|
|
359
|
-
</ul>
|
|
360
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
361
|
-
</li>
|
|
362
|
-
</ul>
|
|
363
|
-
</section>
|
|
364
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
365
|
-
<a name="split" class="tsd-anchor"></a>
|
|
366
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> split</h3>
|
|
367
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
368
|
-
<li class="tsd-signature tsd-kind-icon">split<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#splitstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">SplitStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
369
|
-
</ul>
|
|
370
|
-
<ul class="tsd-descriptions">
|
|
371
|
-
<li class="tsd-description">
|
|
372
|
-
<aside class="tsd-sources">
|
|
373
|
-
<ul>
|
|
374
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L676">stake-program.ts:676</a></li>
|
|
375
|
-
</ul>
|
|
376
|
-
</aside>
|
|
377
|
-
<div class="tsd-comment tsd-typography">
|
|
378
|
-
<div class="lead">
|
|
379
|
-
<p>Generate a Transaction that splits Stake tokens into another stake account</p>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
383
|
-
<ul class="tsd-parameters">
|
|
384
|
-
<li>
|
|
385
|
-
<h5>params: <a href="../modules.html#splitstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">SplitStakeParams</a></h5>
|
|
386
|
-
</li>
|
|
387
|
-
</ul>
|
|
388
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
389
|
-
</li>
|
|
390
|
-
</ul>
|
|
391
|
-
</section>
|
|
392
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
393
|
-
<a name="withdraw" class="tsd-anchor"></a>
|
|
394
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> withdraw</h3>
|
|
395
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
396
|
-
<li class="tsd-signature tsd-kind-icon">withdraw<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#withdrawstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawStakeParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
397
|
-
</ul>
|
|
398
|
-
<ul class="tsd-descriptions">
|
|
399
|
-
<li class="tsd-description">
|
|
400
|
-
<aside class="tsd-sources">
|
|
401
|
-
<ul>
|
|
402
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L706">stake-program.ts:706</a></li>
|
|
403
|
-
</ul>
|
|
404
|
-
</aside>
|
|
405
|
-
<div class="tsd-comment tsd-typography">
|
|
406
|
-
<div class="lead">
|
|
407
|
-
<p>Generate a Transaction that withdraws deactivated Stake tokens.</p>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
411
|
-
<ul class="tsd-parameters">
|
|
412
|
-
<li>
|
|
413
|
-
<h5>params: <a href="../modules.html#withdrawstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawStakeParams</a></h5>
|
|
414
|
-
</li>
|
|
415
|
-
</ul>
|
|
416
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
417
|
-
</li>
|
|
418
|
-
</ul>
|
|
419
|
-
</section>
|
|
420
|
-
</section>
|
|
421
|
-
</div>
|
|
422
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
423
|
-
<nav class="tsd-navigation primary">
|
|
424
|
-
<ul>
|
|
425
|
-
<li class=" ">
|
|
426
|
-
<a href="../modules.html">Exports</a>
|
|
427
|
-
</li>
|
|
428
|
-
</ul>
|
|
429
|
-
</nav>
|
|
430
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
431
|
-
<ul class="before-current">
|
|
432
|
-
</ul>
|
|
433
|
-
<ul class="current">
|
|
434
|
-
<li class="current tsd-kind-class">
|
|
435
|
-
<a href="stakeprogram.html" class="tsd-kind-icon">Stake<wbr>Program</a>
|
|
436
|
-
<ul>
|
|
437
|
-
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
438
|
-
<a href="stakeprogram.html#programid" class="tsd-kind-icon">program<wbr>Id</a>
|
|
439
|
-
</li>
|
|
440
|
-
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
441
|
-
<a href="stakeprogram.html#space" class="tsd-kind-icon">space</a>
|
|
442
|
-
</li>
|
|
443
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
444
|
-
<a href="stakeprogram.html#authorize" class="tsd-kind-icon">authorize</a>
|
|
445
|
-
</li>
|
|
446
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
447
|
-
<a href="stakeprogram.html#authorizewithseed" class="tsd-kind-icon">authorize<wbr>With<wbr>Seed</a>
|
|
448
|
-
</li>
|
|
449
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
450
|
-
<a href="stakeprogram.html#createaccount" class="tsd-kind-icon">create<wbr>Account</a>
|
|
451
|
-
</li>
|
|
452
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
453
|
-
<a href="stakeprogram.html#createaccountwithseed" class="tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed</a>
|
|
454
|
-
</li>
|
|
455
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
456
|
-
<a href="stakeprogram.html#deactivate" class="tsd-kind-icon">deactivate</a>
|
|
457
|
-
</li>
|
|
458
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
459
|
-
<a href="stakeprogram.html#delegate" class="tsd-kind-icon">delegate</a>
|
|
460
|
-
</li>
|
|
461
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
462
|
-
<a href="stakeprogram.html#initialize" class="tsd-kind-icon">initialize</a>
|
|
463
|
-
</li>
|
|
464
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
465
|
-
<a href="stakeprogram.html#split" class="tsd-kind-icon">split</a>
|
|
466
|
-
</li>
|
|
467
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
468
|
-
<a href="stakeprogram.html#withdraw" class="tsd-kind-icon">withdraw</a>
|
|
469
|
-
</li>
|
|
470
|
-
</ul>
|
|
471
|
-
</li>
|
|
472
|
-
</ul>
|
|
473
|
-
<ul class="after-current">
|
|
474
|
-
</ul>
|
|
475
|
-
</nav>
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
<footer class="with-border-bottom">
|
|
480
|
-
<div class="container">
|
|
481
|
-
<h2>Legend</h2>
|
|
482
|
-
<div class="tsd-legend-group">
|
|
483
|
-
<ul class="tsd-legend">
|
|
484
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
485
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
486
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
487
|
-
</ul>
|
|
488
|
-
<ul class="tsd-legend">
|
|
489
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
490
|
-
</ul>
|
|
491
|
-
<ul class="tsd-legend">
|
|
492
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
493
|
-
</ul>
|
|
494
|
-
</div>
|
|
495
|
-
</div>
|
|
496
|
-
</footer>
|
|
497
|
-
<div class="container tsd-generator">
|
|
498
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
499
|
-
</div>
|
|
500
|
-
<div class="overlay"></div>
|
|
501
|
-
<script src="../assets/js/main.js"></script>
|
|
502
|
-
</body>
|
|
503
|
-
</html>
|