@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,240 +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>TransactionInstruction | @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="transactioninstruction.html">TransactionInstruction</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class TransactionInstruction</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>Transaction 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">TransactionInstruction</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>Constructors</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="transactioninstruction.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-index-section ">
|
|
94
|
-
<h3>Properties</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="transactioninstruction.html#data" class="tsd-kind-icon">data</a></li>
|
|
97
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="transactioninstruction.html#keys" class="tsd-kind-icon">keys</a></li>
|
|
98
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="transactioninstruction.html#programid" class="tsd-kind-icon">program<wbr>Id</a></li>
|
|
99
|
-
</ul>
|
|
100
|
-
</section>
|
|
101
|
-
</div>
|
|
102
|
-
</section>
|
|
103
|
-
</section>
|
|
104
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
105
|
-
<h2>Constructors</h2>
|
|
106
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
107
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
108
|
-
<h3>constructor</h3>
|
|
109
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
110
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Transaction<wbr>Instruction<span class="tsd-signature-symbol">(</span>opts<span class="tsd-signature-symbol">: </span><a href="../modules.html#transactioninstructionctorfields" class="tsd-signature-type" data-tsd-kind="Type alias">TransactionInstructionCtorFields</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>
|
|
111
|
-
</ul>
|
|
112
|
-
<ul class="tsd-descriptions">
|
|
113
|
-
<li class="tsd-description">
|
|
114
|
-
<aside class="tsd-sources">
|
|
115
|
-
<ul>
|
|
116
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/transaction.ts#L95">transaction.ts:95</a></li>
|
|
117
|
-
</ul>
|
|
118
|
-
</aside>
|
|
119
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
120
|
-
<ul class="tsd-parameters">
|
|
121
|
-
<li>
|
|
122
|
-
<h5>opts: <a href="../modules.html#transactioninstructionctorfields" class="tsd-signature-type" data-tsd-kind="Type alias">TransactionInstructionCtorFields</a></h5>
|
|
123
|
-
</li>
|
|
124
|
-
</ul>
|
|
125
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
126
|
-
</li>
|
|
127
|
-
</ul>
|
|
128
|
-
</section>
|
|
129
|
-
</section>
|
|
130
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
131
|
-
<h2>Properties</h2>
|
|
132
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
133
|
-
<a name="data" class="tsd-anchor"></a>
|
|
134
|
-
<h3>data</h3>
|
|
135
|
-
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
136
|
-
<aside class="tsd-sources">
|
|
137
|
-
<ul>
|
|
138
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/transaction.ts#L95">transaction.ts:95</a></li>
|
|
139
|
-
</ul>
|
|
140
|
-
</aside>
|
|
141
|
-
<div class="tsd-comment tsd-typography">
|
|
142
|
-
<div class="lead">
|
|
143
|
-
<p>Program input</p>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
</section>
|
|
147
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
148
|
-
<a name="keys" class="tsd-anchor"></a>
|
|
149
|
-
<h3>keys</h3>
|
|
150
|
-
<div class="tsd-signature tsd-kind-icon">keys<span class="tsd-signature-symbol">:</span> <a href="../modules.html#accountmeta" class="tsd-signature-type" data-tsd-kind="Type alias">AccountMeta</a><span class="tsd-signature-symbol">[]</span></div>
|
|
151
|
-
<aside class="tsd-sources">
|
|
152
|
-
<ul>
|
|
153
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/transaction.ts#L85">transaction.ts:85</a></li>
|
|
154
|
-
</ul>
|
|
155
|
-
</aside>
|
|
156
|
-
<div class="tsd-comment tsd-typography">
|
|
157
|
-
<div class="lead">
|
|
158
|
-
<p>Public keys to include in this transaction
|
|
159
|
-
Boolean represents whether this pubkey needs to sign the transaction</p>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</section>
|
|
163
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
164
|
-
<a name="programid" class="tsd-anchor"></a>
|
|
165
|
-
<h3>program<wbr>Id</h3>
|
|
166
|
-
<div class="tsd-signature tsd-kind-icon">program<wbr>Id<span class="tsd-signature-symbol">:</span> <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></div>
|
|
167
|
-
<aside class="tsd-sources">
|
|
168
|
-
<ul>
|
|
169
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/transaction.ts#L90">transaction.ts:90</a></li>
|
|
170
|
-
</ul>
|
|
171
|
-
</aside>
|
|
172
|
-
<div class="tsd-comment tsd-typography">
|
|
173
|
-
<div class="lead">
|
|
174
|
-
<p>Program Id to execute</p>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</section>
|
|
178
|
-
</section>
|
|
179
|
-
</div>
|
|
180
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
181
|
-
<nav class="tsd-navigation primary">
|
|
182
|
-
<ul>
|
|
183
|
-
<li class=" ">
|
|
184
|
-
<a href="../modules.html">Exports</a>
|
|
185
|
-
</li>
|
|
186
|
-
</ul>
|
|
187
|
-
</nav>
|
|
188
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
189
|
-
<ul class="before-current">
|
|
190
|
-
</ul>
|
|
191
|
-
<ul class="current">
|
|
192
|
-
<li class="current tsd-kind-class">
|
|
193
|
-
<a href="transactioninstruction.html" class="tsd-kind-icon">Transaction<wbr>Instruction</a>
|
|
194
|
-
<ul>
|
|
195
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
196
|
-
<a href="transactioninstruction.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
197
|
-
</li>
|
|
198
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
199
|
-
<a href="transactioninstruction.html#data" class="tsd-kind-icon">data</a>
|
|
200
|
-
</li>
|
|
201
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
202
|
-
<a href="transactioninstruction.html#keys" class="tsd-kind-icon">keys</a>
|
|
203
|
-
</li>
|
|
204
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
205
|
-
<a href="transactioninstruction.html#programid" class="tsd-kind-icon">program<wbr>Id</a>
|
|
206
|
-
</li>
|
|
207
|
-
</ul>
|
|
208
|
-
</li>
|
|
209
|
-
</ul>
|
|
210
|
-
<ul class="after-current">
|
|
211
|
-
</ul>
|
|
212
|
-
</nav>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
<footer class="with-border-bottom">
|
|
217
|
-
<div class="container">
|
|
218
|
-
<h2>Legend</h2>
|
|
219
|
-
<div class="tsd-legend-group">
|
|
220
|
-
<ul class="tsd-legend">
|
|
221
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
222
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
223
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
224
|
-
</ul>
|
|
225
|
-
<ul class="tsd-legend">
|
|
226
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
227
|
-
</ul>
|
|
228
|
-
<ul class="tsd-legend">
|
|
229
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
230
|
-
</ul>
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</footer>
|
|
234
|
-
<div class="container tsd-generator">
|
|
235
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
236
|
-
</div>
|
|
237
|
-
<div class="overlay"></div>
|
|
238
|
-
<script src="../assets/js/main.js"></script>
|
|
239
|
-
</body>
|
|
240
|
-
</html>
|
|
@@ -1,279 +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>ValidatorInfo | @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="validatorinfo.html">ValidatorInfo</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class ValidatorInfo</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>ValidatorInfo 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">ValidatorInfo</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>Constructors</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="validatorinfo.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-index-section ">
|
|
94
|
-
<h3>Properties</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="validatorinfo.html#info" class="tsd-kind-icon">info</a></li>
|
|
97
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="validatorinfo.html#key" class="tsd-kind-icon">key</a></li>
|
|
98
|
-
</ul>
|
|
99
|
-
</section>
|
|
100
|
-
<section class="tsd-index-section ">
|
|
101
|
-
<h3>Methods</h3>
|
|
102
|
-
<ul class="tsd-index-list">
|
|
103
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="validatorinfo.html#fromconfigdata" class="tsd-kind-icon">from<wbr>Config<wbr>Data</a></li>
|
|
104
|
-
</ul>
|
|
105
|
-
</section>
|
|
106
|
-
</div>
|
|
107
|
-
</section>
|
|
108
|
-
</section>
|
|
109
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
110
|
-
<h2>Constructors</h2>
|
|
111
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
112
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
113
|
-
<h3>constructor</h3>
|
|
114
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
115
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Validator<wbr>Info<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a>, info<span class="tsd-signature-symbol">: </span><a href="../modules.html#info" class="tsd-signature-type" data-tsd-kind="Type alias">Info</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="validatorinfo.html" class="tsd-signature-type" data-tsd-kind="Class">ValidatorInfo</a></li>
|
|
116
|
-
</ul>
|
|
117
|
-
<ul class="tsd-descriptions">
|
|
118
|
-
<li class="tsd-description">
|
|
119
|
-
<aside class="tsd-sources">
|
|
120
|
-
<ul>
|
|
121
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/validator-info.ts#L59">validator-info.ts:59</a></li>
|
|
122
|
-
</ul>
|
|
123
|
-
</aside>
|
|
124
|
-
<div class="tsd-comment tsd-typography">
|
|
125
|
-
<div class="lead">
|
|
126
|
-
<p>Construct a valid ValidatorInfo</p>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
130
|
-
<ul class="tsd-parameters">
|
|
131
|
-
<li>
|
|
132
|
-
<h5>key: <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></h5>
|
|
133
|
-
<div class="tsd-comment tsd-typography">
|
|
134
|
-
<p>validator public key</p>
|
|
135
|
-
</div>
|
|
136
|
-
</li>
|
|
137
|
-
<li>
|
|
138
|
-
<h5>info: <a href="../modules.html#info" class="tsd-signature-type" data-tsd-kind="Type alias">Info</a></h5>
|
|
139
|
-
<div class="tsd-comment tsd-typography">
|
|
140
|
-
<p>validator information</p>
|
|
141
|
-
</div>
|
|
142
|
-
</li>
|
|
143
|
-
</ul>
|
|
144
|
-
<h4 class="tsd-returns-title">Returns <a href="validatorinfo.html" class="tsd-signature-type" data-tsd-kind="Class">ValidatorInfo</a></h4>
|
|
145
|
-
</li>
|
|
146
|
-
</ul>
|
|
147
|
-
</section>
|
|
148
|
-
</section>
|
|
149
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
150
|
-
<h2>Properties</h2>
|
|
151
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
152
|
-
<a name="info" class="tsd-anchor"></a>
|
|
153
|
-
<h3>info</h3>
|
|
154
|
-
<div class="tsd-signature tsd-kind-icon">info<span class="tsd-signature-symbol">:</span> <a href="../modules.html#info" class="tsd-signature-type" data-tsd-kind="Type alias">Info</a></div>
|
|
155
|
-
<aside class="tsd-sources">
|
|
156
|
-
<ul>
|
|
157
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/validator-info.ts#L59">validator-info.ts:59</a></li>
|
|
158
|
-
</ul>
|
|
159
|
-
</aside>
|
|
160
|
-
<div class="tsd-comment tsd-typography">
|
|
161
|
-
<div class="lead">
|
|
162
|
-
<p>validator information</p>
|
|
163
|
-
</div>
|
|
164
|
-
</div>
|
|
165
|
-
</section>
|
|
166
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
167
|
-
<a name="key" class="tsd-anchor"></a>
|
|
168
|
-
<h3>key</h3>
|
|
169
|
-
<div class="tsd-signature tsd-kind-icon">key<span class="tsd-signature-symbol">:</span> <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></div>
|
|
170
|
-
<aside class="tsd-sources">
|
|
171
|
-
<ul>
|
|
172
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/validator-info.ts#L55">validator-info.ts:55</a></li>
|
|
173
|
-
</ul>
|
|
174
|
-
</aside>
|
|
175
|
-
<div class="tsd-comment tsd-typography">
|
|
176
|
-
<div class="lead">
|
|
177
|
-
<p>validator public key</p>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</section>
|
|
181
|
-
</section>
|
|
182
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
183
|
-
<h2>Methods</h2>
|
|
184
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
185
|
-
<a name="fromconfigdata" class="tsd-anchor"></a>
|
|
186
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Config<wbr>Data</h3>
|
|
187
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
188
|
-
<li class="tsd-signature tsd-kind-icon">from<wbr>Config<wbr>Data<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="validatorinfo.html" class="tsd-signature-type" data-tsd-kind="Class">ValidatorInfo</a></li>
|
|
189
|
-
</ul>
|
|
190
|
-
<ul class="tsd-descriptions">
|
|
191
|
-
<li class="tsd-description">
|
|
192
|
-
<aside class="tsd-sources">
|
|
193
|
-
<ul>
|
|
194
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/validator-info.ts#L79">validator-info.ts:79</a></li>
|
|
195
|
-
</ul>
|
|
196
|
-
</aside>
|
|
197
|
-
<div class="tsd-comment tsd-typography">
|
|
198
|
-
<div class="lead">
|
|
199
|
-
<p>Deserialize ValidatorInfo from the config account data. Exactly two config
|
|
200
|
-
keys are required in the data.</p>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
204
|
-
<ul class="tsd-parameters">
|
|
205
|
-
<li>
|
|
206
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5>
|
|
207
|
-
<div class="tsd-comment tsd-typography">
|
|
208
|
-
<p>config account data</p>
|
|
209
|
-
</div>
|
|
210
|
-
</li>
|
|
211
|
-
</ul>
|
|
212
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="validatorinfo.html" class="tsd-signature-type" data-tsd-kind="Class">ValidatorInfo</a></h4>
|
|
213
|
-
<p>null if info was not found</p>
|
|
214
|
-
</li>
|
|
215
|
-
</ul>
|
|
216
|
-
</section>
|
|
217
|
-
</section>
|
|
218
|
-
</div>
|
|
219
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
220
|
-
<nav class="tsd-navigation primary">
|
|
221
|
-
<ul>
|
|
222
|
-
<li class=" ">
|
|
223
|
-
<a href="../modules.html">Exports</a>
|
|
224
|
-
</li>
|
|
225
|
-
</ul>
|
|
226
|
-
</nav>
|
|
227
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
228
|
-
<ul class="before-current">
|
|
229
|
-
</ul>
|
|
230
|
-
<ul class="current">
|
|
231
|
-
<li class="current tsd-kind-class">
|
|
232
|
-
<a href="validatorinfo.html" class="tsd-kind-icon">Validator<wbr>Info</a>
|
|
233
|
-
<ul>
|
|
234
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
235
|
-
<a href="validatorinfo.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
236
|
-
</li>
|
|
237
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
238
|
-
<a href="validatorinfo.html#info" class="tsd-kind-icon">info</a>
|
|
239
|
-
</li>
|
|
240
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
241
|
-
<a href="validatorinfo.html#key" class="tsd-kind-icon">key</a>
|
|
242
|
-
</li>
|
|
243
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
244
|
-
<a href="validatorinfo.html#fromconfigdata" class="tsd-kind-icon">from<wbr>Config<wbr>Data</a>
|
|
245
|
-
</li>
|
|
246
|
-
</ul>
|
|
247
|
-
</li>
|
|
248
|
-
</ul>
|
|
249
|
-
<ul class="after-current">
|
|
250
|
-
</ul>
|
|
251
|
-
</nav>
|
|
252
|
-
</div>
|
|
253
|
-
</div>
|
|
254
|
-
</div>
|
|
255
|
-
<footer class="with-border-bottom">
|
|
256
|
-
<div class="container">
|
|
257
|
-
<h2>Legend</h2>
|
|
258
|
-
<div class="tsd-legend-group">
|
|
259
|
-
<ul class="tsd-legend">
|
|
260
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
261
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
262
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
263
|
-
</ul>
|
|
264
|
-
<ul class="tsd-legend">
|
|
265
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
266
|
-
</ul>
|
|
267
|
-
<ul class="tsd-legend">
|
|
268
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
269
|
-
</ul>
|
|
270
|
-
</div>
|
|
271
|
-
</div>
|
|
272
|
-
</footer>
|
|
273
|
-
<div class="container tsd-generator">
|
|
274
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
275
|
-
</div>
|
|
276
|
-
<div class="overlay"></div>
|
|
277
|
-
<script src="../assets/js/main.js"></script>
|
|
278
|
-
</body>
|
|
279
|
-
</html>
|