@evergonlabs/tmi-protocol-api-client 0.16.5 → 0.16.7

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/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ type Platform = {
10
10
  /**
11
11
  * Transaction hash
12
12
  */
13
- txHash: string;
13
+ transactionHash: string;
14
14
  /**
15
15
  * Date ISO format
16
16
  */
@@ -354,7 +354,7 @@ type FractionsMarket = {
354
354
  /**
355
355
  * Transaction hash
356
356
  */
357
- txHash: string;
357
+ transactionHash: string;
358
358
  /**
359
359
  * Template of deployed Fractions Market contract
360
360
  */
@@ -575,7 +575,7 @@ type FractionsSale = {
575
575
  /**
576
576
  * Transaction hash
577
577
  */
578
- txHash: string;
578
+ transactionHash: string;
579
579
  /**
580
580
  * Date ISO format
581
581
  */
@@ -620,12 +620,107 @@ type FractionsActivity = {
620
620
  */
621
621
  platform: string;
622
622
  campaignId: string;
623
- from: string;
624
- type: string;
625
- metadata?: unknown;
626
- txHash: string;
623
+ transactionHash: unknown;
624
+ from: unknown;
627
625
  createdAt: string;
628
626
  updatedAt: string;
627
+ metadata: {
628
+ type: 'created';
629
+ };
630
+ } | {
631
+ /**
632
+ * Supported chain id
633
+ */
634
+ chainId: '1' | '11155111' | '72080' | '31337';
635
+ /**
636
+ * Address of deployed Platform contract
637
+ */
638
+ platform: string;
639
+ campaignId: string;
640
+ transactionHash: unknown;
641
+ from: unknown;
642
+ createdAt: string;
643
+ updatedAt: string;
644
+ metadata: {
645
+ type: 'status_update';
646
+ status: 'created' | 'approved' | 'rejected' | 'finalized' | 'refunded';
647
+ };
648
+ } | {
649
+ /**
650
+ * Supported chain id
651
+ */
652
+ chainId: '1' | '11155111' | '72080' | '31337';
653
+ /**
654
+ * Address of deployed Platform contract
655
+ */
656
+ platform: string;
657
+ campaignId: string;
658
+ transactionHash: unknown;
659
+ from: unknown;
660
+ createdAt: string;
661
+ updatedAt: string;
662
+ metadata: {
663
+ type: 'purchase';
664
+ purchaser: string;
665
+ priceId: string;
666
+ amountOfFractions: string;
667
+ };
668
+ } | {
669
+ /**
670
+ * Supported chain id
671
+ */
672
+ chainId: '1' | '11155111' | '72080' | '31337';
673
+ /**
674
+ * Address of deployed Platform contract
675
+ */
676
+ platform: string;
677
+ campaignId: string;
678
+ transactionHash: unknown;
679
+ from: unknown;
680
+ createdAt: string;
681
+ updatedAt: string;
682
+ metadata: {
683
+ type: 'claim';
684
+ receiver: string;
685
+ semiFungibleBurntId: string;
686
+ amountOfFractionsBurnt: string;
687
+ };
688
+ } | {
689
+ /**
690
+ * Supported chain id
691
+ */
692
+ chainId: '1' | '11155111' | '72080' | '31337';
693
+ /**
694
+ * Address of deployed Platform contract
695
+ */
696
+ platform: string;
697
+ campaignId: string;
698
+ transactionHash: unknown;
699
+ from: unknown;
700
+ createdAt: string;
701
+ updatedAt: string;
702
+ metadata: {
703
+ type: 'refund';
704
+ amount: string;
705
+ };
706
+ } | {
707
+ /**
708
+ * Supported chain id
709
+ */
710
+ chainId: '1' | '11155111' | '72080' | '31337';
711
+ /**
712
+ * Address of deployed Platform contract
713
+ */
714
+ platform: string;
715
+ campaignId: string;
716
+ transactionHash: unknown;
717
+ from: unknown;
718
+ createdAt: string;
719
+ updatedAt: string;
720
+ metadata: {
721
+ type: 'withdraw';
722
+ amount: string;
723
+ };
629
724
  };
630
725
  type FractionsSaleStatistics = {
631
726
  /**
@@ -637,10 +732,11 @@ type FractionsSaleStatistics = {
637
732
  */
638
733
  platform: string;
639
734
  campaignId: string;
640
- purchases: number;
641
- totalPaid: string;
642
- totalBurnt: string;
643
- fractionsSold: string;
735
+ statistics: Array<{
736
+ priceId: string;
737
+ fractionsSold: string;
738
+ purchases: number;
739
+ }>;
644
740
  };
645
741
  type SetFeeCapLimitRequestSchema = {
646
742
  marketAddress: string;
@@ -2885,6 +2981,7 @@ type PostV0FractionsSalesActivityData = {
2885
2981
  * Id of a Sale
2886
2982
  */
2887
2983
  campaignId?: string | number | bigint;
2984
+ operationType?: 'created' | 'status_update' | 'purchase' | 'claim' | 'withdraw' | 'refund';
2888
2985
  };
2889
2986
  };
2890
2987
  path?: never;
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ type Platform = {
10
10
  /**
11
11
  * Transaction hash
12
12
  */
13
- txHash: string;
13
+ transactionHash: string;
14
14
  /**
15
15
  * Date ISO format
16
16
  */
@@ -354,7 +354,7 @@ type FractionsMarket = {
354
354
  /**
355
355
  * Transaction hash
356
356
  */
357
- txHash: string;
357
+ transactionHash: string;
358
358
  /**
359
359
  * Template of deployed Fractions Market contract
360
360
  */
@@ -575,7 +575,7 @@ type FractionsSale = {
575
575
  /**
576
576
  * Transaction hash
577
577
  */
578
- txHash: string;
578
+ transactionHash: string;
579
579
  /**
580
580
  * Date ISO format
581
581
  */
@@ -620,12 +620,107 @@ type FractionsActivity = {
620
620
  */
621
621
  platform: string;
622
622
  campaignId: string;
623
- from: string;
624
- type: string;
625
- metadata?: unknown;
626
- txHash: string;
623
+ transactionHash: unknown;
624
+ from: unknown;
627
625
  createdAt: string;
628
626
  updatedAt: string;
627
+ metadata: {
628
+ type: 'created';
629
+ };
630
+ } | {
631
+ /**
632
+ * Supported chain id
633
+ */
634
+ chainId: '1' | '11155111' | '72080' | '31337';
635
+ /**
636
+ * Address of deployed Platform contract
637
+ */
638
+ platform: string;
639
+ campaignId: string;
640
+ transactionHash: unknown;
641
+ from: unknown;
642
+ createdAt: string;
643
+ updatedAt: string;
644
+ metadata: {
645
+ type: 'status_update';
646
+ status: 'created' | 'approved' | 'rejected' | 'finalized' | 'refunded';
647
+ };
648
+ } | {
649
+ /**
650
+ * Supported chain id
651
+ */
652
+ chainId: '1' | '11155111' | '72080' | '31337';
653
+ /**
654
+ * Address of deployed Platform contract
655
+ */
656
+ platform: string;
657
+ campaignId: string;
658
+ transactionHash: unknown;
659
+ from: unknown;
660
+ createdAt: string;
661
+ updatedAt: string;
662
+ metadata: {
663
+ type: 'purchase';
664
+ purchaser: string;
665
+ priceId: string;
666
+ amountOfFractions: string;
667
+ };
668
+ } | {
669
+ /**
670
+ * Supported chain id
671
+ */
672
+ chainId: '1' | '11155111' | '72080' | '31337';
673
+ /**
674
+ * Address of deployed Platform contract
675
+ */
676
+ platform: string;
677
+ campaignId: string;
678
+ transactionHash: unknown;
679
+ from: unknown;
680
+ createdAt: string;
681
+ updatedAt: string;
682
+ metadata: {
683
+ type: 'claim';
684
+ receiver: string;
685
+ semiFungibleBurntId: string;
686
+ amountOfFractionsBurnt: string;
687
+ };
688
+ } | {
689
+ /**
690
+ * Supported chain id
691
+ */
692
+ chainId: '1' | '11155111' | '72080' | '31337';
693
+ /**
694
+ * Address of deployed Platform contract
695
+ */
696
+ platform: string;
697
+ campaignId: string;
698
+ transactionHash: unknown;
699
+ from: unknown;
700
+ createdAt: string;
701
+ updatedAt: string;
702
+ metadata: {
703
+ type: 'refund';
704
+ amount: string;
705
+ };
706
+ } | {
707
+ /**
708
+ * Supported chain id
709
+ */
710
+ chainId: '1' | '11155111' | '72080' | '31337';
711
+ /**
712
+ * Address of deployed Platform contract
713
+ */
714
+ platform: string;
715
+ campaignId: string;
716
+ transactionHash: unknown;
717
+ from: unknown;
718
+ createdAt: string;
719
+ updatedAt: string;
720
+ metadata: {
721
+ type: 'withdraw';
722
+ amount: string;
723
+ };
629
724
  };
630
725
  type FractionsSaleStatistics = {
631
726
  /**
@@ -637,10 +732,11 @@ type FractionsSaleStatistics = {
637
732
  */
638
733
  platform: string;
639
734
  campaignId: string;
640
- purchases: number;
641
- totalPaid: string;
642
- totalBurnt: string;
643
- fractionsSold: string;
735
+ statistics: Array<{
736
+ priceId: string;
737
+ fractionsSold: string;
738
+ purchases: number;
739
+ }>;
644
740
  };
645
741
  type SetFeeCapLimitRequestSchema = {
646
742
  marketAddress: string;
@@ -2885,6 +2981,7 @@ type PostV0FractionsSalesActivityData = {
2885
2981
  * Id of a Sale
2886
2982
  */
2887
2983
  campaignId?: string | number | bigint;
2984
+ operationType?: 'created' | 'status_update' | 'purchase' | 'claim' | 'withdraw' | 'refund';
2888
2985
  };
2889
2986
  };
2890
2987
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api-client",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {