saito-wasm 0.1.30 → 0.1.32

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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.1.30"
3
+ version = "0.1.32"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -189,14 +189,6 @@ export class WasmBlock {
189
189
  */
190
190
  constructor();
191
191
  /**
192
- * @returns {any}
193
- */
194
- fee_transaction(): any;
195
- /**
196
- * @returns {number}
197
- */
198
- it_num(): number;
199
- /**
200
192
  * @returns {Uint8Array}
201
193
  */
202
194
  serialize(): Uint8Array;
@@ -217,19 +209,13 @@ export class WasmBlock {
217
209
  generate_lite_block(keylist: Array<any>): WasmBlock;
218
210
  /**
219
211
  */
220
- readonly avg_atr_income: bigint;
221
- /**
222
- */
223
- readonly avg_atr_variance: bigint;
212
+ readonly avg_fee_per_byte: bigint;
224
213
  /**
225
214
  */
226
215
  readonly avg_income: bigint;
227
216
  /**
228
217
  */
229
- readonly avg_variance: bigint;
230
- /**
231
- */
232
- readonly block_payout: Array<any>;
218
+ readonly avg_nolan_rebroadcast_per_block: bigint;
233
219
  /**
234
220
  */
235
221
  creator: string;
@@ -237,9 +223,15 @@ export class WasmBlock {
237
223
  */
238
224
  readonly cv: any;
239
225
  /**
226
+ */
227
+ readonly expected_burnfee: bigint;
228
+ /**
240
229
  */
241
230
  readonly expected_difficulty: bigint;
242
231
  /**
232
+ */
233
+ readonly fee_transaction: any;
234
+ /**
243
235
  */
244
236
  readonly file_name: string;
245
237
  /**
@@ -255,6 +247,9 @@ export class WasmBlock {
255
247
  */
256
248
  readonly gt_index: number;
257
249
  /**
250
+ */
251
+ readonly gt_num: number;
252
+ /**
258
253
  */
259
254
  readonly hash: string;
260
255
  /**
@@ -267,6 +262,9 @@ export class WasmBlock {
267
262
  */
268
263
  readonly it_index: number;
269
264
  /**
265
+ */
266
+ readonly it_num: number;
267
+ /**
270
268
  */
271
269
  readonly nolan_falling_off_chain: bigint;
272
270
  /**
@@ -280,7 +278,7 @@ export class WasmBlock {
280
278
  readonly rebroadcasts: Array<any>;
281
279
  /**
282
280
  */
283
- readonly staking_treasury: bigint;
281
+ readonly staking_payout: bigint;
284
282
  /**
285
283
  */
286
284
  timestamp: bigint;
@@ -308,29 +306,6 @@ export class WasmBlock {
308
306
  }
309
307
  /**
310
308
  */
311
- export class WasmBlockPayout {
312
- free(): void;
313
- /**
314
- */
315
- readonly miner: string;
316
- /**
317
- */
318
- readonly miner_payout: bigint;
319
- /**
320
- */
321
- readonly random_number: string;
322
- /**
323
- */
324
- readonly router: string;
325
- /**
326
- */
327
- readonly router_payout: bigint;
328
- /**
329
- */
330
- readonly staking_treasury: bigint;
331
- }
332
- /**
333
- */
334
309
  export class WasmBlockchain {
335
310
  free(): void;
336
311
  /**
@@ -414,21 +389,9 @@ export class WasmConsensusValues {
414
389
  */
415
390
  fee_transaction(): any;
416
391
  /**
417
- */
418
- readonly avg_atr_income: bigint;
419
- /**
420
- */
421
- readonly avg_atr_variance: bigint;
422
- /**
423
392
  */
424
393
  readonly avg_income: bigint;
425
394
  /**
426
- */
427
- readonly avg_variance: bigint;
428
- /**
429
- */
430
- readonly block_payout: Array<any>;
431
- /**
432
395
  */
433
396
  readonly expected_difficulty: bigint;
434
397
  /**
@@ -453,9 +416,6 @@ export class WasmConsensusValues {
453
416
  */
454
417
  readonly rebroadcast_hash: string;
455
418
  /**
456
- */
457
- readonly staking_treasury: bigint;
458
- /**
459
419
  */
460
420
  readonly total_fees: bigint;
461
421
  /**
@@ -693,6 +653,15 @@ export class WasmWallet {
693
653
  * @returns {Promise<void>}
694
654
  */
695
655
  add_slip(slip: WasmWalletSlip): Promise<void>;
656
+ /**
657
+ * @returns {Promise<Array<any>>}
658
+ */
659
+ get_key_list(): Promise<Array<any>>;
660
+ /**
661
+ * @param {Array<any>} key_list
662
+ * @returns {Promise<void>}
663
+ */
664
+ set_key_list(key_list: Array<any>): Promise<void>;
696
665
  }
697
666
  /**
698
667
  */