@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
package/doc/classes/loader.html
DELETED
|
@@ -1,275 +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>Loader | @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="loader.html">Loader</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class Loader</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>Program loader interface</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">Loader</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="loader.html#chunksize" class="tsd-kind-icon">chunk<wbr>Size</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-index-section ">
|
|
94
|
-
<h3>Methods</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="loader.html#getminnumsignatures" class="tsd-kind-icon">get<wbr>Min<wbr>Num<wbr>Signatures</a></li>
|
|
97
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="loader.html#load" class="tsd-kind-icon">load</a></li>
|
|
98
|
-
</ul>
|
|
99
|
-
</section>
|
|
100
|
-
</div>
|
|
101
|
-
</section>
|
|
102
|
-
</section>
|
|
103
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
104
|
-
<h2>Accessors</h2>
|
|
105
|
-
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
106
|
-
<a name="chunksize" class="tsd-anchor"></a>
|
|
107
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> chunk<wbr>Size</h3>
|
|
108
|
-
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
109
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> chunkSize<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>
|
|
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/loader.ts#L25">loader.ts:25</a></li>
|
|
116
|
-
</ul>
|
|
117
|
-
</aside>
|
|
118
|
-
<div class="tsd-comment tsd-typography">
|
|
119
|
-
<div class="lead">
|
|
120
|
-
<p>Amount of program data placed in each load Transaction</p>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
|
124
|
-
</li>
|
|
125
|
-
</ul>
|
|
126
|
-
</section>
|
|
127
|
-
</section>
|
|
128
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
129
|
-
<h2>Methods</h2>
|
|
130
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
131
|
-
<a name="getminnumsignatures" class="tsd-anchor"></a>
|
|
132
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Min<wbr>Num<wbr>Signatures</h3>
|
|
133
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
134
|
-
<li class="tsd-signature tsd-kind-icon">get<wbr>Min<wbr>Num<wbr>Signatures<span class="tsd-signature-symbol">(</span>dataLength<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-type">number</span></li>
|
|
135
|
-
</ul>
|
|
136
|
-
<ul class="tsd-descriptions">
|
|
137
|
-
<li class="tsd-description">
|
|
138
|
-
<aside class="tsd-sources">
|
|
139
|
-
<ul>
|
|
140
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/loader.ts#L40">loader.ts:40</a></li>
|
|
141
|
-
</ul>
|
|
142
|
-
</aside>
|
|
143
|
-
<div class="tsd-comment tsd-typography">
|
|
144
|
-
<div class="lead">
|
|
145
|
-
<p>Minimum number of signatures required to load a program not including
|
|
146
|
-
retries</p>
|
|
147
|
-
</div>
|
|
148
|
-
<p>Can be used to calculate transaction fees</p>
|
|
149
|
-
</div>
|
|
150
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
151
|
-
<ul class="tsd-parameters">
|
|
152
|
-
<li>
|
|
153
|
-
<h5>dataLength: <span class="tsd-signature-type">number</span></h5>
|
|
154
|
-
</li>
|
|
155
|
-
</ul>
|
|
156
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
|
157
|
-
</li>
|
|
158
|
-
</ul>
|
|
159
|
-
</section>
|
|
160
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
161
|
-
<a name="load" class="tsd-anchor"></a>
|
|
162
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> load</h3>
|
|
163
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
164
|
-
<li class="tsd-signature tsd-kind-icon">load<span class="tsd-signature-symbol">(</span>connection<span class="tsd-signature-symbol">: </span><a href="connection.html" class="tsd-signature-type" data-tsd-kind="Class">Connection</a>, payer<span class="tsd-signature-symbol">: </span><a href="account.html" class="tsd-signature-type" data-tsd-kind="Class">Account</a>, program<span class="tsd-signature-symbol">: </span><a href="account.html" class="tsd-signature-type" data-tsd-kind="Class">Account</a>, programId<span class="tsd-signature-symbol">: </span><a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a>, data<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">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></li>
|
|
165
|
-
</ul>
|
|
166
|
-
<ul class="tsd-descriptions">
|
|
167
|
-
<li class="tsd-description">
|
|
168
|
-
<aside class="tsd-sources">
|
|
169
|
-
<ul>
|
|
170
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/loader.ts#L59">loader.ts:59</a></li>
|
|
171
|
-
</ul>
|
|
172
|
-
</aside>
|
|
173
|
-
<div class="tsd-comment tsd-typography">
|
|
174
|
-
<div class="lead">
|
|
175
|
-
<p>Loads a generic program</p>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
179
|
-
<ul class="tsd-parameters">
|
|
180
|
-
<li>
|
|
181
|
-
<h5>connection: <a href="connection.html" class="tsd-signature-type" data-tsd-kind="Class">Connection</a></h5>
|
|
182
|
-
<div class="tsd-comment tsd-typography">
|
|
183
|
-
<p>The connection to use</p>
|
|
184
|
-
</div>
|
|
185
|
-
</li>
|
|
186
|
-
<li>
|
|
187
|
-
<h5>payer: <a href="account.html" class="tsd-signature-type" data-tsd-kind="Class">Account</a></h5>
|
|
188
|
-
<div class="tsd-comment tsd-typography">
|
|
189
|
-
<p>System account that pays to load the program</p>
|
|
190
|
-
</div>
|
|
191
|
-
</li>
|
|
192
|
-
<li>
|
|
193
|
-
<h5>program: <a href="account.html" class="tsd-signature-type" data-tsd-kind="Class">Account</a></h5>
|
|
194
|
-
<div class="tsd-comment tsd-typography">
|
|
195
|
-
<p>Account to load the program into</p>
|
|
196
|
-
</div>
|
|
197
|
-
</li>
|
|
198
|
-
<li>
|
|
199
|
-
<h5>programId: <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></h5>
|
|
200
|
-
<div class="tsd-comment tsd-typography">
|
|
201
|
-
<p>Public key that identifies the loader</p>
|
|
202
|
-
</div>
|
|
203
|
-
</li>
|
|
204
|
-
<li>
|
|
205
|
-
<h5>data: <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>
|
|
206
|
-
<div class="tsd-comment tsd-typography">
|
|
207
|
-
<p>Program octets</p>
|
|
208
|
-
</div>
|
|
209
|
-
</li>
|
|
210
|
-
</ul>
|
|
211
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4>
|
|
212
|
-
<p>true if program was loaded successfully, false if program was already loaded</p>
|
|
213
|
-
</li>
|
|
214
|
-
</ul>
|
|
215
|
-
</section>
|
|
216
|
-
</section>
|
|
217
|
-
</div>
|
|
218
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
219
|
-
<nav class="tsd-navigation primary">
|
|
220
|
-
<ul>
|
|
221
|
-
<li class=" ">
|
|
222
|
-
<a href="../modules.html">Exports</a>
|
|
223
|
-
</li>
|
|
224
|
-
</ul>
|
|
225
|
-
</nav>
|
|
226
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
227
|
-
<ul class="before-current">
|
|
228
|
-
</ul>
|
|
229
|
-
<ul class="current">
|
|
230
|
-
<li class="current tsd-kind-class">
|
|
231
|
-
<a href="loader.html" class="tsd-kind-icon">Loader</a>
|
|
232
|
-
<ul>
|
|
233
|
-
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
234
|
-
<a href="loader.html#chunksize" class="tsd-kind-icon">chunk<wbr>Size</a>
|
|
235
|
-
</li>
|
|
236
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
237
|
-
<a href="loader.html#getminnumsignatures" class="tsd-kind-icon">get<wbr>Min<wbr>Num<wbr>Signatures</a>
|
|
238
|
-
</li>
|
|
239
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
240
|
-
<a href="loader.html#load" class="tsd-kind-icon">load</a>
|
|
241
|
-
</li>
|
|
242
|
-
</ul>
|
|
243
|
-
</li>
|
|
244
|
-
</ul>
|
|
245
|
-
<ul class="after-current">
|
|
246
|
-
</ul>
|
|
247
|
-
</nav>
|
|
248
|
-
</div>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
<footer class="with-border-bottom">
|
|
252
|
-
<div class="container">
|
|
253
|
-
<h2>Legend</h2>
|
|
254
|
-
<div class="tsd-legend-group">
|
|
255
|
-
<ul class="tsd-legend">
|
|
256
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
257
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
258
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
259
|
-
</ul>
|
|
260
|
-
<ul class="tsd-legend">
|
|
261
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
262
|
-
</ul>
|
|
263
|
-
<ul class="tsd-legend">
|
|
264
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
265
|
-
</ul>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</footer>
|
|
269
|
-
<div class="container tsd-generator">
|
|
270
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
271
|
-
</div>
|
|
272
|
-
<div class="overlay"></div>
|
|
273
|
-
<script src="../assets/js/main.js"></script>
|
|
274
|
-
</body>
|
|
275
|
-
</html>
|
package/doc/classes/lockup.html
DELETED
|
@@ -1,250 +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>Lockup | @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="lockup.html">Lockup</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class Lockup</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 account lockup info</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">Lockup</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="lockup.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="lockup.html#custodian" class="tsd-kind-icon">custodian</a></li>
|
|
97
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="lockup.html#epoch" class="tsd-kind-icon">epoch</a></li>
|
|
98
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="lockup.html#unixtimestamp" class="tsd-kind-icon">unix<wbr>Timestamp</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>Lockup<span class="tsd-signature-symbol">(</span>unixTimestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, epoch<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, custodian<span class="tsd-signature-symbol">: </span><a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="lockup.html" class="tsd-signature-type" data-tsd-kind="Class">Lockup</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/stake-program.ts#L51">stake-program.ts:51</a></li>
|
|
117
|
-
</ul>
|
|
118
|
-
</aside>
|
|
119
|
-
<div class="tsd-comment tsd-typography">
|
|
120
|
-
<div class="lead">
|
|
121
|
-
<p>Create a new Lockup object</p>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
125
|
-
<ul class="tsd-parameters">
|
|
126
|
-
<li>
|
|
127
|
-
<h5>unixTimestamp: <span class="tsd-signature-type">number</span></h5>
|
|
128
|
-
</li>
|
|
129
|
-
<li>
|
|
130
|
-
<h5>epoch: <span class="tsd-signature-type">number</span></h5>
|
|
131
|
-
</li>
|
|
132
|
-
<li>
|
|
133
|
-
<h5>custodian: <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></h5>
|
|
134
|
-
</li>
|
|
135
|
-
</ul>
|
|
136
|
-
<h4 class="tsd-returns-title">Returns <a href="lockup.html" class="tsd-signature-type" data-tsd-kind="Class">Lockup</a></h4>
|
|
137
|
-
</li>
|
|
138
|
-
</ul>
|
|
139
|
-
</section>
|
|
140
|
-
</section>
|
|
141
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
142
|
-
<h2>Properties</h2>
|
|
143
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
144
|
-
<a name="custodian" class="tsd-anchor"></a>
|
|
145
|
-
<h3>custodian</h3>
|
|
146
|
-
<div class="tsd-signature tsd-kind-icon">custodian<span class="tsd-signature-symbol">:</span> <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></div>
|
|
147
|
-
<aside class="tsd-sources">
|
|
148
|
-
<ul>
|
|
149
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L51">stake-program.ts:51</a></li>
|
|
150
|
-
</ul>
|
|
151
|
-
</aside>
|
|
152
|
-
<div class="tsd-comment tsd-typography">
|
|
153
|
-
<div class="lead">
|
|
154
|
-
<p>Lockup custodian authority</p>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
</section>
|
|
158
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
159
|
-
<a name="epoch" class="tsd-anchor"></a>
|
|
160
|
-
<h3>epoch</h3>
|
|
161
|
-
<div class="tsd-signature tsd-kind-icon">epoch<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
162
|
-
<aside class="tsd-sources">
|
|
163
|
-
<ul>
|
|
164
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L49">stake-program.ts:49</a></li>
|
|
165
|
-
</ul>
|
|
166
|
-
</aside>
|
|
167
|
-
<div class="tsd-comment tsd-typography">
|
|
168
|
-
<div class="lead">
|
|
169
|
-
<p>Epoch of lockup expiration</p>
|
|
170
|
-
</div>
|
|
171
|
-
</div>
|
|
172
|
-
</section>
|
|
173
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
174
|
-
<a name="unixtimestamp" class="tsd-anchor"></a>
|
|
175
|
-
<h3>unix<wbr>Timestamp</h3>
|
|
176
|
-
<div class="tsd-signature tsd-kind-icon">unix<wbr>Timestamp<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
177
|
-
<aside class="tsd-sources">
|
|
178
|
-
<ul>
|
|
179
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/stake-program.ts#L47">stake-program.ts:47</a></li>
|
|
180
|
-
</ul>
|
|
181
|
-
</aside>
|
|
182
|
-
<div class="tsd-comment tsd-typography">
|
|
183
|
-
<div class="lead">
|
|
184
|
-
<p>Unix timestamp of lockup expiration</p>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
</section>
|
|
188
|
-
</section>
|
|
189
|
-
</div>
|
|
190
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
191
|
-
<nav class="tsd-navigation primary">
|
|
192
|
-
<ul>
|
|
193
|
-
<li class=" ">
|
|
194
|
-
<a href="../modules.html">Exports</a>
|
|
195
|
-
</li>
|
|
196
|
-
</ul>
|
|
197
|
-
</nav>
|
|
198
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
199
|
-
<ul class="before-current">
|
|
200
|
-
</ul>
|
|
201
|
-
<ul class="current">
|
|
202
|
-
<li class="current tsd-kind-class">
|
|
203
|
-
<a href="lockup.html" class="tsd-kind-icon">Lockup</a>
|
|
204
|
-
<ul>
|
|
205
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
206
|
-
<a href="lockup.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
207
|
-
</li>
|
|
208
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
209
|
-
<a href="lockup.html#custodian" class="tsd-kind-icon">custodian</a>
|
|
210
|
-
</li>
|
|
211
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
212
|
-
<a href="lockup.html#epoch" class="tsd-kind-icon">epoch</a>
|
|
213
|
-
</li>
|
|
214
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
215
|
-
<a href="lockup.html#unixtimestamp" class="tsd-kind-icon">unix<wbr>Timestamp</a>
|
|
216
|
-
</li>
|
|
217
|
-
</ul>
|
|
218
|
-
</li>
|
|
219
|
-
</ul>
|
|
220
|
-
<ul class="after-current">
|
|
221
|
-
</ul>
|
|
222
|
-
</nav>
|
|
223
|
-
</div>
|
|
224
|
-
</div>
|
|
225
|
-
</div>
|
|
226
|
-
<footer class="with-border-bottom">
|
|
227
|
-
<div class="container">
|
|
228
|
-
<h2>Legend</h2>
|
|
229
|
-
<div class="tsd-legend-group">
|
|
230
|
-
<ul class="tsd-legend">
|
|
231
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
232
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
233
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
234
|
-
</ul>
|
|
235
|
-
<ul class="tsd-legend">
|
|
236
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
237
|
-
</ul>
|
|
238
|
-
<ul class="tsd-legend">
|
|
239
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
240
|
-
</ul>
|
|
241
|
-
</div>
|
|
242
|
-
</div>
|
|
243
|
-
</footer>
|
|
244
|
-
<div class="container tsd-generator">
|
|
245
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
246
|
-
</div>
|
|
247
|
-
<div class="overlay"></div>
|
|
248
|
-
<script src="../assets/js/main.js"></script>
|
|
249
|
-
</body>
|
|
250
|
-
</html>
|