@bluefin-exchange/pro-sdk 0.1.53 → 0.1.55
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/src/api.d.ts +33 -2
- package/dist/src/api.js +8 -2
- package/package.json +1 -1
- package/src/api.ts +36 -2
- package/src/docs/AffiliateIntervalOverview.md +4 -2
- package/src/docs/UserCampaignRewards.md +6 -0
package/dist/src/api.d.ts
CHANGED
|
@@ -1072,17 +1072,23 @@ export interface AffiliateIntervalOverview {
|
|
|
1072
1072
|
*/
|
|
1073
1073
|
'intervalNumber': number;
|
|
1074
1074
|
/**
|
|
1075
|
-
* Start date of the interval in
|
|
1075
|
+
* Start date of the interval in seconds
|
|
1076
1076
|
* @type {number}
|
|
1077
1077
|
* @memberof AffiliateIntervalOverview
|
|
1078
1078
|
*/
|
|
1079
1079
|
'intervalStartDate': number;
|
|
1080
1080
|
/**
|
|
1081
|
-
* End date of the interval in
|
|
1081
|
+
* End date of the interval in seconds
|
|
1082
1082
|
* @type {number}
|
|
1083
1083
|
* @memberof AffiliateIntervalOverview
|
|
1084
1084
|
*/
|
|
1085
1085
|
'intervalEndDate': number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Status of the interval
|
|
1088
|
+
* @type {string}
|
|
1089
|
+
* @memberof AffiliateIntervalOverview
|
|
1090
|
+
*/
|
|
1091
|
+
'status': AffiliateIntervalOverviewStatusEnum;
|
|
1086
1092
|
/**
|
|
1087
1093
|
* Date when the user was referred
|
|
1088
1094
|
* @type {string}
|
|
@@ -1162,6 +1168,13 @@ export interface AffiliateIntervalOverview {
|
|
|
1162
1168
|
*/
|
|
1163
1169
|
'totalEarningsE9': string;
|
|
1164
1170
|
}
|
|
1171
|
+
export declare const AffiliateIntervalOverviewStatusEnum: {
|
|
1172
|
+
readonly Active: "ACTIVE";
|
|
1173
|
+
readonly NotStarted: "NOT_STARTED";
|
|
1174
|
+
readonly Finalized: "FINALIZED";
|
|
1175
|
+
readonly Cooldown: "COOLDOWN";
|
|
1176
|
+
};
|
|
1177
|
+
export type AffiliateIntervalOverviewStatusEnum = typeof AffiliateIntervalOverviewStatusEnum[keyof typeof AffiliateIntervalOverviewStatusEnum];
|
|
1165
1178
|
/**
|
|
1166
1179
|
*
|
|
1167
1180
|
* @export
|
|
@@ -4522,6 +4535,12 @@ export interface UserCampaignRewards {
|
|
|
4522
4535
|
* @memberof UserCampaignRewards
|
|
4523
4536
|
*/
|
|
4524
4537
|
'cashRewardsE9': string;
|
|
4538
|
+
/**
|
|
4539
|
+
* Total user fee paid in the epoch (e9 format).
|
|
4540
|
+
* @type {string}
|
|
4541
|
+
* @memberof UserCampaignRewards
|
|
4542
|
+
*/
|
|
4543
|
+
'userFeePaidE9': string;
|
|
4525
4544
|
/**
|
|
4526
4545
|
* Time in milliseconds for interval start date.
|
|
4527
4546
|
* @type {number}
|
|
@@ -4534,6 +4553,18 @@ export interface UserCampaignRewards {
|
|
|
4534
4553
|
* @memberof UserCampaignRewards
|
|
4535
4554
|
*/
|
|
4536
4555
|
'intervalEndDate': number;
|
|
4556
|
+
/**
|
|
4557
|
+
* Indicates if the rewards have been disbursed.
|
|
4558
|
+
* @type {boolean}
|
|
4559
|
+
* @memberof UserCampaignRewards
|
|
4560
|
+
*/
|
|
4561
|
+
'isDisbursed': boolean;
|
|
4562
|
+
/**
|
|
4563
|
+
* Transaction digest of the disbursement.
|
|
4564
|
+
* @type {string}
|
|
4565
|
+
* @memberof UserCampaignRewards
|
|
4566
|
+
*/
|
|
4567
|
+
'txnDigest': string;
|
|
4537
4568
|
}
|
|
4538
4569
|
export declare const UserCampaignRewardsStatusEnum: {
|
|
4539
4570
|
readonly Active: "ACTIVE";
|
package/dist/src/api.js
CHANGED
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.TradeApi = exports.TradeApiFactory = exports.TradeApiFp = exports.TradeApiAxiosParamCreator = exports.WebSocketMarketDataSecWebSocketVersionEnum = exports.WebSocketMarketDataUpgradeEnum = exports.WebSocketAccountDataSecWebSocketVersionEnum = exports.WebSocketAccountDataUpgradeEnum = exports.StreamsApi = exports.StreamsApiFactory = exports.StreamsApiFp = exports.StreamsApiAxiosParamCreator = exports.GetRewardsEpochMetadataEpochEnum = exports.GetRewardsCampaignMetadataStatusEnum = exports.GetAffiliateOverviewSortOrderEnum = exports.GetAffiliateOverviewSortByEnum = exports.GetAffiliateLeaderDashboardSortOrderEnum = exports.GetAffiliateLeaderDashboardSortByEnum = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.ExchangeApi = exports.ExchangeApiFactory = exports.ExchangeApiFp = exports.ExchangeApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AccountDataApi = exports.AccountDataApiFactory = exports.AccountDataApiFp = exports.AccountDataApiAxiosParamCreator = exports.UserCampaignRewardsStatusEnum = exports.TransactionType = exports.TradeType = exports.TradeSide = exports.SubscriptionType = exports.SelfTradePreventionType = exports.PositionSide = exports.OrderbookPartialDepthUpdateDepthLevelEnum = exports.OrderType = exports.OrderTimeInForce = exports.OrderStatus = exports.OrderSide = exports.OrderCancellationFailureReason = exports.OrderCancelReason = exports.OraclePriceUpdateSourceEnum = exports.MarketStatus = exports.MarketPriceUpdateSourceEnum = exports.MarketEventType = exports.MarketDataStreamName = exports.MarkPriceUpdateSourceEnum = exports.MarginType = exports.KlineInterval = exports.IntervalRewardsStatusEnum = exports.IntervalMetadataStatusEnum = exports.FailedCommandType = exports.EpochMetadataStatusEnum = exports.ContractsConfigNetworkEnum = exports.CommandFailureReasonCode = exports.CandlePriceType = exports.CampaignMetadataStatusEnum = exports.AffiliateOnboardResponseStatusEnum = exports.AffiliateMetadataTierEnum = exports.AffiliateMetadataStatusEnum = exports.AffiliateIntervalOverviewStatusEnum = exports.AdjustMarginOperation = exports.AccountEventType = exports.AccountEventReason = exports.AccountDataStream = void 0;
|
|
26
|
+
exports.TradeApi = exports.TradeApiFactory = exports.TradeApiFp = exports.TradeApiAxiosParamCreator = exports.WebSocketMarketDataSecWebSocketVersionEnum = exports.WebSocketMarketDataUpgradeEnum = exports.WebSocketAccountDataSecWebSocketVersionEnum = exports.WebSocketAccountDataUpgradeEnum = exports.StreamsApi = exports.StreamsApiFactory = exports.StreamsApiFp = exports.StreamsApiAxiosParamCreator = exports.GetRewardsEpochMetadataEpochEnum = exports.GetRewardsCampaignMetadataStatusEnum = exports.GetAffiliateOverviewSortOrderEnum = exports.GetAffiliateOverviewSortByEnum = exports.GetAffiliateLeaderDashboardSortOrderEnum = exports.GetAffiliateLeaderDashboardSortByEnum = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.GetRecentTradesTradeTypeEnum = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -83,6 +83,12 @@ exports.AdjustMarginOperation = {
|
|
|
83
83
|
Add: 'ADD',
|
|
84
84
|
Subtract: 'SUBTRACT'
|
|
85
85
|
};
|
|
86
|
+
exports.AffiliateIntervalOverviewStatusEnum = {
|
|
87
|
+
Active: 'ACTIVE',
|
|
88
|
+
NotStarted: 'NOT_STARTED',
|
|
89
|
+
Finalized: 'FINALIZED',
|
|
90
|
+
Cooldown: 'COOLDOWN'
|
|
91
|
+
};
|
|
86
92
|
exports.AffiliateMetadataStatusEnum = {
|
|
87
93
|
Pending: 'PENDING',
|
|
88
94
|
Approved: 'APPROVED',
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -1119,17 +1119,23 @@ export interface AffiliateIntervalOverview {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
'intervalNumber': number;
|
|
1121
1121
|
/**
|
|
1122
|
-
* Start date of the interval in
|
|
1122
|
+
* Start date of the interval in seconds
|
|
1123
1123
|
* @type {number}
|
|
1124
1124
|
* @memberof AffiliateIntervalOverview
|
|
1125
1125
|
*/
|
|
1126
1126
|
'intervalStartDate': number;
|
|
1127
1127
|
/**
|
|
1128
|
-
* End date of the interval in
|
|
1128
|
+
* End date of the interval in seconds
|
|
1129
1129
|
* @type {number}
|
|
1130
1130
|
* @memberof AffiliateIntervalOverview
|
|
1131
1131
|
*/
|
|
1132
1132
|
'intervalEndDate': number;
|
|
1133
|
+
/**
|
|
1134
|
+
* Status of the interval
|
|
1135
|
+
* @type {string}
|
|
1136
|
+
* @memberof AffiliateIntervalOverview
|
|
1137
|
+
*/
|
|
1138
|
+
'status': AffiliateIntervalOverviewStatusEnum;
|
|
1133
1139
|
/**
|
|
1134
1140
|
* Date when the user was referred
|
|
1135
1141
|
* @type {string}
|
|
@@ -1209,6 +1215,16 @@ export interface AffiliateIntervalOverview {
|
|
|
1209
1215
|
*/
|
|
1210
1216
|
'totalEarningsE9': string;
|
|
1211
1217
|
}
|
|
1218
|
+
|
|
1219
|
+
export const AffiliateIntervalOverviewStatusEnum = {
|
|
1220
|
+
Active: 'ACTIVE',
|
|
1221
|
+
NotStarted: 'NOT_STARTED',
|
|
1222
|
+
Finalized: 'FINALIZED',
|
|
1223
|
+
Cooldown: 'COOLDOWN'
|
|
1224
|
+
} as const;
|
|
1225
|
+
|
|
1226
|
+
export type AffiliateIntervalOverviewStatusEnum = typeof AffiliateIntervalOverviewStatusEnum[keyof typeof AffiliateIntervalOverviewStatusEnum];
|
|
1227
|
+
|
|
1212
1228
|
/**
|
|
1213
1229
|
*
|
|
1214
1230
|
* @export
|
|
@@ -4703,6 +4719,12 @@ export interface UserCampaignRewards {
|
|
|
4703
4719
|
* @memberof UserCampaignRewards
|
|
4704
4720
|
*/
|
|
4705
4721
|
'cashRewardsE9': string;
|
|
4722
|
+
/**
|
|
4723
|
+
* Total user fee paid in the epoch (e9 format).
|
|
4724
|
+
* @type {string}
|
|
4725
|
+
* @memberof UserCampaignRewards
|
|
4726
|
+
*/
|
|
4727
|
+
'userFeePaidE9': string;
|
|
4706
4728
|
/**
|
|
4707
4729
|
* Time in milliseconds for interval start date.
|
|
4708
4730
|
* @type {number}
|
|
@@ -4715,6 +4737,18 @@ export interface UserCampaignRewards {
|
|
|
4715
4737
|
* @memberof UserCampaignRewards
|
|
4716
4738
|
*/
|
|
4717
4739
|
'intervalEndDate': number;
|
|
4740
|
+
/**
|
|
4741
|
+
* Indicates if the rewards have been disbursed.
|
|
4742
|
+
* @type {boolean}
|
|
4743
|
+
* @memberof UserCampaignRewards
|
|
4744
|
+
*/
|
|
4745
|
+
'isDisbursed': boolean;
|
|
4746
|
+
/**
|
|
4747
|
+
* Transaction digest of the disbursement.
|
|
4748
|
+
* @type {string}
|
|
4749
|
+
* @memberof UserCampaignRewards
|
|
4750
|
+
*/
|
|
4751
|
+
'txnDigest': string;
|
|
4718
4752
|
}
|
|
4719
4753
|
|
|
4720
4754
|
export const UserCampaignRewardsStatusEnum = {
|
|
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**userAddress** | **string** | The user\'s wallet address | [default to undefined]
|
|
9
9
|
**name** | **string** | Name of the affiliate | [optional] [default to undefined]
|
|
10
10
|
**intervalNumber** | **number** | The interval number for the affiliate\'s earnings data | [default to undefined]
|
|
11
|
-
**intervalStartDate** | **number** | Start date of the interval in
|
|
12
|
-
**intervalEndDate** | **number** | End date of the interval in
|
|
11
|
+
**intervalStartDate** | **number** | Start date of the interval in seconds | [default to undefined]
|
|
12
|
+
**intervalEndDate** | **number** | End date of the interval in seconds | [default to undefined]
|
|
13
|
+
**status** | **string** | Status of the interval | [default to undefined]
|
|
13
14
|
**referredSince** | **string** | Date when the user was referred | [default to undefined]
|
|
14
15
|
**perpsRefereeEarningsE9** | **string** | Referee earnings from perps trading (e9 format) | [default to undefined]
|
|
15
16
|
**spotLPRefereeEarningsE9** | **string** | Referee earnings from spot LP (e9 format) | [default to undefined]
|
|
@@ -35,6 +36,7 @@ const instance: AffiliateIntervalOverview = {
|
|
|
35
36
|
intervalNumber,
|
|
36
37
|
intervalStartDate,
|
|
37
38
|
intervalEndDate,
|
|
39
|
+
status,
|
|
38
40
|
referredSince,
|
|
39
41
|
perpsRefereeEarningsE9,
|
|
40
42
|
spotLPRefereeEarningsE9,
|
|
@@ -15,8 +15,11 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**suiRewardsE9** | **string** | Total sui-perp token rewards earned in the epoch (e9 format). | [default to undefined]
|
|
16
16
|
**walRewardsE9** | **string** | Total wal-perp rewards earned in the epoch (e9 format). | [default to undefined]
|
|
17
17
|
**cashRewardsE9** | **string** | Total cash rewards earned in the epoch (e9 format). | [default to undefined]
|
|
18
|
+
**userFeePaidE9** | **string** | Total user fee paid in the epoch (e9 format). | [default to undefined]
|
|
18
19
|
**intervalStartDate** | **number** | Time in milliseconds for interval start date. | [default to undefined]
|
|
19
20
|
**intervalEndDate** | **number** | Time in milliseconds for interval end date. | [default to undefined]
|
|
21
|
+
**isDisbursed** | **boolean** | Indicates if the rewards have been disbursed. | [default to undefined]
|
|
22
|
+
**txnDigest** | **string** | Transaction digest of the disbursement. | [default to undefined]
|
|
20
23
|
|
|
21
24
|
## Example
|
|
22
25
|
|
|
@@ -34,8 +37,11 @@ const instance: UserCampaignRewards = {
|
|
|
34
37
|
suiRewardsE9,
|
|
35
38
|
walRewardsE9,
|
|
36
39
|
cashRewardsE9,
|
|
40
|
+
userFeePaidE9,
|
|
37
41
|
intervalStartDate,
|
|
38
42
|
intervalEndDate,
|
|
43
|
+
isDisbursed,
|
|
44
|
+
txnDigest,
|
|
39
45
|
};
|
|
40
46
|
```
|
|
41
47
|
|