hive-stream 3.0.4 → 3.0.5

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.
@@ -383,6 +383,167 @@ export interface VoteBuilder {
383
383
  weight(value: string | number): this;
384
384
  send(): any;
385
385
  }
386
+ export interface FollowBuilder {
387
+ follower(account: string): this;
388
+ following(account: string): this;
389
+ send(): any;
390
+ }
391
+ export interface ReblogBuilder {
392
+ account(account: string): this;
393
+ author(account: string): this;
394
+ permlink(value: string): this;
395
+ send(): any;
396
+ }
397
+ export interface PowerUpBuilder {
398
+ from(account: string): this;
399
+ to(account: string): this;
400
+ amount(amount: string | number): this;
401
+ send(): any;
402
+ }
403
+ export interface PowerDownBuilder {
404
+ account(account: string): this;
405
+ vestingShares(amount: string): this;
406
+ send(): any;
407
+ }
408
+ export interface DelegateBuilder {
409
+ delegator(account: string): this;
410
+ delegatee(account: string): this;
411
+ vestingShares(amount: string): this;
412
+ send(): any;
413
+ }
414
+ export interface ClaimRewardsBuilder {
415
+ account(account: string): this;
416
+ rewardHive(amount: string): this;
417
+ rewardHbd(amount: string): this;
418
+ rewardVests(amount: string): this;
419
+ send(): any;
420
+ }
421
+ export interface WitnessVoteBuilder {
422
+ account(account: string): this;
423
+ witness(account: string): this;
424
+ approve(value?: boolean): this;
425
+ unapprove(): this;
426
+ send(): any;
427
+ }
428
+ export interface SetProxyBuilder {
429
+ account(account: string): this;
430
+ proxy(account: string): this;
431
+ send(): any;
432
+ }
433
+ export interface UpdateProfileBuilder {
434
+ account(account: string): this;
435
+ name(value: string): this;
436
+ about(value: string): this;
437
+ location(value: string): this;
438
+ website(value: string): this;
439
+ profileImage(url: string): this;
440
+ coverImage(url: string): this;
441
+ set(key: string, value: any): this;
442
+ send(): any;
443
+ }
444
+ export interface SavingsTransferBuilder {
445
+ from(account: string): this;
446
+ to(account: string): this;
447
+ amount(amount: string | number, symbol?: string): this;
448
+ hive(amount: string | number): this;
449
+ hbd(amount: string | number): this;
450
+ memo(memo: string): this;
451
+ requestId(id: number): this;
452
+ send(): any;
453
+ }
454
+ export interface ConvertBuilder {
455
+ from(account: string): this;
456
+ amount(amount: string | number, symbol?: string): this;
457
+ hbd(amount: string | number): this;
458
+ requestId(id: number): this;
459
+ send(): any;
460
+ }
461
+ export interface CollateralizedConvertBuilder {
462
+ from(account: string): this;
463
+ amount(amount: string | number, symbol?: string): this;
464
+ hive(amount: string | number): this;
465
+ requestId(id: number): this;
466
+ send(): any;
467
+ }
468
+ export interface DeleteCommentBuilder {
469
+ author(account: string): this;
470
+ permlink(value: string): this;
471
+ send(): any;
472
+ }
473
+ export interface LimitOrderBuilder {
474
+ owner(account: string): this;
475
+ orderId(id: number): this;
476
+ amountToSell(amount: string | number, symbol?: string): this;
477
+ minToReceive(amount: string | number, symbol?: string): this;
478
+ fillOrKill(value?: boolean): this;
479
+ expiration(value: string | Date): this;
480
+ send(signingKeys?: string | string[]): any;
481
+ }
482
+ export interface CancelOrderBuilder {
483
+ owner(account: string): this;
484
+ orderId(id: number): this;
485
+ send(signingKeys?: string | string[]): any;
486
+ }
487
+ export interface WithdrawRouteBuilder {
488
+ from(account: string): this;
489
+ to(account: string): this;
490
+ percent(value: number): this;
491
+ autoVest(value?: boolean): this;
492
+ send(signingKeys?: string | string[]): any;
493
+ }
494
+ export interface CommentOptionsBuilder {
495
+ author(account: string): this;
496
+ permlink(value: string): this;
497
+ maxAcceptedPayout(amount: string | number, symbol?: string): this;
498
+ percentHbd(value: number): this;
499
+ allowVotes(value?: boolean): this;
500
+ allowCurationRewards(value?: boolean): this;
501
+ beneficiary(account: string, weight: number): this;
502
+ send(): any;
503
+ }
504
+ export interface QueryNamespace {
505
+ getDynamicGlobalProperties(): Promise<any>;
506
+ getChainProperties(): Promise<any>;
507
+ getCurrentMedianHistoryPrice(): Promise<any>;
508
+ getRewardFund(name?: string): Promise<any>;
509
+ getFollowers(account: string, start?: string, type?: string, limit?: number): Promise<any[]>;
510
+ getFollowing(account: string, start?: string, type?: string, limit?: number): Promise<any[]>;
511
+ getFollowCount(account: string): Promise<any>;
512
+ getContent(author: string, permlink: string): Promise<any>;
513
+ getContentReplies(author: string, permlink: string): Promise<any[]>;
514
+ getDiscussions(by: string, query: Record<string, any>): Promise<any[]>;
515
+ getBlog(account: string, options?: Record<string, any>): Promise<any[]>;
516
+ getFeed(account: string, options?: Record<string, any>): Promise<any[]>;
517
+ getTrending(options?: Record<string, any>): Promise<any[]>;
518
+ getHot(options?: Record<string, any>): Promise<any[]>;
519
+ getCreated(options?: Record<string, any>): Promise<any[]>;
520
+ getActiveVotes(author: string, permlink: string): Promise<any[]>;
521
+ getVestingDelegations(account: string, from?: string, limit?: number): Promise<any[]>;
522
+ getAccountHistory(account: string, from?: number, limit?: number): Promise<any[]>;
523
+ getOrderBook(limit?: number): Promise<any>;
524
+ getOpenOrders(account: string): Promise<any[]>;
525
+ getRCMana(account: string): Promise<any>;
526
+ getVPMana(account: string): Promise<any>;
527
+ findRCAccounts(accounts: string[]): Promise<any[]>;
528
+ getCommunity(name: string): Promise<any>;
529
+ listCommunities(options?: Record<string, any>): Promise<any[]>;
530
+ getAccountNotifications(account: string, options?: Record<string, any>): Promise<any[]>;
531
+ listAllSubscriptions(account: string): Promise<any[]>;
532
+ findTransaction(transactionId: string): Promise<any>;
533
+ getWitnessByAccount(account: string): Promise<any>;
534
+ getWitnesses(ids: number[]): Promise<any[]>;
535
+ getWitnessesByVote(from: string, limit: number): Promise<any[]>;
536
+ getBlock(blockNumber: number): Promise<any>;
537
+ getBlockHeader(blockNumber: number): Promise<any>;
538
+ getOperations(blockNumber: number, onlyVirtual?: boolean): Promise<any[]>;
539
+ getConfig(): Promise<any>;
540
+ lookupAccounts(lowerBound: string, limit: number): Promise<string[]>;
541
+ lookupWitnessAccounts(lowerBound: string, limit: number): Promise<string[]>;
542
+ getConversionRequests(account: string): Promise<any[]>;
543
+ getCollateralizedConversionRequests(account: string): Promise<any[]>;
544
+ getSavingsWithdrawFrom(account: string): Promise<any[]>;
545
+ getProposals(options?: Record<string, any>): Promise<any[]>;
546
+ }
386
547
  export interface MoneyNamespace {
387
548
  parseAssetAmount(rawAmount: string): ParsedAssetAmount;
388
549
  formatAmount(amount: string | number, precision?: number): string;
@@ -406,6 +567,151 @@ export interface OpsNamespace {
406
567
  removeProposals(): RemoveProposalsBuilder;
407
568
  upvote(): VoteBuilder;
408
569
  downvote(): VoteBuilder;
570
+ follow(): FollowBuilder;
571
+ unfollow(): FollowBuilder;
572
+ mute(): FollowBuilder;
573
+ reblog(): ReblogBuilder;
574
+ powerUp(): PowerUpBuilder;
575
+ powerDown(): PowerDownBuilder;
576
+ cancelPowerDown(): PowerDownBuilder;
577
+ delegate(): DelegateBuilder;
578
+ undelegate(): DelegateBuilder;
579
+ claimRewards(): ClaimRewardsBuilder;
580
+ witnessVote(): WitnessVoteBuilder;
581
+ setProxy(): SetProxyBuilder;
582
+ clearProxy(): SetProxyBuilder;
583
+ updateProfile(): UpdateProfileBuilder;
584
+ transferToSavings(): SavingsTransferBuilder;
585
+ transferFromSavings(): SavingsTransferBuilder;
586
+ convert(): ConvertBuilder;
587
+ collateralizedConvert(): CollateralizedConvertBuilder;
588
+ deleteComment(): DeleteCommentBuilder;
589
+ limitOrder(): LimitOrderBuilder;
590
+ cancelOrder(): CancelOrderBuilder;
591
+ withdrawRoute(): WithdrawRouteBuilder;
592
+ commentOptions(): CommentOptionsBuilder;
593
+ post(): PostBuilder;
594
+ stakeEngine(): EngineStakeBuilder;
595
+ unstakeEngine(): EngineUnstakeBuilder;
596
+ buyEngine(): EngineMarketOrderBuilder;
597
+ sellEngine(): EngineMarketOrderBuilder;
598
+ cancelEngineOrder(): EngineCancelOrderBuilder;
599
+ delegateEngine(): EngineDelegateBuilder;
600
+ undelegateEngine(): EngineDelegateBuilder;
601
+ subscribeCommunity(): CommunityOperationBuilder;
602
+ unsubscribeCommunity(): CommunityOperationBuilder;
603
+ cancelRecurrentTransfer(): RecurrentTransferBuilder;
604
+ }
605
+ export interface PostBuilder {
606
+ author(account: string): this;
607
+ title(value: string): this;
608
+ body(value: string): this;
609
+ permlink(value: string): this;
610
+ tags(...tags: string[]): this;
611
+ community(name: string): this;
612
+ parentAuthor(account: string): this;
613
+ parentPermlink(value: string): this;
614
+ beneficiary(account: string, weight: number): this;
615
+ maxAcceptedPayout(amount: string | number, symbol?: string): this;
616
+ percentHbd(value: number): this;
617
+ allowVotes(value?: boolean): this;
618
+ allowCurationRewards(value?: boolean): this;
619
+ app(name: string): this;
620
+ format(value: string): this;
621
+ description(value: string): this;
622
+ image(...urls: string[]): this;
623
+ metadata(key: string, value: any): this;
624
+ send(): any;
625
+ }
626
+ export interface BatchBuilder {
627
+ add(operation: [string, any]): this;
628
+ transfer(from: string, to: string, amount: string, memo?: string): this;
629
+ vote(voter: string, author: string, permlink: string, weight: number): this;
630
+ customJson(id: string, json: any, postingAuth?: string, activeAuth?: string): this;
631
+ comment(author: string, permlink: string, parentAuthor: string, parentPermlink: string, title: string, body: string, jsonMetadata?: string): this;
632
+ send(signingKeys?: string | string[]): any;
633
+ }
634
+ export interface PowerDownScheduleEntry {
635
+ week: number;
636
+ date: Date;
637
+ amount: string;
638
+ vestingShares: string;
639
+ }
640
+ export interface AccountValueResult {
641
+ hive: number;
642
+ hbd: number;
643
+ savings_hive: number;
644
+ savings_hbd: number;
645
+ hp: number;
646
+ total_hive: number;
647
+ total_usd: number;
648
+ }
649
+ export interface EngineQueryNamespace {
650
+ getTokenBalances(account: string): Promise<any[]>;
651
+ getTokenBalance(account: string, symbol: string): Promise<any>;
652
+ getToken(symbol: string): Promise<any>;
653
+ getTokens(query?: Record<string, any>, limit?: number, offset?: number): Promise<any[]>;
654
+ getMarketBuyBook(symbol: string, limit?: number, offset?: number): Promise<any[]>;
655
+ getMarketSellBook(symbol: string, limit?: number, offset?: number): Promise<any[]>;
656
+ getMarketHistory(symbol: string, limit?: number, offset?: number): Promise<any[]>;
657
+ getMarketMetrics(query?: Record<string, any>): Promise<any[]>;
658
+ getNFT(symbol: string): Promise<any>;
659
+ getNFTInstances(symbol: string, query?: Record<string, any>, limit?: number, offset?: number): Promise<any[]>;
660
+ getNFTBalance(account: string, symbol: string): Promise<any[]>;
661
+ getNFTSellBook(symbol: string, limit?: number, offset?: number): Promise<any[]>;
662
+ getPendingUnstakes(account: string, symbol?: string): Promise<any[]>;
663
+ getDelegations(from: string, symbol: string): Promise<any[]>;
664
+ getContractInfo(name: string): Promise<any>;
665
+ find(contract: string, table: string, query: Record<string, any>, limit?: number, offset?: number): Promise<any[]>;
666
+ findOne(contract: string, table: string, query: Record<string, any>): Promise<any>;
667
+ }
668
+ export interface EngineStakeBuilder {
669
+ from(account: string): this;
670
+ to(account: string): this;
671
+ symbol(symbol: string): this;
672
+ quantity(quantity: string | number): this;
673
+ send(): any;
674
+ }
675
+ export interface EngineUnstakeBuilder {
676
+ from(account: string): this;
677
+ symbol(symbol: string): this;
678
+ quantity(quantity: string | number): this;
679
+ send(): any;
680
+ }
681
+ export interface EngineMarketOrderBuilder {
682
+ from(account: string): this;
683
+ symbol(symbol: string): this;
684
+ quantity(quantity: string | number): this;
685
+ price(price: string | number): this;
686
+ send(): any;
687
+ }
688
+ export interface EngineCancelOrderBuilder {
689
+ from(account: string): this;
690
+ type(type: 'buy' | 'sell'): this;
691
+ orderId(id: string): this;
692
+ send(): any;
693
+ }
694
+ export interface EngineDelegateBuilder {
695
+ from(account: string): this;
696
+ to(account: string): this;
697
+ symbol(symbol: string): this;
698
+ quantity(quantity: string | number): this;
699
+ send(): any;
700
+ }
701
+ export interface CommunityOperationBuilder {
702
+ account(account: string): this;
703
+ community(name: string): this;
704
+ send(): any;
705
+ }
706
+ export interface DerivedKeys {
707
+ owner: string;
708
+ active: string;
709
+ posting: string;
710
+ memo: string;
711
+ ownerPublic: string;
712
+ activePublic: string;
713
+ postingPublic: string;
714
+ memoPublic: string;
409
715
  }
410
716
  export interface FlowNamespace {
411
717
  incomingTransfers(account?: string): IncomingTransferFlowBuilder;