@aptos-labs/js-pro 0.1.7 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/js-pro",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "State management and library of utilities for Aptos applications.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,11 +35,11 @@
35
35
  "zustand": "^5.0.3"
36
36
  },
37
37
  "peerDependencies": {
38
- "@aptos-labs/ts-sdk": ">=5.1.2",
38
+ "@aptos-labs/ts-sdk": ">=6.0.0",
39
39
  "typescript": ">=5.0.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@aptos-labs/ts-sdk": "^5.1.2",
42
+ "@aptos-labs/ts-sdk": "^6.3.1",
43
43
  "@graphql-codegen/add": "^5.0.3",
44
44
  "@graphql-codegen/cli": "^5.0.5",
45
45
  "@graphql-codegen/import-types-preset": "^3.0.0",
@@ -534,6 +534,180 @@ export type Block_Metadata_Transactions_Stream_Cursor_Value_Input = {
534
534
  version?: InputMaybe<Scalars['bigint']['input']>;
535
535
  };
536
536
 
537
+ /** columns and relationships of "confidential_asset_activities" */
538
+ export type Confidential_Asset_Activities = {
539
+ __typename?: 'confidential_asset_activities';
540
+ amount?: Maybe<Scalars['numeric']['output']>;
541
+ asset_type?: Maybe<Scalars['String']['output']>;
542
+ block_height: Scalars['bigint']['output'];
543
+ counterparty_address?: Maybe<Scalars['String']['output']>;
544
+ /** An array relationship */
545
+ counterparty_aptos_names: Array<Current_Aptos_Names>;
546
+ /** An aggregate relationship */
547
+ counterparty_aptos_names_aggregate: Current_Aptos_Names_Aggregate;
548
+ entry_function_id_str?: Maybe<Scalars['String']['output']>;
549
+ event_data: Scalars['jsonb']['output'];
550
+ event_data_version: Scalars['String']['output'];
551
+ event_index: Scalars['bigint']['output'];
552
+ event_type: Scalars['String']['output'];
553
+ is_transaction_success: Scalars['Boolean']['output'];
554
+ /** An object relationship */
555
+ metadata?: Maybe<Fungible_Asset_Metadata>;
556
+ owner_address: Scalars['String']['output'];
557
+ /** An array relationship */
558
+ owner_aptos_names: Array<Current_Aptos_Names>;
559
+ /** An aggregate relationship */
560
+ owner_aptos_names_aggregate: Current_Aptos_Names_Aggregate;
561
+ transaction_timestamp: Scalars['timestamp']['output'];
562
+ transaction_version: Scalars['bigint']['output'];
563
+ };
564
+
565
+
566
+ /** columns and relationships of "confidential_asset_activities" */
567
+ export type Confidential_Asset_ActivitiesCounterparty_Aptos_NamesArgs = {
568
+ distinct_on?: InputMaybe<Array<Current_Aptos_Names_Select_Column>>;
569
+ limit?: InputMaybe<Scalars['Int']['input']>;
570
+ offset?: InputMaybe<Scalars['Int']['input']>;
571
+ order_by?: InputMaybe<Array<Current_Aptos_Names_Order_By>>;
572
+ where?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
573
+ };
574
+
575
+
576
+ /** columns and relationships of "confidential_asset_activities" */
577
+ export type Confidential_Asset_ActivitiesCounterparty_Aptos_Names_AggregateArgs = {
578
+ distinct_on?: InputMaybe<Array<Current_Aptos_Names_Select_Column>>;
579
+ limit?: InputMaybe<Scalars['Int']['input']>;
580
+ offset?: InputMaybe<Scalars['Int']['input']>;
581
+ order_by?: InputMaybe<Array<Current_Aptos_Names_Order_By>>;
582
+ where?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
583
+ };
584
+
585
+
586
+ /** columns and relationships of "confidential_asset_activities" */
587
+ export type Confidential_Asset_ActivitiesEvent_DataArgs = {
588
+ path?: InputMaybe<Scalars['String']['input']>;
589
+ };
590
+
591
+
592
+ /** columns and relationships of "confidential_asset_activities" */
593
+ export type Confidential_Asset_ActivitiesOwner_Aptos_NamesArgs = {
594
+ distinct_on?: InputMaybe<Array<Current_Aptos_Names_Select_Column>>;
595
+ limit?: InputMaybe<Scalars['Int']['input']>;
596
+ offset?: InputMaybe<Scalars['Int']['input']>;
597
+ order_by?: InputMaybe<Array<Current_Aptos_Names_Order_By>>;
598
+ where?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
599
+ };
600
+
601
+
602
+ /** columns and relationships of "confidential_asset_activities" */
603
+ export type Confidential_Asset_ActivitiesOwner_Aptos_Names_AggregateArgs = {
604
+ distinct_on?: InputMaybe<Array<Current_Aptos_Names_Select_Column>>;
605
+ limit?: InputMaybe<Scalars['Int']['input']>;
606
+ offset?: InputMaybe<Scalars['Int']['input']>;
607
+ order_by?: InputMaybe<Array<Current_Aptos_Names_Order_By>>;
608
+ where?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
609
+ };
610
+
611
+ /** Boolean expression to filter rows from the table "confidential_asset_activities". All fields are combined with a logical 'AND'. */
612
+ export type Confidential_Asset_Activities_Bool_Exp = {
613
+ _and?: InputMaybe<Array<Confidential_Asset_Activities_Bool_Exp>>;
614
+ _not?: InputMaybe<Confidential_Asset_Activities_Bool_Exp>;
615
+ _or?: InputMaybe<Array<Confidential_Asset_Activities_Bool_Exp>>;
616
+ amount?: InputMaybe<Numeric_Comparison_Exp>;
617
+ asset_type?: InputMaybe<String_Comparison_Exp>;
618
+ block_height?: InputMaybe<Bigint_Comparison_Exp>;
619
+ counterparty_address?: InputMaybe<String_Comparison_Exp>;
620
+ counterparty_aptos_names?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
621
+ counterparty_aptos_names_aggregate?: InputMaybe<Current_Aptos_Names_Aggregate_Bool_Exp>;
622
+ entry_function_id_str?: InputMaybe<String_Comparison_Exp>;
623
+ event_data?: InputMaybe<Jsonb_Comparison_Exp>;
624
+ event_data_version?: InputMaybe<String_Comparison_Exp>;
625
+ event_index?: InputMaybe<Bigint_Comparison_Exp>;
626
+ event_type?: InputMaybe<String_Comparison_Exp>;
627
+ is_transaction_success?: InputMaybe<Boolean_Comparison_Exp>;
628
+ metadata?: InputMaybe<Fungible_Asset_Metadata_Bool_Exp>;
629
+ owner_address?: InputMaybe<String_Comparison_Exp>;
630
+ owner_aptos_names?: InputMaybe<Current_Aptos_Names_Bool_Exp>;
631
+ owner_aptos_names_aggregate?: InputMaybe<Current_Aptos_Names_Aggregate_Bool_Exp>;
632
+ transaction_timestamp?: InputMaybe<Timestamp_Comparison_Exp>;
633
+ transaction_version?: InputMaybe<Bigint_Comparison_Exp>;
634
+ };
635
+
636
+ /** Ordering options when selecting data from "confidential_asset_activities". */
637
+ export type Confidential_Asset_Activities_Order_By = {
638
+ amount?: InputMaybe<Order_By>;
639
+ asset_type?: InputMaybe<Order_By>;
640
+ block_height?: InputMaybe<Order_By>;
641
+ counterparty_address?: InputMaybe<Order_By>;
642
+ counterparty_aptos_names_aggregate?: InputMaybe<Current_Aptos_Names_Aggregate_Order_By>;
643
+ entry_function_id_str?: InputMaybe<Order_By>;
644
+ event_data?: InputMaybe<Order_By>;
645
+ event_data_version?: InputMaybe<Order_By>;
646
+ event_index?: InputMaybe<Order_By>;
647
+ event_type?: InputMaybe<Order_By>;
648
+ is_transaction_success?: InputMaybe<Order_By>;
649
+ metadata?: InputMaybe<Fungible_Asset_Metadata_Order_By>;
650
+ owner_address?: InputMaybe<Order_By>;
651
+ owner_aptos_names_aggregate?: InputMaybe<Current_Aptos_Names_Aggregate_Order_By>;
652
+ transaction_timestamp?: InputMaybe<Order_By>;
653
+ transaction_version?: InputMaybe<Order_By>;
654
+ };
655
+
656
+ /** select columns of table "confidential_asset_activities" */
657
+ export enum Confidential_Asset_Activities_Select_Column {
658
+ /** column name */
659
+ Amount = 'amount',
660
+ /** column name */
661
+ AssetType = 'asset_type',
662
+ /** column name */
663
+ BlockHeight = 'block_height',
664
+ /** column name */
665
+ CounterpartyAddress = 'counterparty_address',
666
+ /** column name */
667
+ EntryFunctionIdStr = 'entry_function_id_str',
668
+ /** column name */
669
+ EventData = 'event_data',
670
+ /** column name */
671
+ EventDataVersion = 'event_data_version',
672
+ /** column name */
673
+ EventIndex = 'event_index',
674
+ /** column name */
675
+ EventType = 'event_type',
676
+ /** column name */
677
+ IsTransactionSuccess = 'is_transaction_success',
678
+ /** column name */
679
+ OwnerAddress = 'owner_address',
680
+ /** column name */
681
+ TransactionTimestamp = 'transaction_timestamp',
682
+ /** column name */
683
+ TransactionVersion = 'transaction_version'
684
+ }
685
+
686
+ /** Streaming cursor of the table "confidential_asset_activities" */
687
+ export type Confidential_Asset_Activities_Stream_Cursor_Input = {
688
+ /** Stream column input with initial value */
689
+ initial_value: Confidential_Asset_Activities_Stream_Cursor_Value_Input;
690
+ /** cursor ordering */
691
+ ordering?: InputMaybe<Cursor_Ordering>;
692
+ };
693
+
694
+ /** Initial value of the column from where the streaming should start */
695
+ export type Confidential_Asset_Activities_Stream_Cursor_Value_Input = {
696
+ amount?: InputMaybe<Scalars['numeric']['input']>;
697
+ asset_type?: InputMaybe<Scalars['String']['input']>;
698
+ block_height?: InputMaybe<Scalars['bigint']['input']>;
699
+ counterparty_address?: InputMaybe<Scalars['String']['input']>;
700
+ entry_function_id_str?: InputMaybe<Scalars['String']['input']>;
701
+ event_data?: InputMaybe<Scalars['jsonb']['input']>;
702
+ event_data_version?: InputMaybe<Scalars['String']['input']>;
703
+ event_index?: InputMaybe<Scalars['bigint']['input']>;
704
+ event_type?: InputMaybe<Scalars['String']['input']>;
705
+ is_transaction_success?: InputMaybe<Scalars['Boolean']['input']>;
706
+ owner_address?: InputMaybe<Scalars['String']['input']>;
707
+ transaction_timestamp?: InputMaybe<Scalars['timestamp']['input']>;
708
+ transaction_version?: InputMaybe<Scalars['bigint']['input']>;
709
+ };
710
+
537
711
  /** columns and relationships of "current_ans_lookup_v2" */
538
712
  export type Current_Ans_Lookup_V2 = {
539
713
  __typename?: 'current_ans_lookup_v2';
@@ -3754,50 +3928,6 @@ export type Fungible_Asset_Metadata_Stream_Cursor_Value_Input = {
3754
3928
  token_standard?: InputMaybe<Scalars['String']['input']>;
3755
3929
  };
3756
3930
 
3757
- /** columns and relationships of "indexer_status" */
3758
- export type Indexer_Status = {
3759
- __typename?: 'indexer_status';
3760
- db: Scalars['String']['output'];
3761
- is_indexer_up: Scalars['Boolean']['output'];
3762
- };
3763
-
3764
- /** Boolean expression to filter rows from the table "indexer_status". All fields are combined with a logical 'AND'. */
3765
- export type Indexer_Status_Bool_Exp = {
3766
- _and?: InputMaybe<Array<Indexer_Status_Bool_Exp>>;
3767
- _not?: InputMaybe<Indexer_Status_Bool_Exp>;
3768
- _or?: InputMaybe<Array<Indexer_Status_Bool_Exp>>;
3769
- db?: InputMaybe<String_Comparison_Exp>;
3770
- is_indexer_up?: InputMaybe<Boolean_Comparison_Exp>;
3771
- };
3772
-
3773
- /** Ordering options when selecting data from "indexer_status". */
3774
- export type Indexer_Status_Order_By = {
3775
- db?: InputMaybe<Order_By>;
3776
- is_indexer_up?: InputMaybe<Order_By>;
3777
- };
3778
-
3779
- /** select columns of table "indexer_status" */
3780
- export enum Indexer_Status_Select_Column {
3781
- /** column name */
3782
- Db = 'db',
3783
- /** column name */
3784
- IsIndexerUp = 'is_indexer_up'
3785
- }
3786
-
3787
- /** Streaming cursor of the table "indexer_status" */
3788
- export type Indexer_Status_Stream_Cursor_Input = {
3789
- /** Stream column input with initial value */
3790
- initial_value: Indexer_Status_Stream_Cursor_Value_Input;
3791
- /** cursor ordering */
3792
- ordering?: InputMaybe<Cursor_Ordering>;
3793
- };
3794
-
3795
- /** Initial value of the column from where the streaming should start */
3796
- export type Indexer_Status_Stream_Cursor_Value_Input = {
3797
- db?: InputMaybe<Scalars['String']['input']>;
3798
- is_indexer_up?: InputMaybe<Scalars['Boolean']['input']>;
3799
- };
3800
-
3801
3931
  export type Jsonb_Cast_Exp = {
3802
3932
  String?: InputMaybe<String_Comparison_Exp>;
3803
3933
  };
@@ -4461,6 +4591,10 @@ export type Query_Root = {
4461
4591
  block_metadata_transactions: Array<Block_Metadata_Transactions>;
4462
4592
  /** fetch data from the table: "block_metadata_transactions" using primary key columns */
4463
4593
  block_metadata_transactions_by_pk?: Maybe<Block_Metadata_Transactions>;
4594
+ /** fetch data from the table: "confidential_asset_activities" */
4595
+ confidential_asset_activities: Array<Confidential_Asset_Activities>;
4596
+ /** fetch data from the table: "confidential_asset_activities" using primary key columns */
4597
+ confidential_asset_activities_by_pk?: Maybe<Confidential_Asset_Activities>;
4464
4598
  /** fetch data from the table: "current_ans_lookup_v2" */
4465
4599
  current_ans_lookup_v2: Array<Current_Ans_Lookup_V2>;
4466
4600
  /** fetch data from the table: "current_ans_lookup_v2" using primary key columns */
@@ -4551,10 +4685,6 @@ export type Query_Root = {
4551
4685
  fungible_asset_metadata: Array<Fungible_Asset_Metadata>;
4552
4686
  /** fetch data from the table: "fungible_asset_metadata" using primary key columns */
4553
4687
  fungible_asset_metadata_by_pk?: Maybe<Fungible_Asset_Metadata>;
4554
- /** fetch data from the table: "indexer_status" */
4555
- indexer_status: Array<Indexer_Status>;
4556
- /** fetch data from the table: "indexer_status" using primary key columns */
4557
- indexer_status_by_pk?: Maybe<Indexer_Status>;
4558
4688
  /** fetch data from the table: "processor_metadata.ledger_infos" */
4559
4689
  ledger_infos: Array<Ledger_Infos>;
4560
4690
  /** fetch data from the table: "processor_metadata.ledger_infos" using primary key columns */
@@ -4667,6 +4797,21 @@ export type Query_RootBlock_Metadata_Transactions_By_PkArgs = {
4667
4797
  };
4668
4798
 
4669
4799
 
4800
+ export type Query_RootConfidential_Asset_ActivitiesArgs = {
4801
+ distinct_on?: InputMaybe<Array<Confidential_Asset_Activities_Select_Column>>;
4802
+ limit?: InputMaybe<Scalars['Int']['input']>;
4803
+ offset?: InputMaybe<Scalars['Int']['input']>;
4804
+ order_by?: InputMaybe<Array<Confidential_Asset_Activities_Order_By>>;
4805
+ where?: InputMaybe<Confidential_Asset_Activities_Bool_Exp>;
4806
+ };
4807
+
4808
+
4809
+ export type Query_RootConfidential_Asset_Activities_By_PkArgs = {
4810
+ event_index: Scalars['bigint']['input'];
4811
+ transaction_version: Scalars['bigint']['input'];
4812
+ };
4813
+
4814
+
4670
4815
  export type Query_RootCurrent_Ans_Lookup_V2Args = {
4671
4816
  distinct_on?: InputMaybe<Array<Current_Ans_Lookup_V2_Select_Column>>;
4672
4817
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -5016,20 +5161,6 @@ export type Query_RootFungible_Asset_Metadata_By_PkArgs = {
5016
5161
  };
5017
5162
 
5018
5163
 
5019
- export type Query_RootIndexer_StatusArgs = {
5020
- distinct_on?: InputMaybe<Array<Indexer_Status_Select_Column>>;
5021
- limit?: InputMaybe<Scalars['Int']['input']>;
5022
- offset?: InputMaybe<Scalars['Int']['input']>;
5023
- order_by?: InputMaybe<Array<Indexer_Status_Order_By>>;
5024
- where?: InputMaybe<Indexer_Status_Bool_Exp>;
5025
- };
5026
-
5027
-
5028
- export type Query_RootIndexer_Status_By_PkArgs = {
5029
- db: Scalars['String']['input'];
5030
- };
5031
-
5032
-
5033
5164
  export type Query_RootLedger_InfosArgs = {
5034
5165
  distinct_on?: InputMaybe<Array<Ledger_Infos_Select_Column>>;
5035
5166
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -5360,6 +5491,12 @@ export type Subscription_Root = {
5360
5491
  block_metadata_transactions_by_pk?: Maybe<Block_Metadata_Transactions>;
5361
5492
  /** fetch data from the table in a streaming manner: "block_metadata_transactions" */
5362
5493
  block_metadata_transactions_stream: Array<Block_Metadata_Transactions>;
5494
+ /** fetch data from the table: "confidential_asset_activities" */
5495
+ confidential_asset_activities: Array<Confidential_Asset_Activities>;
5496
+ /** fetch data from the table: "confidential_asset_activities" using primary key columns */
5497
+ confidential_asset_activities_by_pk?: Maybe<Confidential_Asset_Activities>;
5498
+ /** fetch data from the table in a streaming manner: "confidential_asset_activities" */
5499
+ confidential_asset_activities_stream: Array<Confidential_Asset_Activities>;
5363
5500
  /** fetch data from the table: "current_ans_lookup_v2" */
5364
5501
  current_ans_lookup_v2: Array<Current_Ans_Lookup_V2>;
5365
5502
  /** fetch data from the table: "current_ans_lookup_v2" using primary key columns */
@@ -5492,12 +5629,6 @@ export type Subscription_Root = {
5492
5629
  fungible_asset_metadata_by_pk?: Maybe<Fungible_Asset_Metadata>;
5493
5630
  /** fetch data from the table in a streaming manner: "fungible_asset_metadata" */
5494
5631
  fungible_asset_metadata_stream: Array<Fungible_Asset_Metadata>;
5495
- /** fetch data from the table: "indexer_status" */
5496
- indexer_status: Array<Indexer_Status>;
5497
- /** fetch data from the table: "indexer_status" using primary key columns */
5498
- indexer_status_by_pk?: Maybe<Indexer_Status>;
5499
- /** fetch data from the table in a streaming manner: "indexer_status" */
5500
- indexer_status_stream: Array<Indexer_Status>;
5501
5632
  /** fetch data from the table: "processor_metadata.ledger_infos" */
5502
5633
  ledger_infos: Array<Ledger_Infos>;
5503
5634
  /** fetch data from the table: "processor_metadata.ledger_infos" using primary key columns */
@@ -5653,6 +5784,28 @@ export type Subscription_RootBlock_Metadata_Transactions_StreamArgs = {
5653
5784
  };
5654
5785
 
5655
5786
 
5787
+ export type Subscription_RootConfidential_Asset_ActivitiesArgs = {
5788
+ distinct_on?: InputMaybe<Array<Confidential_Asset_Activities_Select_Column>>;
5789
+ limit?: InputMaybe<Scalars['Int']['input']>;
5790
+ offset?: InputMaybe<Scalars['Int']['input']>;
5791
+ order_by?: InputMaybe<Array<Confidential_Asset_Activities_Order_By>>;
5792
+ where?: InputMaybe<Confidential_Asset_Activities_Bool_Exp>;
5793
+ };
5794
+
5795
+
5796
+ export type Subscription_RootConfidential_Asset_Activities_By_PkArgs = {
5797
+ event_index: Scalars['bigint']['input'];
5798
+ transaction_version: Scalars['bigint']['input'];
5799
+ };
5800
+
5801
+
5802
+ export type Subscription_RootConfidential_Asset_Activities_StreamArgs = {
5803
+ batch_size: Scalars['Int']['input'];
5804
+ cursor: Array<InputMaybe<Confidential_Asset_Activities_Stream_Cursor_Input>>;
5805
+ where?: InputMaybe<Confidential_Asset_Activities_Bool_Exp>;
5806
+ };
5807
+
5808
+
5656
5809
  export type Subscription_RootCurrent_Ans_Lookup_V2Args = {
5657
5810
  distinct_on?: InputMaybe<Array<Current_Ans_Lookup_V2_Select_Column>>;
5658
5811
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -6149,27 +6302,6 @@ export type Subscription_RootFungible_Asset_Metadata_StreamArgs = {
6149
6302
  };
6150
6303
 
6151
6304
 
6152
- export type Subscription_RootIndexer_StatusArgs = {
6153
- distinct_on?: InputMaybe<Array<Indexer_Status_Select_Column>>;
6154
- limit?: InputMaybe<Scalars['Int']['input']>;
6155
- offset?: InputMaybe<Scalars['Int']['input']>;
6156
- order_by?: InputMaybe<Array<Indexer_Status_Order_By>>;
6157
- where?: InputMaybe<Indexer_Status_Bool_Exp>;
6158
- };
6159
-
6160
-
6161
- export type Subscription_RootIndexer_Status_By_PkArgs = {
6162
- db: Scalars['String']['input'];
6163
- };
6164
-
6165
-
6166
- export type Subscription_RootIndexer_Status_StreamArgs = {
6167
- batch_size: Scalars['Int']['input'];
6168
- cursor: Array<InputMaybe<Indexer_Status_Stream_Cursor_Input>>;
6169
- where?: InputMaybe<Indexer_Status_Bool_Exp>;
6170
- };
6171
-
6172
-
6173
6305
  export type Subscription_RootLedger_InfosArgs = {
6174
6306
  distinct_on?: InputMaybe<Array<Ledger_Infos_Select_Column>>;
6175
6307
  limit?: InputMaybe<Scalars['Int']['input']>;