zattera-js 0.1.0
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/LICENSE +21 -0
- package/README.md +694 -0
- package/dist/browser/index.js +2466 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/auth/index.js +188 -0
- package/dist/node/auth/index.js.map +1 -0
- package/dist/node/auth/keys.js +264 -0
- package/dist/node/auth/keys.js.map +1 -0
- package/dist/node/auth/memo.js +79 -0
- package/dist/node/auth/memo.js.map +1 -0
- package/dist/node/auth/serializer.js +162 -0
- package/dist/node/auth/serializer.js.map +1 -0
- package/dist/node/client/index.js +838 -0
- package/dist/node/client/index.js.map +1 -0
- package/dist/node/index.js +30 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/node_modules/@noble/ciphers/aes.js +254 -0
- package/dist/node/node_modules/@noble/ciphers/aes.js.map +1 -0
- package/dist/node/node_modules/@noble/ciphers/utils.js +113 -0
- package/dist/node/node_modules/@noble/ciphers/utils.js.map +1 -0
- package/dist/node/node_modules/@noble/hashes/esm/_md.js +146 -0
- package/dist/node/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/dist/node/node_modules/@noble/hashes/esm/_u64.js +51 -0
- package/dist/node/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/dist/node/node_modules/@noble/hashes/esm/legacy.js +123 -0
- package/dist/node/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/dist/node/node_modules/@noble/hashes/esm/sha2.js +346 -0
- package/dist/node/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/dist/node/node_modules/@noble/hashes/esm/utils.js +73 -0
- package/dist/node/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/dist/node/node_modules/@noble/secp256k1/index.js +578 -0
- package/dist/node/node_modules/@noble/secp256k1/index.js.map +1 -0
- package/dist/node/node_modules/bs58/node_modules/base-x/src/esm/index.js +132 -0
- package/dist/node/node_modules/bs58/node_modules/base-x/src/esm/index.js.map +1 -0
- package/dist/node/node_modules/bs58/src/esm/index.js +7 -0
- package/dist/node/node_modules/bs58/src/esm/index.js.map +1 -0
- package/dist/node/types/index.js +48 -0
- package/dist/node/types/index.js.map +1 -0
- package/dist/node/utils/chain-id.js +9 -0
- package/dist/node/utils/chain-id.js.map +1 -0
- package/dist/types/auth/index.d.ts +134 -0
- package/dist/types/auth/index.d.ts.map +1 -0
- package/dist/types/auth/keys.d.ts +112 -0
- package/dist/types/auth/keys.d.ts.map +1 -0
- package/dist/types/auth/memo.d.ts +51 -0
- package/dist/types/auth/memo.d.ts.map +1 -0
- package/dist/types/auth/serializer.d.ts +57 -0
- package/dist/types/auth/serializer.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +360 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +593 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/chain-id.d.ts +10 -0
- package/dist/types/utils/chain-id.d.ts.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import type { ZatteraClientConfig, DynamicGlobalProperties, ChainConfig, WitnessSchedule, HardforkProperties, RewardFund, PriceFeed, FeedHistory, Account, Witness, Comment, SignedBlock, SignedTransaction, ListAccountsParams, FindAccountsParams, ListWitnessesParams, GetAccountHistoryParams, GetOpsInBlockParams, DiscussionQuery, GetFollowersParams, GetFollowingParams, BroadcastTransactionResult, VerifyAuthorityResult, GetTransactionResult, AccountHistoryEntry, Ticker, Volume, TradeHistory, MarketHistory, OrderBook, LimitOrder, ActiveVote, AccountName, PublicKey, TransactionId, OwnerHistory, AccountRecoveryRequest, Escrow, VestingDelegation, ConversionRequest, Vote, WitnessVote } from '../types/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Zattera RPC Client
|
|
4
|
+
*
|
|
5
|
+
* Provides type-safe access to all Zattera blockchain RPC APIs
|
|
6
|
+
* following JSON-RPC 2.0 specification
|
|
7
|
+
*/
|
|
8
|
+
export declare class ZatteraClient {
|
|
9
|
+
private endpoint;
|
|
10
|
+
private chainId;
|
|
11
|
+
private timeout;
|
|
12
|
+
private retries;
|
|
13
|
+
private requestId;
|
|
14
|
+
constructor(config: ZatteraClientConfig);
|
|
15
|
+
private getNextId;
|
|
16
|
+
/**
|
|
17
|
+
* Get the configured chain ID
|
|
18
|
+
*/
|
|
19
|
+
getChainId(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Internal method to make JSON-RPC 2.0 requests with retry logic
|
|
22
|
+
*/
|
|
23
|
+
private request;
|
|
24
|
+
/**
|
|
25
|
+
* Make batch JSON-RPC requests
|
|
26
|
+
*/
|
|
27
|
+
batch<T = unknown>(requests: Array<{
|
|
28
|
+
method: string;
|
|
29
|
+
params?: unknown[] | Record<string, unknown>;
|
|
30
|
+
}>): Promise<T[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Generic RPC call method for custom or new API methods
|
|
33
|
+
*/
|
|
34
|
+
call<T>(method: string, params?: unknown[] | Record<string, unknown>): Promise<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Get compile-time chain configuration constants
|
|
37
|
+
*/
|
|
38
|
+
getConfig(): Promise<ChainConfig>;
|
|
39
|
+
/**
|
|
40
|
+
* Get current dynamic global properties (head block, supply, etc.)
|
|
41
|
+
*/
|
|
42
|
+
getDynamicGlobalProperties(): Promise<DynamicGlobalProperties>;
|
|
43
|
+
/**
|
|
44
|
+
* Get active witness schedule
|
|
45
|
+
*/
|
|
46
|
+
getWitnessSchedule(): Promise<WitnessSchedule>;
|
|
47
|
+
/**
|
|
48
|
+
* Get hardfork properties and version information
|
|
49
|
+
*/
|
|
50
|
+
getHardforkProperties(): Promise<HardforkProperties>;
|
|
51
|
+
/**
|
|
52
|
+
* Get reward fund details
|
|
53
|
+
*/
|
|
54
|
+
getRewardFunds(): Promise<RewardFund[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Get current median price feed
|
|
57
|
+
*/
|
|
58
|
+
getCurrentPriceFeed(): Promise<PriceFeed>;
|
|
59
|
+
/**
|
|
60
|
+
* Get price feed history
|
|
61
|
+
*/
|
|
62
|
+
getFeedHistory(): Promise<FeedHistory>;
|
|
63
|
+
/**
|
|
64
|
+
* List witnesses by specified order
|
|
65
|
+
*/
|
|
66
|
+
listWitnesses(params: ListWitnessesParams): Promise<Witness[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Find specific witnesses by account names
|
|
69
|
+
*/
|
|
70
|
+
findWitnesses(owners: AccountName[]): Promise<Witness[]>;
|
|
71
|
+
/**
|
|
72
|
+
* List witness votes
|
|
73
|
+
*/
|
|
74
|
+
listWitnessVotes(start: [AccountName, AccountName] | null, limit: number, order: string): Promise<WitnessVote[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Get currently active witnesses
|
|
77
|
+
*/
|
|
78
|
+
getActiveWitnesses(): Promise<AccountName[]>;
|
|
79
|
+
/**
|
|
80
|
+
* List accounts by specified order
|
|
81
|
+
*/
|
|
82
|
+
listAccounts(params: ListAccountsParams): Promise<Account[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Find specific accounts by names
|
|
85
|
+
*/
|
|
86
|
+
findAccounts(params: FindAccountsParams): Promise<Account[]>;
|
|
87
|
+
/**
|
|
88
|
+
* List account owner authority change history
|
|
89
|
+
*/
|
|
90
|
+
listOwnerHistories(start: [AccountName, string] | null, limit: number): Promise<OwnerHistory[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Find owner history for specific account
|
|
93
|
+
*/
|
|
94
|
+
findOwnerHistories(owner: AccountName): Promise<OwnerHistory[]>;
|
|
95
|
+
/**
|
|
96
|
+
* List account recovery requests
|
|
97
|
+
*/
|
|
98
|
+
listAccountRecoveryRequests(start: AccountName | null, limit: number, order: string): Promise<AccountRecoveryRequest[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Find account recovery requests
|
|
101
|
+
*/
|
|
102
|
+
findAccountRecoveryRequests(accounts: AccountName[]): Promise<AccountRecoveryRequest[]>;
|
|
103
|
+
/**
|
|
104
|
+
* List escrows
|
|
105
|
+
*/
|
|
106
|
+
listEscrows(start: [AccountName, number] | null, limit: number, order: string): Promise<Escrow[]>;
|
|
107
|
+
/**
|
|
108
|
+
* Find escrows
|
|
109
|
+
*/
|
|
110
|
+
findEscrows(from: AccountName): Promise<Escrow[]>;
|
|
111
|
+
/**
|
|
112
|
+
* List vesting delegations
|
|
113
|
+
*/
|
|
114
|
+
listVestingDelegations(start: [AccountName, AccountName] | null, limit: number, order: string): Promise<VestingDelegation[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Find vesting delegations
|
|
117
|
+
*/
|
|
118
|
+
findVestingDelegations(account: AccountName): Promise<VestingDelegation[]>;
|
|
119
|
+
/**
|
|
120
|
+
* List SBD conversion requests
|
|
121
|
+
*/
|
|
122
|
+
listDollarConversionRequests(start: [AccountName, number] | null, limit: number, order: string): Promise<ConversionRequest[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Find SBD conversion requests
|
|
125
|
+
*/
|
|
126
|
+
findDollarConversionRequests(account: AccountName): Promise<ConversionRequest[]>;
|
|
127
|
+
/**
|
|
128
|
+
* List comments by specified order
|
|
129
|
+
*/
|
|
130
|
+
listComments(start: [AccountName, string] | null, limit: number, order: string): Promise<Comment[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Find specific comments
|
|
133
|
+
*/
|
|
134
|
+
findComments(comments: Array<[AccountName, string]>): Promise<Comment[]>;
|
|
135
|
+
/**
|
|
136
|
+
* List votes
|
|
137
|
+
*/
|
|
138
|
+
listVotes(start: [AccountName, AccountName, string] | null, limit: number, order: string): Promise<Vote[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Find specific votes
|
|
141
|
+
*/
|
|
142
|
+
findVotes(author: AccountName, permlink: string): Promise<Vote[]>;
|
|
143
|
+
/**
|
|
144
|
+
* List limit orders
|
|
145
|
+
*/
|
|
146
|
+
listLimitOrders(start: [AccountName, number] | null, limit: number, order: string): Promise<LimitOrder[]>;
|
|
147
|
+
/**
|
|
148
|
+
* Find limit orders
|
|
149
|
+
*/
|
|
150
|
+
findLimitOrders(account: AccountName): Promise<LimitOrder[]>;
|
|
151
|
+
/**
|
|
152
|
+
* Get current order book
|
|
153
|
+
*/
|
|
154
|
+
getOrderBook(limit?: number): Promise<OrderBook>;
|
|
155
|
+
/**
|
|
156
|
+
* Get transaction as hex string
|
|
157
|
+
*/
|
|
158
|
+
getTransactionHex(trx: SignedTransaction): Promise<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Get required signatures for transaction
|
|
161
|
+
*/
|
|
162
|
+
getRequiredSignatures(trx: SignedTransaction, availableKeys: PublicKey[]): Promise<PublicKey[]>;
|
|
163
|
+
/**
|
|
164
|
+
* Get all potential signatures for transaction
|
|
165
|
+
*/
|
|
166
|
+
getPotentialSignatures(trx: SignedTransaction): Promise<PublicKey[]>;
|
|
167
|
+
/**
|
|
168
|
+
* Verify transaction has required authority
|
|
169
|
+
*/
|
|
170
|
+
verifyAuthority(trx: SignedTransaction): Promise<VerifyAuthorityResult>;
|
|
171
|
+
/**
|
|
172
|
+
* Verify account has authority from signers
|
|
173
|
+
*/
|
|
174
|
+
verifyAccountAuthority(account: AccountName, signers: PublicKey[]): Promise<VerifyAuthorityResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Verify arbitrary signatures
|
|
177
|
+
*/
|
|
178
|
+
verifySignatures(hash: string, signatures: string[], requiredOwner: AccountName[], requiredActive: AccountName[], requiredPosting: AccountName[], requiredOther: PublicKey[]): Promise<VerifyAuthorityResult>;
|
|
179
|
+
/**
|
|
180
|
+
* Broadcast transaction to the network
|
|
181
|
+
*/
|
|
182
|
+
broadcastTransaction(trx: SignedTransaction, maxBlockAge?: number): Promise<BroadcastTransactionResult>;
|
|
183
|
+
/**
|
|
184
|
+
* Broadcast block to the network
|
|
185
|
+
*/
|
|
186
|
+
broadcastBlock(block: SignedBlock): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Get block header by block number
|
|
189
|
+
*/
|
|
190
|
+
getBlockHeader(blockNum: number): Promise<SignedBlock>;
|
|
191
|
+
/**
|
|
192
|
+
* Get full block by block number
|
|
193
|
+
*/
|
|
194
|
+
getBlock(blockNum: number): Promise<SignedBlock>;
|
|
195
|
+
/**
|
|
196
|
+
* Get operations in a specific block
|
|
197
|
+
*/
|
|
198
|
+
getOpsInBlock(params: GetOpsInBlockParams): Promise<unknown[]>;
|
|
199
|
+
/**
|
|
200
|
+
* Get transaction by ID
|
|
201
|
+
*/
|
|
202
|
+
getTransaction(id: TransactionId): Promise<GetTransactionResult>;
|
|
203
|
+
/**
|
|
204
|
+
* Get account operation history
|
|
205
|
+
*/
|
|
206
|
+
getAccountHistory(params: GetAccountHistoryParams): Promise<Record<number, AccountHistoryEntry>>;
|
|
207
|
+
/**
|
|
208
|
+
* Enumerate virtual operations in block range
|
|
209
|
+
*/
|
|
210
|
+
enumVirtualOps(blockRangeBegin: number, blockRangeEnd: number): Promise<unknown[]>;
|
|
211
|
+
/**
|
|
212
|
+
* Get trending tags
|
|
213
|
+
*/
|
|
214
|
+
getTrendingTags(startTag?: string, limit?: number): Promise<unknown[]>;
|
|
215
|
+
/**
|
|
216
|
+
* Get tags used by author
|
|
217
|
+
*/
|
|
218
|
+
getTagsUsedByAuthor(author: AccountName): Promise<unknown[]>;
|
|
219
|
+
/**
|
|
220
|
+
* Get single discussion/post
|
|
221
|
+
*/
|
|
222
|
+
getDiscussion(author: AccountName, permlink: string): Promise<Comment>;
|
|
223
|
+
/**
|
|
224
|
+
* Get replies to a post
|
|
225
|
+
*/
|
|
226
|
+
getContentReplies(author: AccountName, permlink: string): Promise<Comment[]>;
|
|
227
|
+
/**
|
|
228
|
+
* Get discussions by trending
|
|
229
|
+
*/
|
|
230
|
+
getDiscussionsByTrending(query: DiscussionQuery): Promise<Comment[]>;
|
|
231
|
+
/**
|
|
232
|
+
* Get discussions by creation time
|
|
233
|
+
*/
|
|
234
|
+
getDiscussionsByCreated(query: DiscussionQuery): Promise<Comment[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Get discussions by activity
|
|
237
|
+
*/
|
|
238
|
+
getDiscussionsByActive(query: DiscussionQuery): Promise<Comment[]>;
|
|
239
|
+
/**
|
|
240
|
+
* Get discussions by cashout time
|
|
241
|
+
*/
|
|
242
|
+
getDiscussionsByCashout(query: DiscussionQuery): Promise<Comment[]>;
|
|
243
|
+
/**
|
|
244
|
+
* Get discussions by votes
|
|
245
|
+
*/
|
|
246
|
+
getDiscussionsByVotes(query: DiscussionQuery): Promise<Comment[]>;
|
|
247
|
+
/**
|
|
248
|
+
* Get discussions by children count
|
|
249
|
+
*/
|
|
250
|
+
getDiscussionsByChildren(query: DiscussionQuery): Promise<Comment[]>;
|
|
251
|
+
/**
|
|
252
|
+
* Get hot discussions
|
|
253
|
+
*/
|
|
254
|
+
getDiscussionsByHot(query: DiscussionQuery): Promise<Comment[]>;
|
|
255
|
+
/**
|
|
256
|
+
* Get discussions from follower feed
|
|
257
|
+
*/
|
|
258
|
+
getDiscussionsByFeed(query: DiscussionQuery): Promise<Comment[]>;
|
|
259
|
+
/**
|
|
260
|
+
* Get discussions from blog
|
|
261
|
+
*/
|
|
262
|
+
getDiscussionsByBlog(query: DiscussionQuery): Promise<Comment[]>;
|
|
263
|
+
/**
|
|
264
|
+
* Get discussions by comment count
|
|
265
|
+
*/
|
|
266
|
+
getDiscussionsByComments(query: DiscussionQuery): Promise<Comment[]>;
|
|
267
|
+
/**
|
|
268
|
+
* Get promoted discussions
|
|
269
|
+
*/
|
|
270
|
+
getDiscussionsByPromoted(query: DiscussionQuery): Promise<Comment[]>;
|
|
271
|
+
/**
|
|
272
|
+
* Get active votes on a post
|
|
273
|
+
*/
|
|
274
|
+
getActiveVotes(author: AccountName, permlink: string): Promise<ActiveVote[]>;
|
|
275
|
+
/**
|
|
276
|
+
* Get followers of an account
|
|
277
|
+
*/
|
|
278
|
+
getFollowers(params: GetFollowersParams): Promise<unknown[]>;
|
|
279
|
+
/**
|
|
280
|
+
* Get accounts that an account is following
|
|
281
|
+
*/
|
|
282
|
+
getFollowing(params: GetFollowingParams): Promise<unknown[]>;
|
|
283
|
+
/**
|
|
284
|
+
* Get follower and following counts
|
|
285
|
+
*/
|
|
286
|
+
getFollowCount(account: AccountName): Promise<{
|
|
287
|
+
account: AccountName;
|
|
288
|
+
follower_count: number;
|
|
289
|
+
following_count: number;
|
|
290
|
+
}>;
|
|
291
|
+
/**
|
|
292
|
+
* Get feed entries
|
|
293
|
+
*/
|
|
294
|
+
getFeedEntries(account: AccountName, startEntryId?: number, limit?: number): Promise<unknown[]>;
|
|
295
|
+
/**
|
|
296
|
+
* Get feed with full comments
|
|
297
|
+
*/
|
|
298
|
+
getFeed(account: AccountName, startEntryId?: number, limit?: number): Promise<Comment[]>;
|
|
299
|
+
/**
|
|
300
|
+
* Get blog entries
|
|
301
|
+
*/
|
|
302
|
+
getBlogEntries(account: AccountName, startEntryId?: number, limit?: number): Promise<unknown[]>;
|
|
303
|
+
/**
|
|
304
|
+
* Get blog with full comments
|
|
305
|
+
*/
|
|
306
|
+
getBlog(account: AccountName, startEntryId?: number, limit?: number): Promise<Comment[]>;
|
|
307
|
+
/**
|
|
308
|
+
* Get account reputation scores
|
|
309
|
+
*/
|
|
310
|
+
getAccountReputations(accountLowerBound?: AccountName, limit?: number): Promise<unknown[]>;
|
|
311
|
+
/**
|
|
312
|
+
* Get accounts that reblogged a post
|
|
313
|
+
*/
|
|
314
|
+
getRebloggedBy(author: AccountName, permlink: string): Promise<AccountName[]>;
|
|
315
|
+
/**
|
|
316
|
+
* Get blog author statistics
|
|
317
|
+
*/
|
|
318
|
+
getBlogAuthors(blogAccount: AccountName): Promise<unknown[]>;
|
|
319
|
+
/**
|
|
320
|
+
* Get market ticker
|
|
321
|
+
*/
|
|
322
|
+
getTicker(): Promise<Ticker>;
|
|
323
|
+
/**
|
|
324
|
+
* Get market volume
|
|
325
|
+
*/
|
|
326
|
+
getVolume(): Promise<Volume>;
|
|
327
|
+
/**
|
|
328
|
+
* Get market order book
|
|
329
|
+
*/
|
|
330
|
+
getMarketOrderBook(limit?: number): Promise<OrderBook>;
|
|
331
|
+
/**
|
|
332
|
+
* Get trade history
|
|
333
|
+
*/
|
|
334
|
+
getTradeHistory(start: string, end: string, limit?: number): Promise<TradeHistory[]>;
|
|
335
|
+
/**
|
|
336
|
+
* Get recent trades
|
|
337
|
+
*/
|
|
338
|
+
getRecentTrades(limit?: number): Promise<TradeHistory[]>;
|
|
339
|
+
/**
|
|
340
|
+
* Get market history buckets
|
|
341
|
+
*/
|
|
342
|
+
getMarketHistory(bucketSeconds: number, start: string, end: string): Promise<MarketHistory[]>;
|
|
343
|
+
/**
|
|
344
|
+
* Get available bucket sizes
|
|
345
|
+
*/
|
|
346
|
+
getMarketHistoryBuckets(): Promise<number[]>;
|
|
347
|
+
/**
|
|
348
|
+
* Get accounts that can sign with given public keys
|
|
349
|
+
*/
|
|
350
|
+
getKeyReferences(keys: PublicKey[]): Promise<AccountName[][]>;
|
|
351
|
+
/**
|
|
352
|
+
* Get list of all available RPC methods
|
|
353
|
+
*/
|
|
354
|
+
getMethods(): Promise<string[]>;
|
|
355
|
+
/**
|
|
356
|
+
* Get signature (parameters and return type) for an RPC method
|
|
357
|
+
*/
|
|
358
|
+
getSignature(method: string): Promise<unknown>;
|
|
359
|
+
}
|
|
360
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAGnB,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,mBAA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,EACb,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,MAAY,GAClB,OAAO,CAAC,YAAY,EAAE,CAAC;IAQ1B;;OAEG;IACG,eAAe,CAAC,KAAK,GAAE,MAAY,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAMnE;;OAEG;IACG,gBAAgB,CACpB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,aAAa,EAAE,CAAC;IAW3B;;OAEG;IACG,uBAAuB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAYlD;;OAEG;IACG,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;IAUnE;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIrC;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGrD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zattera JS - TypeScript library for Zattera blockchain RPC calls
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
*/
|
|
5
|
+
export { ZatteraClient } from './client/index.js';
|
|
6
|
+
export { generateChainId } from './utils/chain-id.js';
|
|
7
|
+
export { PrivateKey, PublicKey, Signature, generateKeys, isWif, isPublicKey, signTransaction, verifyTransactionSignatures, createTransaction, serializeTransaction, serializeSignedTransaction, TransactionSerializer, Auth, encodeMemo, decodeMemo, decodeMemoWithKey, } from './auth/index.js';
|
|
8
|
+
export type { SignConfig } from './auth/index.js';
|
|
9
|
+
export type { ZatteraClientConfig, NetworkName, JsonRpcRequest, JsonRpcResponse, JsonRpcError, RpcMethod, RpcParams, AccountName, BlockId, TransactionId, ShareType, AssetSymbol, Asset, Price, Operation, } from './types/index.js';
|
|
10
|
+
export { JsonRpcErrorCode } from './types/index.js';
|
|
11
|
+
export type { Transaction, SignedTransaction, BlockHeader, SignedBlockHeader, SignedBlock, } from './types/index.js';
|
|
12
|
+
export type { DynamicGlobalProperties, ChainConfig, WitnessSchedule, HardforkProperties, RewardFund, PriceFeed, FeedHistory, Account, Authority, OwnerHistory, AccountRecoveryRequest, Escrow, VestingDelegation, ConversionRequest, Comment, Beneficiary, ActiveVote, Vote, Witness, WitnessVote, LimitOrder, OrderBook, Order, } from './types/index.js';
|
|
13
|
+
export type { ListAccountsParams, FindAccountsParams, ListWitnessesParams, GetAccountHistoryParams, GetOpsInBlockParams, DiscussionQuery, GetFollowersParams, GetFollowingParams, } from './types/index.js';
|
|
14
|
+
export type { BroadcastTransactionResult, VerifyAuthorityResult, GetTransactionResult, AccountHistoryEntry, Ticker, Volume, TradeHistory, MarketHistory, Bucket, } from './types/index.js';
|
|
15
|
+
export { ListOrder } from './types/index.js';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,KAAK,EACL,WAAW,EACX,eAAe,EACf,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,YAAY,EACV,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,SAAS,EACT,SAAS,EACT,WAAW,EACX,OAAO,EACP,aAAa,EACb,SAAS,EACT,WAAW,EACX,KAAK,EACL,KA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