@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,403 +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>StakeInstruction | @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="stakeinstruction.html">StakeInstruction</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class StakeInstruction</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>Stake Instruction class</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">StakeInstruction</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>Methods</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodeauthorize" class="tsd-kind-icon">decode<wbr>Authorize</a></li>
|
|
91
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodeauthorizewithseed" class="tsd-kind-icon">decode<wbr>Authorize<wbr>With<wbr>Seed</a></li>
|
|
92
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodedeactivate" class="tsd-kind-icon">decode<wbr>Deactivate</a></li>
|
|
93
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodedelegate" class="tsd-kind-icon">decode<wbr>Delegate</a></li>
|
|
94
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodeinitialize" class="tsd-kind-icon">decode<wbr>Initialize</a></li>
|
|
95
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodeinstructiontype" class="tsd-kind-icon">decode<wbr>Instruction<wbr>Type</a></li>
|
|
96
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodesplit" class="tsd-kind-icon">decode<wbr>Split</a></li>
|
|
97
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="stakeinstruction.html#decodewithdraw" class="tsd-kind-icon">decode<wbr>Withdraw</a></li>
|
|
98
|
-
</ul>
|
|
99
|
-
</section>
|
|
100
|
-
</div>
|
|
101
|
-
</section>
|
|
102
|
-
</section>
|
|
103
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
104
|
-
<h2>Methods</h2>
|
|
105
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
106
|
-
<a name="decodeauthorize" class="tsd-anchor"></a>
|
|
107
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Authorize</h3>
|
|
108
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
109
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Authorize<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#authorizestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeStakeParams</a></li>
|
|
110
|
-
</ul>
|
|
111
|
-
<ul class="tsd-descriptions">
|
|
112
|
-
<li class="tsd-description">
|
|
113
|
-
<aside class="tsd-sources">
|
|
114
|
-
<ul>
|
|
115
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L246">stake-program.ts:246</a></li>
|
|
116
|
-
</ul>
|
|
117
|
-
</aside>
|
|
118
|
-
<div class="tsd-comment tsd-typography">
|
|
119
|
-
<div class="lead">
|
|
120
|
-
<p>Decode an authorize stake instruction and retrieve the instruction params.</p>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
124
|
-
<ul class="tsd-parameters">
|
|
125
|
-
<li>
|
|
126
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
127
|
-
</li>
|
|
128
|
-
</ul>
|
|
129
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#authorizestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeStakeParams</a></h4>
|
|
130
|
-
</li>
|
|
131
|
-
</ul>
|
|
132
|
-
</section>
|
|
133
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
134
|
-
<a name="decodeauthorizewithseed" class="tsd-anchor"></a>
|
|
135
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Authorize<wbr>With<wbr>Seed</h3>
|
|
136
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
137
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Authorize<wbr>With<wbr>Seed<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#authorizewithseedstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeWithSeedStakeParams</a></li>
|
|
138
|
-
</ul>
|
|
139
|
-
<ul class="tsd-descriptions">
|
|
140
|
-
<li class="tsd-description">
|
|
141
|
-
<aside class="tsd-sources">
|
|
142
|
-
<ul>
|
|
143
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L273">stake-program.ts:273</a></li>
|
|
144
|
-
</ul>
|
|
145
|
-
</aside>
|
|
146
|
-
<div class="tsd-comment tsd-typography">
|
|
147
|
-
<div class="lead">
|
|
148
|
-
<p>Decode an authorize-with-seed stake instruction and retrieve the instruction params.</p>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
152
|
-
<ul class="tsd-parameters">
|
|
153
|
-
<li>
|
|
154
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
155
|
-
</li>
|
|
156
|
-
</ul>
|
|
157
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#authorizewithseedstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeWithSeedStakeParams</a></h4>
|
|
158
|
-
</li>
|
|
159
|
-
</ul>
|
|
160
|
-
</section>
|
|
161
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
162
|
-
<a name="decodedeactivate" class="tsd-anchor"></a>
|
|
163
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Deactivate</h3>
|
|
164
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
165
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Deactivate<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#deactivatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DeactivateStakeParams</a></li>
|
|
166
|
-
</ul>
|
|
167
|
-
<ul class="tsd-descriptions">
|
|
168
|
-
<li class="tsd-description">
|
|
169
|
-
<aside class="tsd-sources">
|
|
170
|
-
<ul>
|
|
171
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L352">stake-program.ts:352</a></li>
|
|
172
|
-
</ul>
|
|
173
|
-
</aside>
|
|
174
|
-
<div class="tsd-comment tsd-typography">
|
|
175
|
-
<div class="lead">
|
|
176
|
-
<p>Decode a deactivate stake instruction and retrieve the instruction params.</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
180
|
-
<ul class="tsd-parameters">
|
|
181
|
-
<li>
|
|
182
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
183
|
-
</li>
|
|
184
|
-
</ul>
|
|
185
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#deactivatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DeactivateStakeParams</a></h4>
|
|
186
|
-
</li>
|
|
187
|
-
</ul>
|
|
188
|
-
</section>
|
|
189
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
190
|
-
<a name="decodedelegate" class="tsd-anchor"></a>
|
|
191
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Delegate</h3>
|
|
192
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
193
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Delegate<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#delegatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DelegateStakeParams</a></li>
|
|
194
|
-
</ul>
|
|
195
|
-
<ul class="tsd-descriptions">
|
|
196
|
-
<li class="tsd-description">
|
|
197
|
-
<aside class="tsd-sources">
|
|
198
|
-
<ul>
|
|
199
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L229">stake-program.ts:229</a></li>
|
|
200
|
-
</ul>
|
|
201
|
-
</aside>
|
|
202
|
-
<div class="tsd-comment tsd-typography">
|
|
203
|
-
<div class="lead">
|
|
204
|
-
<p>Decode a delegate stake instruction and retrieve the instruction params.</p>
|
|
205
|
-
</div>
|
|
206
|
-
</div>
|
|
207
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
208
|
-
<ul class="tsd-parameters">
|
|
209
|
-
<li>
|
|
210
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
211
|
-
</li>
|
|
212
|
-
</ul>
|
|
213
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#delegatestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">DelegateStakeParams</a></h4>
|
|
214
|
-
</li>
|
|
215
|
-
</ul>
|
|
216
|
-
</section>
|
|
217
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
218
|
-
<a name="decodeinitialize" class="tsd-anchor"></a>
|
|
219
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Initialize</h3>
|
|
220
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
221
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Initialize<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#initializestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeStakeParams</a></li>
|
|
222
|
-
</ul>
|
|
223
|
-
<ul class="tsd-descriptions">
|
|
224
|
-
<li class="tsd-description">
|
|
225
|
-
<aside class="tsd-sources">
|
|
226
|
-
<ul>
|
|
227
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L201">stake-program.ts:201</a></li>
|
|
228
|
-
</ul>
|
|
229
|
-
</aside>
|
|
230
|
-
<div class="tsd-comment tsd-typography">
|
|
231
|
-
<div class="lead">
|
|
232
|
-
<p>Decode a initialize stake instruction and retrieve the instruction params.</p>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
236
|
-
<ul class="tsd-parameters">
|
|
237
|
-
<li>
|
|
238
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
239
|
-
</li>
|
|
240
|
-
</ul>
|
|
241
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#initializestakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeStakeParams</a></h4>
|
|
242
|
-
</li>
|
|
243
|
-
</ul>
|
|
244
|
-
</section>
|
|
245
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
246
|
-
<a name="decodeinstructiontype" class="tsd-anchor"></a>
|
|
247
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Instruction<wbr>Type</h3>
|
|
248
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
249
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Instruction<wbr>Type<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#stakeinstructiontype" class="tsd-signature-type" data-tsd-kind="Type alias">StakeInstructionType</a></li>
|
|
250
|
-
</ul>
|
|
251
|
-
<ul class="tsd-descriptions">
|
|
252
|
-
<li class="tsd-description">
|
|
253
|
-
<aside class="tsd-sources">
|
|
254
|
-
<ul>
|
|
255
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L175">stake-program.ts:175</a></li>
|
|
256
|
-
</ul>
|
|
257
|
-
</aside>
|
|
258
|
-
<div class="tsd-comment tsd-typography">
|
|
259
|
-
<div class="lead">
|
|
260
|
-
<p>Decode a stake instruction and retrieve the instruction type.</p>
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
264
|
-
<ul class="tsd-parameters">
|
|
265
|
-
<li>
|
|
266
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
267
|
-
</li>
|
|
268
|
-
</ul>
|
|
269
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#stakeinstructiontype" class="tsd-signature-type" data-tsd-kind="Type alias">StakeInstructionType</a></h4>
|
|
270
|
-
</li>
|
|
271
|
-
</ul>
|
|
272
|
-
</section>
|
|
273
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
274
|
-
<a name="decodesplit" class="tsd-anchor"></a>
|
|
275
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Split</h3>
|
|
276
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
277
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Split<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#splitstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">SplitStakeParams</a></li>
|
|
278
|
-
</ul>
|
|
279
|
-
<ul class="tsd-descriptions">
|
|
280
|
-
<li class="tsd-description">
|
|
281
|
-
<aside class="tsd-sources">
|
|
282
|
-
<ul>
|
|
283
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L308">stake-program.ts:308</a></li>
|
|
284
|
-
</ul>
|
|
285
|
-
</aside>
|
|
286
|
-
<div class="tsd-comment tsd-typography">
|
|
287
|
-
<div class="lead">
|
|
288
|
-
<p>Decode a split stake instruction and retrieve the instruction params.</p>
|
|
289
|
-
</div>
|
|
290
|
-
</div>
|
|
291
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
292
|
-
<ul class="tsd-parameters">
|
|
293
|
-
<li>
|
|
294
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
295
|
-
</li>
|
|
296
|
-
</ul>
|
|
297
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#splitstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">SplitStakeParams</a></h4>
|
|
298
|
-
</li>
|
|
299
|
-
</ul>
|
|
300
|
-
</section>
|
|
301
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
302
|
-
<a name="decodewithdraw" class="tsd-anchor"></a>
|
|
303
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> decode<wbr>Withdraw</h3>
|
|
304
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
305
|
-
<li class="tsd-signature tsd-kind-icon">decode<wbr>Withdraw<span class="tsd-signature-symbol">(</span>instruction<span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules.html#withdrawstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawStakeParams</a></li>
|
|
306
|
-
</ul>
|
|
307
|
-
<ul class="tsd-descriptions">
|
|
308
|
-
<li class="tsd-description">
|
|
309
|
-
<aside class="tsd-sources">
|
|
310
|
-
<ul>
|
|
311
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L327">stake-program.ts:327</a></li>
|
|
312
|
-
</ul>
|
|
313
|
-
</aside>
|
|
314
|
-
<div class="tsd-comment tsd-typography">
|
|
315
|
-
<div class="lead">
|
|
316
|
-
<p>Decode a withdraw stake instruction and retrieve the instruction params.</p>
|
|
317
|
-
</div>
|
|
318
|
-
</div>
|
|
319
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
320
|
-
<ul class="tsd-parameters">
|
|
321
|
-
<li>
|
|
322
|
-
<h5>instruction: <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h5>
|
|
323
|
-
</li>
|
|
324
|
-
</ul>
|
|
325
|
-
<h4 class="tsd-returns-title">Returns <a href="../modules.html#withdrawstakeparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawStakeParams</a></h4>
|
|
326
|
-
</li>
|
|
327
|
-
</ul>
|
|
328
|
-
</section>
|
|
329
|
-
</section>
|
|
330
|
-
</div>
|
|
331
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
332
|
-
<nav class="tsd-navigation primary">
|
|
333
|
-
<ul>
|
|
334
|
-
<li class=" ">
|
|
335
|
-
<a href="../modules.html">Exports</a>
|
|
336
|
-
</li>
|
|
337
|
-
</ul>
|
|
338
|
-
</nav>
|
|
339
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
340
|
-
<ul class="before-current">
|
|
341
|
-
</ul>
|
|
342
|
-
<ul class="current">
|
|
343
|
-
<li class="current tsd-kind-class">
|
|
344
|
-
<a href="stakeinstruction.html" class="tsd-kind-icon">Stake<wbr>Instruction</a>
|
|
345
|
-
<ul>
|
|
346
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
347
|
-
<a href="stakeinstruction.html#decodeauthorize" class="tsd-kind-icon">decode<wbr>Authorize</a>
|
|
348
|
-
</li>
|
|
349
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
350
|
-
<a href="stakeinstruction.html#decodeauthorizewithseed" class="tsd-kind-icon">decode<wbr>Authorize<wbr>With<wbr>Seed</a>
|
|
351
|
-
</li>
|
|
352
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
353
|
-
<a href="stakeinstruction.html#decodedeactivate" class="tsd-kind-icon">decode<wbr>Deactivate</a>
|
|
354
|
-
</li>
|
|
355
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
356
|
-
<a href="stakeinstruction.html#decodedelegate" class="tsd-kind-icon">decode<wbr>Delegate</a>
|
|
357
|
-
</li>
|
|
358
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
359
|
-
<a href="stakeinstruction.html#decodeinitialize" class="tsd-kind-icon">decode<wbr>Initialize</a>
|
|
360
|
-
</li>
|
|
361
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
362
|
-
<a href="stakeinstruction.html#decodeinstructiontype" class="tsd-kind-icon">decode<wbr>Instruction<wbr>Type</a>
|
|
363
|
-
</li>
|
|
364
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
365
|
-
<a href="stakeinstruction.html#decodesplit" class="tsd-kind-icon">decode<wbr>Split</a>
|
|
366
|
-
</li>
|
|
367
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
368
|
-
<a href="stakeinstruction.html#decodewithdraw" class="tsd-kind-icon">decode<wbr>Withdraw</a>
|
|
369
|
-
</li>
|
|
370
|
-
</ul>
|
|
371
|
-
</li>
|
|
372
|
-
</ul>
|
|
373
|
-
<ul class="after-current">
|
|
374
|
-
</ul>
|
|
375
|
-
</nav>
|
|
376
|
-
</div>
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
<footer class="with-border-bottom">
|
|
380
|
-
<div class="container">
|
|
381
|
-
<h2>Legend</h2>
|
|
382
|
-
<div class="tsd-legend-group">
|
|
383
|
-
<ul class="tsd-legend">
|
|
384
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
385
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
386
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
387
|
-
</ul>
|
|
388
|
-
<ul class="tsd-legend">
|
|
389
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
390
|
-
</ul>
|
|
391
|
-
<ul class="tsd-legend">
|
|
392
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
393
|
-
</ul>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
</footer>
|
|
397
|
-
<div class="container tsd-generator">
|
|
398
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
399
|
-
</div>
|
|
400
|
-
<div class="overlay"></div>
|
|
401
|
-
<script src="../assets/js/main.js"></script>
|
|
402
|
-
</body>
|
|
403
|
-
</html>
|