@nightlylabs/dex-sdk 0.1.62 → 0.1.64

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.cjs CHANGED
@@ -743,6 +743,11 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
743
743
  OrderStatus2["Executed"] = "Executed";
744
744
  return OrderStatus2;
745
745
  })(OrderStatus || {});
746
+ var TransferAction = /* @__PURE__ */ ((TransferAction2) => {
747
+ TransferAction2["Sent"] = "Sent";
748
+ TransferAction2["Received"] = "Received";
749
+ return TransferAction2;
750
+ })(TransferAction || {});
746
751
  var AdminEndpoints = /* @__PURE__ */ ((AdminEndpoints2) => {
747
752
  AdminEndpoints2["Placeholder"] = "/admin/placeholder";
748
753
  return AdminEndpoints2;
@@ -808,11 +813,6 @@ var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
808
813
  SpotMarketStatus2["Live"] = "live";
809
814
  return SpotMarketStatus2;
810
815
  })(SpotMarketStatus || {});
811
- var TransferAction = /* @__PURE__ */ ((TransferAction2) => {
812
- TransferAction2["Sent"] = "Sent";
813
- TransferAction2["Received"] = "Received";
814
- return TransferAction2;
815
- })(TransferAction || {});
816
816
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
817
817
  UserStatus2["Active"] = "Active";
818
818
  UserStatus2["Locked"] = "Locked";
package/dist/index.d.cts CHANGED
@@ -78,6 +78,12 @@ declare enum BoxRewardTier {
78
78
  Legendary = "Legendary",
79
79
  Mystic = "Mystic"
80
80
  }
81
+ interface BoxReward {
82
+ tier: string;
83
+ usdcAmount?: string;
84
+ pointsAmount?: string;
85
+ badgeType?: BoxRewardTier;
86
+ }
81
87
  interface BoxOpeningEvent {
82
88
  txHash: string;
83
89
  userId: string;
@@ -88,19 +94,6 @@ interface BoxOpeningEvent {
88
94
  pointsCost: string;
89
95
  timestamp: string;
90
96
  }
91
- interface BoxReward {
92
- tier: string;
93
- usdcAmount?: string;
94
- pointsAmount?: string;
95
- badgeType?: BoxRewardTier;
96
- }
97
- interface BoxReward {
98
- tier: string;
99
- tokenAddress?: string;
100
- tokenAmount?: string;
101
- pointsAmount?: string;
102
- badgeType?: BoxRewardTier;
103
- }
104
97
  interface CanceledPerpOrders {
105
98
  market: string;
106
99
  userId: string;
@@ -746,8 +739,14 @@ interface GetUserTransferHistoryRequest {
746
739
  newerTimestampMs?: string;
747
740
  paginationCursor?: PaginationCursor;
748
741
  }
742
+ declare enum TransferAction {
743
+ Sent = "Sent",
744
+ Received = "Received"
745
+ }
749
746
  interface HistoricalUserTransfer {
750
- receiverId: string;
747
+ userId: string;
748
+ userTransferRole: TransferAction;
749
+ secondPartyUserId: string;
751
750
  tokenAddress: string;
752
751
  amount: string;
753
752
  timestamp: string;
@@ -1128,10 +1127,6 @@ type Topic = {
1128
1127
  type: "Liquidations";
1129
1128
  content?: undefined;
1130
1129
  };
1131
- declare enum TransferAction {
1132
- Sent = "Sent",
1133
- Received = "Received"
1134
- }
1135
1130
  declare enum UserStatus {
1136
1131
  Active = "Active",
1137
1132
  Locked = "Locked"
package/dist/index.d.ts CHANGED
@@ -78,6 +78,12 @@ declare enum BoxRewardTier {
78
78
  Legendary = "Legendary",
79
79
  Mystic = "Mystic"
80
80
  }
81
+ interface BoxReward {
82
+ tier: string;
83
+ usdcAmount?: string;
84
+ pointsAmount?: string;
85
+ badgeType?: BoxRewardTier;
86
+ }
81
87
  interface BoxOpeningEvent {
82
88
  txHash: string;
83
89
  userId: string;
@@ -88,19 +94,6 @@ interface BoxOpeningEvent {
88
94
  pointsCost: string;
89
95
  timestamp: string;
90
96
  }
91
- interface BoxReward {
92
- tier: string;
93
- usdcAmount?: string;
94
- pointsAmount?: string;
95
- badgeType?: BoxRewardTier;
96
- }
97
- interface BoxReward {
98
- tier: string;
99
- tokenAddress?: string;
100
- tokenAmount?: string;
101
- pointsAmount?: string;
102
- badgeType?: BoxRewardTier;
103
- }
104
97
  interface CanceledPerpOrders {
105
98
  market: string;
106
99
  userId: string;
@@ -746,8 +739,14 @@ interface GetUserTransferHistoryRequest {
746
739
  newerTimestampMs?: string;
747
740
  paginationCursor?: PaginationCursor;
748
741
  }
742
+ declare enum TransferAction {
743
+ Sent = "Sent",
744
+ Received = "Received"
745
+ }
749
746
  interface HistoricalUserTransfer {
750
- receiverId: string;
747
+ userId: string;
748
+ userTransferRole: TransferAction;
749
+ secondPartyUserId: string;
751
750
  tokenAddress: string;
752
751
  amount: string;
753
752
  timestamp: string;
@@ -1128,10 +1127,6 @@ type Topic = {
1128
1127
  type: "Liquidations";
1129
1128
  content?: undefined;
1130
1129
  };
1131
- declare enum TransferAction {
1132
- Sent = "Sent",
1133
- Received = "Received"
1134
- }
1135
1130
  declare enum UserStatus {
1136
1131
  Active = "Active",
1137
1132
  Locked = "Locked"
package/dist/index.js CHANGED
@@ -692,6 +692,11 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
692
692
  OrderStatus2["Executed"] = "Executed";
693
693
  return OrderStatus2;
694
694
  })(OrderStatus || {});
695
+ var TransferAction = /* @__PURE__ */ ((TransferAction2) => {
696
+ TransferAction2["Sent"] = "Sent";
697
+ TransferAction2["Received"] = "Received";
698
+ return TransferAction2;
699
+ })(TransferAction || {});
695
700
  var AdminEndpoints = /* @__PURE__ */ ((AdminEndpoints2) => {
696
701
  AdminEndpoints2["Placeholder"] = "/admin/placeholder";
697
702
  return AdminEndpoints2;
@@ -757,11 +762,6 @@ var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
757
762
  SpotMarketStatus2["Live"] = "live";
758
763
  return SpotMarketStatus2;
759
764
  })(SpotMarketStatus || {});
760
- var TransferAction = /* @__PURE__ */ ((TransferAction2) => {
761
- TransferAction2["Sent"] = "Sent";
762
- TransferAction2["Received"] = "Received";
763
- return TransferAction2;
764
- })(TransferAction || {});
765
765
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
766
766
  UserStatus2["Active"] = "Active";
767
767
  UserStatus2["Locked"] = "Locked";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {