@snagsolutions/sdk 0.1.0-alpha.20 → 0.1.0-alpha.200
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/CHANGELOG.md +1626 -0
- package/README.md +13 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +8 -4
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +368 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +17 -4
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +666 -135
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +4 -4
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +3 -3
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +11 -11
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +7 -7
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +55 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +52 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +31 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +31 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2646 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +283 -64
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +38 -2
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +38 -2
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1930 -269
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -247
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/minting.d.ts +5 -5
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +11 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +29 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.mjs.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +36 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +184 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +12 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +31 -2
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +561 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +21 -5
- package/src/resources/index.ts +12 -1
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +790 -146
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +19 -3
- package/src/resources/loyalty/loyalty.ts +39 -15
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +64 -4
- package/src/resources/loyalty/questions.ts +56 -6
- package/src/resources/loyalty/rule-edits.ts +3854 -100
- package/src/resources/loyalty/rule-groups.ts +499 -76
- package/src/resources/loyalty/rules.ts +3038 -318
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +687 -0
- package/src/resources/loyalty/transactions.ts +1 -330
- package/src/resources/minting.ts +25 -5
- package/src/resources/referral/referral.ts +13 -11
- package/src/resources/referral/users.ts +43 -5
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +61 -3
- package/src/resources/users/users.ts +249 -38
- package/src/resources/websites/website-collections.ts +42 -1
- package/src/resources/websites/website-user-roles.ts +25 -1
- package/src/resources/websites/websites.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -6,6 +6,13 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class RuleEdits extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieve configured loyalty rule edits with optional pagination and filters
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const ruleEdits = await client.loyalty.ruleEdits.list({
|
|
13
|
+
* loyaltyRuleId: true,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
9
16
|
*/
|
|
10
17
|
list(query: RuleEditListParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditListResponse> {
|
|
11
18
|
return this._client.get('/api/loyalty/rule_edits', { query, ...options });
|
|
@@ -13,6 +20,13 @@ export class RuleEdits extends APIResource {
|
|
|
13
20
|
|
|
14
21
|
/**
|
|
15
22
|
* Restore a loyalty rule from a rule edit
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const response = await client.loyalty.ruleEdits.restore(
|
|
27
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
16
30
|
*/
|
|
17
31
|
restore(
|
|
18
32
|
id: string,
|
|
@@ -95,7 +109,7 @@ export namespace RuleEditListResponse {
|
|
|
95
109
|
/**
|
|
96
110
|
* Amount associated with the loyalty rule
|
|
97
111
|
*/
|
|
98
|
-
amount: number;
|
|
112
|
+
amount: number | null;
|
|
99
113
|
|
|
100
114
|
/**
|
|
101
115
|
* Timestamp when the loyalty rule was created
|
|
@@ -107,16 +121,41 @@ export namespace RuleEditListResponse {
|
|
|
107
121
|
*/
|
|
108
122
|
deletedAt: string | null;
|
|
109
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Description of the loyalty rule
|
|
126
|
+
*/
|
|
127
|
+
description: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* End time of the loyalty rule
|
|
131
|
+
*/
|
|
132
|
+
endTime: string | null;
|
|
133
|
+
|
|
110
134
|
/**
|
|
111
135
|
* Frequency of the loyalty rule
|
|
112
136
|
*/
|
|
113
137
|
frequency: string;
|
|
114
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Name of the loyalty rule
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
|
|
115
144
|
/**
|
|
116
145
|
* Unique identifier for the organization
|
|
117
146
|
*/
|
|
118
147
|
organizationId: string;
|
|
119
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Type of the reward
|
|
151
|
+
*/
|
|
152
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Start time of the loyalty rule
|
|
156
|
+
*/
|
|
157
|
+
startTime: string | null;
|
|
158
|
+
|
|
120
159
|
/**
|
|
121
160
|
* Type of the loyalty rule
|
|
122
161
|
*/
|
|
@@ -137,10 +176,920 @@ export namespace RuleEditListResponse {
|
|
|
137
176
|
*/
|
|
138
177
|
collectionAddress?: string;
|
|
139
178
|
|
|
179
|
+
/**
|
|
180
|
+
* URL of the media associated with the loyalty rule
|
|
181
|
+
*/
|
|
182
|
+
mediaUrl?: string | null;
|
|
183
|
+
|
|
140
184
|
/**
|
|
141
185
|
* Optional metadata for the loyalty rule
|
|
142
186
|
*/
|
|
143
|
-
metadata?:
|
|
187
|
+
metadata?: { [key: string]: Data.Metadata };
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace Data {
|
|
191
|
+
export interface Metadata {
|
|
192
|
+
/**
|
|
193
|
+
* Number of tokens per batch.
|
|
194
|
+
*/
|
|
195
|
+
batchSize?: number | null;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Text displayed on the action button.
|
|
199
|
+
*/
|
|
200
|
+
buttonText?: string | null;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Flag indicating if commenting is required.
|
|
204
|
+
*/
|
|
205
|
+
checkComment?: boolean | null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Flag indicating if liking the post is required.
|
|
209
|
+
*/
|
|
210
|
+
checkLike?: boolean | null;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Flag indicating if reposting is required.
|
|
214
|
+
*/
|
|
215
|
+
checkRepost?: boolean | null;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Text to check in the Twitter post, username, or bio.
|
|
219
|
+
*/
|
|
220
|
+
checkText?: string | Array<string> | null;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Array of collections associated with the rule.
|
|
224
|
+
*/
|
|
225
|
+
collection?: Array<Metadata.Collection>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Conditions for completing the profile.
|
|
229
|
+
*/
|
|
230
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Description of the external rule condition (only for external rules)
|
|
234
|
+
*/
|
|
235
|
+
conditionDescription?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Object containing details for the call-to-action.
|
|
239
|
+
*/
|
|
240
|
+
cta?: Metadata.Cta | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* API key for custom rewards integration.
|
|
244
|
+
*/
|
|
245
|
+
customRewardsApiKey?: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
249
|
+
*/
|
|
250
|
+
directRpc?: boolean;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Array of Discord servers, channels, and roles to join.
|
|
254
|
+
*/
|
|
255
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Array of drip quests required to complete the rule.
|
|
259
|
+
*/
|
|
260
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Flag indicating whether joining Discord servers is required.
|
|
264
|
+
*/
|
|
265
|
+
enableJoinDiscordServers?: boolean | null;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Flag indicating whether streaks are enabled.
|
|
269
|
+
*/
|
|
270
|
+
enableStreaks?: boolean | null;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
274
|
+
*/
|
|
275
|
+
enableVerifiedMultiplier?: boolean;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Type of ERC20 token for the loyalty rule.
|
|
279
|
+
*/
|
|
280
|
+
erc20Type?: 'erc20' | 'native';
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Fill source of the order for the token sale
|
|
284
|
+
*/
|
|
285
|
+
fillSource?: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Percentage reward given to a user for their first referral.
|
|
289
|
+
*/
|
|
290
|
+
firstReferralReward?: number | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* URL of the GitHub repository to check for star.
|
|
294
|
+
*/
|
|
295
|
+
githubRepoUrl?: string | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Flag indicating whether the fill source is included.
|
|
299
|
+
*/
|
|
300
|
+
hasFillSource?: boolean;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Indicates if the item has never been sold.
|
|
304
|
+
*/
|
|
305
|
+
hasNeverSold?: boolean;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Indicates if the full royalty has been paid for items.
|
|
309
|
+
*/
|
|
310
|
+
hasPaidFullRoyalty?: boolean;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Flag indicating if the sale currency is included.
|
|
314
|
+
*/
|
|
315
|
+
hasSaleCurrency?: boolean;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Indicates if the user has a verified Twitter account.
|
|
319
|
+
*/
|
|
320
|
+
hasVerifiedTwitter?: boolean;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* URL of the image associated with the rule.
|
|
324
|
+
*/
|
|
325
|
+
imageUrl?: string | null;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
329
|
+
*/
|
|
330
|
+
isCheckInOnEveryTxn?: boolean;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
334
|
+
*/
|
|
335
|
+
isMultiplierApplied?: boolean;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Flag indicating if the rule is restricted to new users.
|
|
339
|
+
*/
|
|
340
|
+
isRestrictedToNewUsers?: boolean;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Flag indicating if rewards are applied retroactively.
|
|
344
|
+
*/
|
|
345
|
+
isRetroactive?: boolean | null;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
349
|
+
*/
|
|
350
|
+
isTokenHoldMultiplier?: boolean;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Optional link associated with the metadata.
|
|
354
|
+
*/
|
|
355
|
+
link?: string | null;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Liquidity pool details.
|
|
359
|
+
*/
|
|
360
|
+
liquidity?: Metadata.Liquidity;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Maximum quantity constraint for token holding.
|
|
364
|
+
*/
|
|
365
|
+
maxQty?: number | null;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Minimum quantity constraint for token holding.
|
|
369
|
+
*/
|
|
370
|
+
minQty?: number | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
374
|
+
*/
|
|
375
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Flag indicating whether to include only known users.
|
|
379
|
+
*/
|
|
380
|
+
onlyKnownUsers?: boolean;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Flag indicating whether to include only native tokens.
|
|
384
|
+
*/
|
|
385
|
+
onlyNative?: boolean;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Flag indicating whether to include only non-listed items.
|
|
389
|
+
*/
|
|
390
|
+
onlyNonListed?: boolean;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Indicates if only existing users are rewarded.
|
|
394
|
+
*/
|
|
395
|
+
onlyRewardExistingUser?: boolean;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* give points for only one token ownership per contract
|
|
399
|
+
*/
|
|
400
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Promotional code associated with the rule.
|
|
404
|
+
*/
|
|
405
|
+
promoCode?: string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* URL of the CSV file containing promo codes.
|
|
409
|
+
*/
|
|
410
|
+
promoCodeCsvUrl?: string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Numbers of the promotional code to be generated.
|
|
414
|
+
*/
|
|
415
|
+
promoCodeLength?: number | null;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Type of the promotional code.
|
|
419
|
+
*/
|
|
420
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Array defining ranges and corresponding rewards.
|
|
424
|
+
*/
|
|
425
|
+
range?: Array<Metadata.Range>;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Object defining referral requirements.
|
|
429
|
+
*/
|
|
430
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Lump sum reward given to a referrer.
|
|
434
|
+
*/
|
|
435
|
+
referrerReward?: number | null;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Loyalty currency ID of the referrer reward.
|
|
439
|
+
*/
|
|
440
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Flag indicating if the post link is required.
|
|
444
|
+
*/
|
|
445
|
+
requirePostLink?: boolean | null;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Flag indicating if media metadata is required.
|
|
449
|
+
*/
|
|
450
|
+
requirePostMediaLink?: boolean | null;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
454
|
+
*/
|
|
455
|
+
rewardBadgePerRange?: boolean;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
459
|
+
*/
|
|
460
|
+
rewardByBatch?: boolean | null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Criteria to evaluate the reward.
|
|
464
|
+
*/
|
|
465
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Flag indicating if the reward is rewarded per action.
|
|
469
|
+
*/
|
|
470
|
+
rewardPerAction?: boolean | null;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Flag indicating if rewards are given per impression.
|
|
474
|
+
*/
|
|
475
|
+
rewardPerImpression?: boolean | null;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
479
|
+
* instead of count.
|
|
480
|
+
*/
|
|
481
|
+
rewardPerValue?: boolean;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
485
|
+
*/
|
|
486
|
+
royaltyAddress?: string;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Royalty percentage of the item.
|
|
490
|
+
*/
|
|
491
|
+
royaltyPercentage?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Currency associated with sales.
|
|
495
|
+
*/
|
|
496
|
+
saleCurrency?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Percentage reward given for a second-level referral.
|
|
500
|
+
*/
|
|
501
|
+
secondReferralReward?: number | null;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Flag indicating if the multiplier is skipped.
|
|
505
|
+
*/
|
|
506
|
+
skipMultiplier?: boolean | null;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Object containing details of the associated smart contract.
|
|
510
|
+
*/
|
|
511
|
+
smartContract?: Metadata.SmartContract;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Array of snapshot proposals for the rule.
|
|
515
|
+
*/
|
|
516
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Social media platform associated with the rule.
|
|
520
|
+
*/
|
|
521
|
+
socialPlatform?:
|
|
522
|
+
| 'Custom'
|
|
523
|
+
| 'Discord'
|
|
524
|
+
| 'EpicGames'
|
|
525
|
+
| 'Instagram'
|
|
526
|
+
| 'Steam'
|
|
527
|
+
| 'Telegram'
|
|
528
|
+
| 'TikTok'
|
|
529
|
+
| 'Twitch'
|
|
530
|
+
| 'X(Twitter)'
|
|
531
|
+
| 'YouTube'
|
|
532
|
+
| 'Google'
|
|
533
|
+
| 'GitHub'
|
|
534
|
+
| null;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* URL of the social platform's logo.
|
|
538
|
+
*/
|
|
539
|
+
socialPlatformLogo?: string | null;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Name of the social platform.
|
|
543
|
+
*/
|
|
544
|
+
socialPlatformName?: string | null;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* ID of the Steam app.
|
|
548
|
+
*/
|
|
549
|
+
steamAppId?: string | null;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Array of streak milestones and corresponding rewards.
|
|
553
|
+
*/
|
|
554
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Metadata for swap loyalty rules
|
|
558
|
+
*/
|
|
559
|
+
swap?: Metadata.Swap;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* ID of the Telegram channel.
|
|
563
|
+
*/
|
|
564
|
+
telegramChannelId?: string | null;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Time delay in seconds to verify actions.
|
|
568
|
+
*/
|
|
569
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Flag indicating if all contracts are tracked.
|
|
573
|
+
*/
|
|
574
|
+
trackAllContracts?: boolean | null;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
578
|
+
* completed once the progress is 100%.
|
|
579
|
+
*/
|
|
580
|
+
trackProgress?: boolean | null;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* URL of the associated Twitter account.
|
|
584
|
+
*/
|
|
585
|
+
twitterAccountUrl?: string;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Hashtag associated with the Twitter post.
|
|
589
|
+
*/
|
|
590
|
+
twitterHashtag?: string;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* URL of the associated Twitter post.
|
|
594
|
+
*/
|
|
595
|
+
twitterPostUrl?: string;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Unique identifier of the Twitter user.
|
|
599
|
+
*/
|
|
600
|
+
twitterUserId?: string;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Twitter username of the user.
|
|
604
|
+
*/
|
|
605
|
+
twitterUsername?: string;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Minimum length of the verification text.
|
|
609
|
+
*/
|
|
610
|
+
verificationTextMinimumLength?: number | null;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Multiplier applied to rewards for verified users.
|
|
614
|
+
*/
|
|
615
|
+
verifiedMultiplier?: number | null;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Placeholder text for verification input fields.
|
|
619
|
+
*/
|
|
620
|
+
verifyPlaceHolderText?: string | null;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Type of wallet associated with the rule.
|
|
624
|
+
*/
|
|
625
|
+
walletType?:
|
|
626
|
+
| 'evm'
|
|
627
|
+
| 'solana'
|
|
628
|
+
| 'imx'
|
|
629
|
+
| 'sui'
|
|
630
|
+
| 'ton'
|
|
631
|
+
| 'cosmos'
|
|
632
|
+
| 'ultra'
|
|
633
|
+
| 'agw'
|
|
634
|
+
| 'flow_cadence'
|
|
635
|
+
| 'substrate'
|
|
636
|
+
| null;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* ID of the Youtube channel.
|
|
640
|
+
*/
|
|
641
|
+
youtubeChannelId?: string | null;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* ID of the Youtube video.
|
|
645
|
+
*/
|
|
646
|
+
youtubeVideoId?: string | null;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export namespace Metadata {
|
|
650
|
+
export interface Collection {
|
|
651
|
+
/**
|
|
652
|
+
* Blockchain address of the collection.
|
|
653
|
+
*/
|
|
654
|
+
address?: string;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Multiplier applied to the rewards for this collection.
|
|
658
|
+
*/
|
|
659
|
+
multiplier?: number;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Blockchain network of the collection.
|
|
663
|
+
*/
|
|
664
|
+
network?:
|
|
665
|
+
| 'abstract'
|
|
666
|
+
| 'abstractTestnet'
|
|
667
|
+
| 'apechain'
|
|
668
|
+
| 'arbitrum'
|
|
669
|
+
| 'avalanche'
|
|
670
|
+
| 'avalancheFuji'
|
|
671
|
+
| 'base'
|
|
672
|
+
| 'baseSepolia'
|
|
673
|
+
| 'berachain'
|
|
674
|
+
| 'berachainArtio'
|
|
675
|
+
| 'berachainBepolia'
|
|
676
|
+
| 'binance'
|
|
677
|
+
| 'bscTestnet'
|
|
678
|
+
| 'campTestnet'
|
|
679
|
+
| 'fantom'
|
|
680
|
+
| 'fantomTestnet'
|
|
681
|
+
| 'flowMainnet'
|
|
682
|
+
| 'mainnet'
|
|
683
|
+
| 'nexusTestnet'
|
|
684
|
+
| 'optimism'
|
|
685
|
+
| 'polygon'
|
|
686
|
+
| 'polygon_mumbai'
|
|
687
|
+
| 'skaleNebula'
|
|
688
|
+
| 'skaleEuropa'
|
|
689
|
+
| 'skaleCalypso'
|
|
690
|
+
| 'solana'
|
|
691
|
+
| 'sophon'
|
|
692
|
+
| 'sophonTestnet'
|
|
693
|
+
| 'sui'
|
|
694
|
+
| 'superseed'
|
|
695
|
+
| 'superseedSepolia'
|
|
696
|
+
| 'vanar'
|
|
697
|
+
| 'xai'
|
|
698
|
+
| 'zksync'
|
|
699
|
+
| 'coti'
|
|
700
|
+
| 'cotiTestnet'
|
|
701
|
+
| 'morph'
|
|
702
|
+
| 'morphTestnet'
|
|
703
|
+
| 'morphHolesky'
|
|
704
|
+
| 'ultra'
|
|
705
|
+
| 'ultraTestnet'
|
|
706
|
+
| 'nitrograph'
|
|
707
|
+
| 'sepolia'
|
|
708
|
+
| 'optimism_sepolia'
|
|
709
|
+
| 'arbitrumSepolia'
|
|
710
|
+
| 'goerli'
|
|
711
|
+
| 'optimism_goerli'
|
|
712
|
+
| 'arbitrumGoerli'
|
|
713
|
+
| 'basecamp'
|
|
714
|
+
| 'somnia'
|
|
715
|
+
| 'zkverify'
|
|
716
|
+
| 'polkadot'
|
|
717
|
+
| 'kusama'
|
|
718
|
+
| 'flow_cadence';
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Object containing details for the call-to-action.
|
|
723
|
+
*/
|
|
724
|
+
export interface Cta {
|
|
725
|
+
/**
|
|
726
|
+
* Link for the call-to-action.
|
|
727
|
+
*/
|
|
728
|
+
href?: string | null;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Label for the call-to-action.
|
|
732
|
+
*/
|
|
733
|
+
label?: string | null;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export interface DiscordServersToJoin {
|
|
737
|
+
/**
|
|
738
|
+
* ID of the Discord server to join.
|
|
739
|
+
*/
|
|
740
|
+
id?: string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Array of Discord channels to join.
|
|
744
|
+
*/
|
|
745
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Array of roles to assign in the Discord server.
|
|
749
|
+
*/
|
|
750
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export namespace DiscordServersToJoin {
|
|
754
|
+
export interface Channel {
|
|
755
|
+
/**
|
|
756
|
+
* ID of the Discord channel.
|
|
757
|
+
*/
|
|
758
|
+
id?: string;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Array of emojis used in the channel.
|
|
762
|
+
*/
|
|
763
|
+
emojis?: Array<Channel.Emoji>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Phrase of text to be present in the discord message
|
|
767
|
+
*/
|
|
768
|
+
text?: string;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export namespace Channel {
|
|
772
|
+
export interface Emoji {
|
|
773
|
+
/**
|
|
774
|
+
* ID of the emoji used in the channel.
|
|
775
|
+
*/
|
|
776
|
+
id?: string;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export interface Role {
|
|
781
|
+
/**
|
|
782
|
+
* ID of the role in the Discord server.
|
|
783
|
+
*/
|
|
784
|
+
id: string;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export interface DripQuestsToComplete {
|
|
789
|
+
/**
|
|
790
|
+
* ID of the drip quest to complete.
|
|
791
|
+
*/
|
|
792
|
+
id: string;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Liquidity pool details.
|
|
797
|
+
*/
|
|
798
|
+
export interface Liquidity {
|
|
799
|
+
/**
|
|
800
|
+
* Calculation type of the liquidity pool.
|
|
801
|
+
*/
|
|
802
|
+
calculationType?: 'fixed' | 'custom';
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
806
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
807
|
+
* USD.
|
|
808
|
+
*/
|
|
809
|
+
customFunction?: string;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Liquidity provided per day in USD
|
|
813
|
+
*/
|
|
814
|
+
liquidityPerDay?: number;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Blockchain network of the liquidity pool.
|
|
818
|
+
*/
|
|
819
|
+
network?:
|
|
820
|
+
| 'abstract'
|
|
821
|
+
| 'abstractTestnet'
|
|
822
|
+
| 'apechain'
|
|
823
|
+
| 'arbitrum'
|
|
824
|
+
| 'avalanche'
|
|
825
|
+
| 'avalancheFuji'
|
|
826
|
+
| 'base'
|
|
827
|
+
| 'baseSepolia'
|
|
828
|
+
| 'berachain'
|
|
829
|
+
| 'berachainArtio'
|
|
830
|
+
| 'berachainBepolia'
|
|
831
|
+
| 'binance'
|
|
832
|
+
| 'bscTestnet'
|
|
833
|
+
| 'campTestnet'
|
|
834
|
+
| 'fantom'
|
|
835
|
+
| 'fantomTestnet'
|
|
836
|
+
| 'flowMainnet'
|
|
837
|
+
| 'mainnet'
|
|
838
|
+
| 'nexusTestnet'
|
|
839
|
+
| 'optimism'
|
|
840
|
+
| 'polygon'
|
|
841
|
+
| 'polygon_mumbai'
|
|
842
|
+
| 'skaleNebula'
|
|
843
|
+
| 'skaleEuropa'
|
|
844
|
+
| 'skaleCalypso'
|
|
845
|
+
| 'solana'
|
|
846
|
+
| 'sophon'
|
|
847
|
+
| 'sophonTestnet'
|
|
848
|
+
| 'sui'
|
|
849
|
+
| 'superseed'
|
|
850
|
+
| 'superseedSepolia'
|
|
851
|
+
| 'vanar'
|
|
852
|
+
| 'xai'
|
|
853
|
+
| 'zksync'
|
|
854
|
+
| 'coti'
|
|
855
|
+
| 'cotiTestnet'
|
|
856
|
+
| 'morph'
|
|
857
|
+
| 'morphTestnet'
|
|
858
|
+
| 'morphHolesky'
|
|
859
|
+
| 'ultra'
|
|
860
|
+
| 'ultraTestnet'
|
|
861
|
+
| 'nitrograph'
|
|
862
|
+
| 'sepolia'
|
|
863
|
+
| 'optimism_sepolia'
|
|
864
|
+
| 'arbitrumSepolia'
|
|
865
|
+
| 'goerli'
|
|
866
|
+
| 'optimism_goerli'
|
|
867
|
+
| 'arbitrumGoerli'
|
|
868
|
+
| 'basecamp'
|
|
869
|
+
| 'somnia'
|
|
870
|
+
| 'zkverify'
|
|
871
|
+
| 'polkadot'
|
|
872
|
+
| 'kusama'
|
|
873
|
+
| 'flow_cadence';
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
877
|
+
*/
|
|
878
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Array of liquidity pools associated with the rule.
|
|
882
|
+
*/
|
|
883
|
+
pools?: Array<Liquidity.Pool>;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Protocol of the liquidity pool.
|
|
887
|
+
*/
|
|
888
|
+
protocol?: string;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export namespace Liquidity {
|
|
892
|
+
export interface Pool {
|
|
893
|
+
/**
|
|
894
|
+
* Unique identifier of the liquidity pool.
|
|
895
|
+
*/
|
|
896
|
+
id: string;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface Range {
|
|
901
|
+
/**
|
|
902
|
+
* Reward amount for this range.
|
|
903
|
+
*/
|
|
904
|
+
amount: number;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* End value of the range.
|
|
908
|
+
*/
|
|
909
|
+
endRange: number;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Start value of the range.
|
|
913
|
+
*/
|
|
914
|
+
startRange: number;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* ID of the loyalty badge for this range.
|
|
918
|
+
*/
|
|
919
|
+
loyaltyBadgeId?: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Amount of the loyalty multiplier for this range.
|
|
923
|
+
*/
|
|
924
|
+
loyaltyMultiplierAmount?: number;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Object defining referral requirements.
|
|
929
|
+
*/
|
|
930
|
+
export interface ReferralRequirements {
|
|
931
|
+
/**
|
|
932
|
+
* Flag indicating if achieving points is required.
|
|
933
|
+
*/
|
|
934
|
+
achievePoints?: boolean | null;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Flag indicating if completing the profile is required.
|
|
938
|
+
*/
|
|
939
|
+
completeProfile?: boolean | null;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Flag indicating if connecting Discord is required.
|
|
943
|
+
*/
|
|
944
|
+
connectDiscord?: boolean | null;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Flag indicating if connecting email is required.
|
|
948
|
+
*/
|
|
949
|
+
connectEmail?: boolean | null;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Flag indicating if connecting Twitter is required.
|
|
953
|
+
*/
|
|
954
|
+
connectTwitter?: boolean | null;
|
|
955
|
+
|
|
956
|
+
points?: ReferralRequirements.Points | null;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export namespace ReferralRequirements {
|
|
960
|
+
export interface Points {
|
|
961
|
+
/**
|
|
962
|
+
* Points required for referral.
|
|
963
|
+
*/
|
|
964
|
+
amount?: number | null;
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* ID of the loyalty currency for referral.
|
|
968
|
+
*/
|
|
969
|
+
loyaltyCurrecyId?: string | null;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Object containing details of the associated smart contract.
|
|
975
|
+
*/
|
|
976
|
+
export interface SmartContract {
|
|
977
|
+
/**
|
|
978
|
+
* Mapping of addresses for the smart contract.
|
|
979
|
+
*/
|
|
980
|
+
addressMapping?: string | null;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Object containing details of the amount multiplier from the event.
|
|
984
|
+
*/
|
|
985
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* ID of the smart contract.
|
|
989
|
+
*/
|
|
990
|
+
contractId?: string | null;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Criteria to evaluate the smart contract event.
|
|
994
|
+
*/
|
|
995
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Event emitted by the smart contract.
|
|
999
|
+
*/
|
|
1000
|
+
event?: string | null;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Array of parameters for the smart contract.
|
|
1004
|
+
*/
|
|
1005
|
+
params?: Array<SmartContract.Param> | null;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Type of the smart contract interaction.
|
|
1009
|
+
*/
|
|
1010
|
+
type?: 'function' | 'event' | null;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export namespace SmartContract {
|
|
1014
|
+
/**
|
|
1015
|
+
* Object containing details of the amount multiplier from the event.
|
|
1016
|
+
*/
|
|
1017
|
+
export interface AmountMultiplier {
|
|
1018
|
+
/**
|
|
1019
|
+
* Mapping of the value for the smart contract.
|
|
1020
|
+
*/
|
|
1021
|
+
valueMapping?: string | null;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
export interface Param {
|
|
1025
|
+
/**
|
|
1026
|
+
* Condition to check for the parameter.
|
|
1027
|
+
*/
|
|
1028
|
+
condition?: string | null;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Name of the smart contract parameter.
|
|
1032
|
+
*/
|
|
1033
|
+
name?: string | null;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Value of the parameter.
|
|
1037
|
+
*/
|
|
1038
|
+
value?: string | null;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export interface SnapshotProposal {
|
|
1043
|
+
/**
|
|
1044
|
+
* ID of the snapshot proposal.
|
|
1045
|
+
*/
|
|
1046
|
+
id: string;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Space associated with the snapshot proposal.
|
|
1050
|
+
*/
|
|
1051
|
+
space: string;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
export interface StreakArray {
|
|
1055
|
+
/**
|
|
1056
|
+
* Reward amount for achieving the streak milestone.
|
|
1057
|
+
*/
|
|
1058
|
+
streakAmount: number;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Milestone required to achieve the streak.
|
|
1062
|
+
*/
|
|
1063
|
+
streakMilestone: number;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Metadata for swap loyalty rules
|
|
1068
|
+
*/
|
|
1069
|
+
export interface Swap {
|
|
1070
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1071
|
+
|
|
1072
|
+
relayReferrerId?: string;
|
|
1073
|
+
|
|
1074
|
+
requireCrossChainSwap?: boolean;
|
|
1075
|
+
|
|
1076
|
+
swappedToChain?: 'any' | number | string;
|
|
1077
|
+
|
|
1078
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
1079
|
+
|
|
1080
|
+
tokenMode?: 'any' | 'specific';
|
|
1081
|
+
|
|
1082
|
+
trackTokenAmount?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export namespace Swap {
|
|
1086
|
+
export interface SwappedToToken {
|
|
1087
|
+
address: string;
|
|
1088
|
+
|
|
1089
|
+
chainId: string;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
144
1093
|
}
|
|
145
1094
|
|
|
146
1095
|
/**
|
|
@@ -155,7 +1104,7 @@ export namespace RuleEditListResponse {
|
|
|
155
1104
|
/**
|
|
156
1105
|
* Amount associated with the loyalty rule
|
|
157
1106
|
*/
|
|
158
|
-
amount: number;
|
|
1107
|
+
amount: number | null;
|
|
159
1108
|
|
|
160
1109
|
/**
|
|
161
1110
|
* Timestamp when the loyalty rule was created
|
|
@@ -167,16 +1116,41 @@ export namespace RuleEditListResponse {
|
|
|
167
1116
|
*/
|
|
168
1117
|
deletedAt: string | null;
|
|
169
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* Description of the loyalty rule
|
|
1121
|
+
*/
|
|
1122
|
+
description: string;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* End time of the loyalty rule
|
|
1126
|
+
*/
|
|
1127
|
+
endTime: string | null;
|
|
1128
|
+
|
|
170
1129
|
/**
|
|
171
1130
|
* Frequency of the loyalty rule
|
|
172
1131
|
*/
|
|
173
1132
|
frequency: string;
|
|
174
1133
|
|
|
1134
|
+
/**
|
|
1135
|
+
* Name of the loyalty rule
|
|
1136
|
+
*/
|
|
1137
|
+
name: string;
|
|
1138
|
+
|
|
175
1139
|
/**
|
|
176
1140
|
* Unique identifier for the organization
|
|
177
1141
|
*/
|
|
178
1142
|
organizationId: string;
|
|
179
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* Type of the reward
|
|
1146
|
+
*/
|
|
1147
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Start time of the loyalty rule
|
|
1151
|
+
*/
|
|
1152
|
+
startTime: string | null;
|
|
1153
|
+
|
|
180
1154
|
/**
|
|
181
1155
|
* Type of the loyalty rule
|
|
182
1156
|
*/
|
|
@@ -197,131 +1171,981 @@ export namespace RuleEditListResponse {
|
|
|
197
1171
|
*/
|
|
198
1172
|
collectionAddress?: string;
|
|
199
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* URL of the media associated with the loyalty rule
|
|
1176
|
+
*/
|
|
1177
|
+
mediaUrl?: string | null;
|
|
1178
|
+
|
|
200
1179
|
/**
|
|
201
1180
|
* Optional metadata for the loyalty rule
|
|
202
1181
|
*/
|
|
203
|
-
metadata?:
|
|
1182
|
+
metadata?: { [key: string]: PreviousData.Metadata };
|
|
204
1183
|
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
1184
|
|
|
208
|
-
export
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
1185
|
+
export namespace PreviousData {
|
|
1186
|
+
export interface Metadata {
|
|
1187
|
+
/**
|
|
1188
|
+
* Number of tokens per batch.
|
|
1189
|
+
*/
|
|
1190
|
+
batchSize?: number | null;
|
|
213
1191
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* Text displayed on the action button.
|
|
1194
|
+
*/
|
|
1195
|
+
buttonText?: string | null;
|
|
218
1196
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
1197
|
+
/**
|
|
1198
|
+
* Flag indicating if commenting is required.
|
|
1199
|
+
*/
|
|
1200
|
+
checkComment?: boolean | null;
|
|
223
1201
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1202
|
+
/**
|
|
1203
|
+
* Flag indicating if liking the post is required.
|
|
1204
|
+
*/
|
|
1205
|
+
checkLike?: boolean | null;
|
|
228
1206
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1207
|
+
/**
|
|
1208
|
+
* Flag indicating if reposting is required.
|
|
1209
|
+
*/
|
|
1210
|
+
checkRepost?: boolean | null;
|
|
233
1211
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
1212
|
+
/**
|
|
1213
|
+
* Text to check in the Twitter post, username, or bio.
|
|
1214
|
+
*/
|
|
1215
|
+
checkText?: string | Array<string> | null;
|
|
238
1216
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
1217
|
+
/**
|
|
1218
|
+
* Array of collections associated with the rule.
|
|
1219
|
+
*/
|
|
1220
|
+
collection?: Array<Metadata.Collection>;
|
|
243
1221
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
1222
|
+
/**
|
|
1223
|
+
* Conditions for completing the profile.
|
|
1224
|
+
*/
|
|
1225
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
248
1226
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1227
|
+
/**
|
|
1228
|
+
* Description of the external rule condition (only for external rules)
|
|
1229
|
+
*/
|
|
1230
|
+
conditionDescription?: string;
|
|
253
1231
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Object containing details for the call-to-action.
|
|
1234
|
+
*/
|
|
1235
|
+
cta?: Metadata.Cta | null;
|
|
259
1236
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
export interface Data {
|
|
265
|
-
/**
|
|
266
|
-
* Unique identifier for the loyalty rule
|
|
267
|
-
*/
|
|
268
|
-
id: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* API key for custom rewards integration.
|
|
1239
|
+
*/
|
|
1240
|
+
customRewardsApiKey?: string;
|
|
269
1241
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
1242
|
+
/**
|
|
1243
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
1244
|
+
*/
|
|
1245
|
+
directRpc?: boolean;
|
|
274
1246
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* Array of Discord servers, channels, and roles to join.
|
|
1249
|
+
*/
|
|
1250
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
279
1251
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
1252
|
+
/**
|
|
1253
|
+
* Array of drip quests required to complete the rule.
|
|
1254
|
+
*/
|
|
1255
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
284
1256
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
1257
|
+
/**
|
|
1258
|
+
* Flag indicating whether joining Discord servers is required.
|
|
1259
|
+
*/
|
|
1260
|
+
enableJoinDiscordServers?: boolean | null;
|
|
289
1261
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
1262
|
+
/**
|
|
1263
|
+
* Flag indicating whether streaks are enabled.
|
|
1264
|
+
*/
|
|
1265
|
+
enableStreaks?: boolean | null;
|
|
294
1266
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
1267
|
+
/**
|
|
1268
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
1269
|
+
*/
|
|
1270
|
+
enableVerifiedMultiplier?: boolean;
|
|
299
1271
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
1272
|
+
/**
|
|
1273
|
+
* Type of ERC20 token for the loyalty rule.
|
|
1274
|
+
*/
|
|
1275
|
+
erc20Type?: 'erc20' | 'native';
|
|
304
1276
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
1277
|
+
/**
|
|
1278
|
+
* Fill source of the order for the token sale
|
|
1279
|
+
*/
|
|
1280
|
+
fillSource?: string;
|
|
309
1281
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
1282
|
+
/**
|
|
1283
|
+
* Percentage reward given to a user for their first referral.
|
|
1284
|
+
*/
|
|
1285
|
+
firstReferralReward?: number | null;
|
|
314
1286
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
1287
|
+
/**
|
|
1288
|
+
* URL of the GitHub repository to check for star.
|
|
1289
|
+
*/
|
|
1290
|
+
githubRepoUrl?: string | null;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Flag indicating whether the fill source is included.
|
|
1294
|
+
*/
|
|
1295
|
+
hasFillSource?: boolean;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Indicates if the item has never been sold.
|
|
1299
|
+
*/
|
|
1300
|
+
hasNeverSold?: boolean;
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Indicates if the full royalty has been paid for items.
|
|
1304
|
+
*/
|
|
1305
|
+
hasPaidFullRoyalty?: boolean;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Flag indicating if the sale currency is included.
|
|
1309
|
+
*/
|
|
1310
|
+
hasSaleCurrency?: boolean;
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Indicates if the user has a verified Twitter account.
|
|
1314
|
+
*/
|
|
1315
|
+
hasVerifiedTwitter?: boolean;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* URL of the image associated with the rule.
|
|
1319
|
+
*/
|
|
1320
|
+
imageUrl?: string | null;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
1324
|
+
*/
|
|
1325
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
1329
|
+
*/
|
|
1330
|
+
isMultiplierApplied?: boolean;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Flag indicating if the rule is restricted to new users.
|
|
1334
|
+
*/
|
|
1335
|
+
isRestrictedToNewUsers?: boolean;
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Flag indicating if rewards are applied retroactively.
|
|
1339
|
+
*/
|
|
1340
|
+
isRetroactive?: boolean | null;
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
1344
|
+
*/
|
|
1345
|
+
isTokenHoldMultiplier?: boolean;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Optional link associated with the metadata.
|
|
1349
|
+
*/
|
|
1350
|
+
link?: string | null;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Liquidity pool details.
|
|
1354
|
+
*/
|
|
1355
|
+
liquidity?: Metadata.Liquidity;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Maximum quantity constraint for token holding.
|
|
1359
|
+
*/
|
|
1360
|
+
maxQty?: number | null;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Minimum quantity constraint for token holding.
|
|
1364
|
+
*/
|
|
1365
|
+
minQty?: number | null;
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
1369
|
+
*/
|
|
1370
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Flag indicating whether to include only known users.
|
|
1374
|
+
*/
|
|
1375
|
+
onlyKnownUsers?: boolean;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Flag indicating whether to include only native tokens.
|
|
1379
|
+
*/
|
|
1380
|
+
onlyNative?: boolean;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Flag indicating whether to include only non-listed items.
|
|
1384
|
+
*/
|
|
1385
|
+
onlyNonListed?: boolean;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Indicates if only existing users are rewarded.
|
|
1389
|
+
*/
|
|
1390
|
+
onlyRewardExistingUser?: boolean;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* give points for only one token ownership per contract
|
|
1394
|
+
*/
|
|
1395
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Promotional code associated with the rule.
|
|
1399
|
+
*/
|
|
1400
|
+
promoCode?: string;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* URL of the CSV file containing promo codes.
|
|
1404
|
+
*/
|
|
1405
|
+
promoCodeCsvUrl?: string;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Numbers of the promotional code to be generated.
|
|
1409
|
+
*/
|
|
1410
|
+
promoCodeLength?: number | null;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Type of the promotional code.
|
|
1414
|
+
*/
|
|
1415
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Array defining ranges and corresponding rewards.
|
|
1419
|
+
*/
|
|
1420
|
+
range?: Array<Metadata.Range>;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Object defining referral requirements.
|
|
1424
|
+
*/
|
|
1425
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Lump sum reward given to a referrer.
|
|
1429
|
+
*/
|
|
1430
|
+
referrerReward?: number | null;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Loyalty currency ID of the referrer reward.
|
|
1434
|
+
*/
|
|
1435
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* Flag indicating if the post link is required.
|
|
1439
|
+
*/
|
|
1440
|
+
requirePostLink?: boolean | null;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Flag indicating if media metadata is required.
|
|
1444
|
+
*/
|
|
1445
|
+
requirePostMediaLink?: boolean | null;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
1449
|
+
*/
|
|
1450
|
+
rewardBadgePerRange?: boolean;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
1454
|
+
*/
|
|
1455
|
+
rewardByBatch?: boolean | null;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Criteria to evaluate the reward.
|
|
1459
|
+
*/
|
|
1460
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Flag indicating if the reward is rewarded per action.
|
|
1464
|
+
*/
|
|
1465
|
+
rewardPerAction?: boolean | null;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Flag indicating if rewards are given per impression.
|
|
1469
|
+
*/
|
|
1470
|
+
rewardPerImpression?: boolean | null;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1474
|
+
* instead of count.
|
|
1475
|
+
*/
|
|
1476
|
+
rewardPerValue?: boolean;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
1480
|
+
*/
|
|
1481
|
+
royaltyAddress?: string;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Royalty percentage of the item.
|
|
1485
|
+
*/
|
|
1486
|
+
royaltyPercentage?: number;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Currency associated with sales.
|
|
1490
|
+
*/
|
|
1491
|
+
saleCurrency?: string;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Percentage reward given for a second-level referral.
|
|
1495
|
+
*/
|
|
1496
|
+
secondReferralReward?: number | null;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* Flag indicating if the multiplier is skipped.
|
|
1500
|
+
*/
|
|
1501
|
+
skipMultiplier?: boolean | null;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Object containing details of the associated smart contract.
|
|
1505
|
+
*/
|
|
1506
|
+
smartContract?: Metadata.SmartContract;
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Array of snapshot proposals for the rule.
|
|
1510
|
+
*/
|
|
1511
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Social media platform associated with the rule.
|
|
1515
|
+
*/
|
|
1516
|
+
socialPlatform?:
|
|
1517
|
+
| 'Custom'
|
|
1518
|
+
| 'Discord'
|
|
1519
|
+
| 'EpicGames'
|
|
1520
|
+
| 'Instagram'
|
|
1521
|
+
| 'Steam'
|
|
1522
|
+
| 'Telegram'
|
|
1523
|
+
| 'TikTok'
|
|
1524
|
+
| 'Twitch'
|
|
1525
|
+
| 'X(Twitter)'
|
|
1526
|
+
| 'YouTube'
|
|
1527
|
+
| 'Google'
|
|
1528
|
+
| 'GitHub'
|
|
1529
|
+
| null;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* URL of the social platform's logo.
|
|
1533
|
+
*/
|
|
1534
|
+
socialPlatformLogo?: string | null;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Name of the social platform.
|
|
1538
|
+
*/
|
|
1539
|
+
socialPlatformName?: string | null;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* ID of the Steam app.
|
|
1543
|
+
*/
|
|
1544
|
+
steamAppId?: string | null;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Array of streak milestones and corresponding rewards.
|
|
1548
|
+
*/
|
|
1549
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Metadata for swap loyalty rules
|
|
1553
|
+
*/
|
|
1554
|
+
swap?: Metadata.Swap;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* ID of the Telegram channel.
|
|
1558
|
+
*/
|
|
1559
|
+
telegramChannelId?: string | null;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Time delay in seconds to verify actions.
|
|
1563
|
+
*/
|
|
1564
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Flag indicating if all contracts are tracked.
|
|
1568
|
+
*/
|
|
1569
|
+
trackAllContracts?: boolean | null;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
1573
|
+
* completed once the progress is 100%.
|
|
1574
|
+
*/
|
|
1575
|
+
trackProgress?: boolean | null;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* URL of the associated Twitter account.
|
|
1579
|
+
*/
|
|
1580
|
+
twitterAccountUrl?: string;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Hashtag associated with the Twitter post.
|
|
1584
|
+
*/
|
|
1585
|
+
twitterHashtag?: string;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* URL of the associated Twitter post.
|
|
1589
|
+
*/
|
|
1590
|
+
twitterPostUrl?: string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Unique identifier of the Twitter user.
|
|
1594
|
+
*/
|
|
1595
|
+
twitterUserId?: string;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Twitter username of the user.
|
|
1599
|
+
*/
|
|
1600
|
+
twitterUsername?: string;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Minimum length of the verification text.
|
|
1604
|
+
*/
|
|
1605
|
+
verificationTextMinimumLength?: number | null;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Multiplier applied to rewards for verified users.
|
|
1609
|
+
*/
|
|
1610
|
+
verifiedMultiplier?: number | null;
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Placeholder text for verification input fields.
|
|
1614
|
+
*/
|
|
1615
|
+
verifyPlaceHolderText?: string | null;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Type of wallet associated with the rule.
|
|
1619
|
+
*/
|
|
1620
|
+
walletType?:
|
|
1621
|
+
| 'evm'
|
|
1622
|
+
| 'solana'
|
|
1623
|
+
| 'imx'
|
|
1624
|
+
| 'sui'
|
|
1625
|
+
| 'ton'
|
|
1626
|
+
| 'cosmos'
|
|
1627
|
+
| 'ultra'
|
|
1628
|
+
| 'agw'
|
|
1629
|
+
| 'flow_cadence'
|
|
1630
|
+
| 'substrate'
|
|
1631
|
+
| null;
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* ID of the Youtube channel.
|
|
1635
|
+
*/
|
|
1636
|
+
youtubeChannelId?: string | null;
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* ID of the Youtube video.
|
|
1640
|
+
*/
|
|
1641
|
+
youtubeVideoId?: string | null;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export namespace Metadata {
|
|
1645
|
+
export interface Collection {
|
|
1646
|
+
/**
|
|
1647
|
+
* Blockchain address of the collection.
|
|
1648
|
+
*/
|
|
1649
|
+
address?: string;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Multiplier applied to the rewards for this collection.
|
|
1653
|
+
*/
|
|
1654
|
+
multiplier?: number;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Blockchain network of the collection.
|
|
1658
|
+
*/
|
|
1659
|
+
network?:
|
|
1660
|
+
| 'abstract'
|
|
1661
|
+
| 'abstractTestnet'
|
|
1662
|
+
| 'apechain'
|
|
1663
|
+
| 'arbitrum'
|
|
1664
|
+
| 'avalanche'
|
|
1665
|
+
| 'avalancheFuji'
|
|
1666
|
+
| 'base'
|
|
1667
|
+
| 'baseSepolia'
|
|
1668
|
+
| 'berachain'
|
|
1669
|
+
| 'berachainArtio'
|
|
1670
|
+
| 'berachainBepolia'
|
|
1671
|
+
| 'binance'
|
|
1672
|
+
| 'bscTestnet'
|
|
1673
|
+
| 'campTestnet'
|
|
1674
|
+
| 'fantom'
|
|
1675
|
+
| 'fantomTestnet'
|
|
1676
|
+
| 'flowMainnet'
|
|
1677
|
+
| 'mainnet'
|
|
1678
|
+
| 'nexusTestnet'
|
|
1679
|
+
| 'optimism'
|
|
1680
|
+
| 'polygon'
|
|
1681
|
+
| 'polygon_mumbai'
|
|
1682
|
+
| 'skaleNebula'
|
|
1683
|
+
| 'skaleEuropa'
|
|
1684
|
+
| 'skaleCalypso'
|
|
1685
|
+
| 'solana'
|
|
1686
|
+
| 'sophon'
|
|
1687
|
+
| 'sophonTestnet'
|
|
1688
|
+
| 'sui'
|
|
1689
|
+
| 'superseed'
|
|
1690
|
+
| 'superseedSepolia'
|
|
1691
|
+
| 'vanar'
|
|
1692
|
+
| 'xai'
|
|
1693
|
+
| 'zksync'
|
|
1694
|
+
| 'coti'
|
|
1695
|
+
| 'cotiTestnet'
|
|
1696
|
+
| 'morph'
|
|
1697
|
+
| 'morphTestnet'
|
|
1698
|
+
| 'morphHolesky'
|
|
1699
|
+
| 'ultra'
|
|
1700
|
+
| 'ultraTestnet'
|
|
1701
|
+
| 'nitrograph'
|
|
1702
|
+
| 'sepolia'
|
|
1703
|
+
| 'optimism_sepolia'
|
|
1704
|
+
| 'arbitrumSepolia'
|
|
1705
|
+
| 'goerli'
|
|
1706
|
+
| 'optimism_goerli'
|
|
1707
|
+
| 'arbitrumGoerli'
|
|
1708
|
+
| 'basecamp'
|
|
1709
|
+
| 'somnia'
|
|
1710
|
+
| 'zkverify'
|
|
1711
|
+
| 'polkadot'
|
|
1712
|
+
| 'kusama'
|
|
1713
|
+
| 'flow_cadence';
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* Object containing details for the call-to-action.
|
|
1718
|
+
*/
|
|
1719
|
+
export interface Cta {
|
|
1720
|
+
/**
|
|
1721
|
+
* Link for the call-to-action.
|
|
1722
|
+
*/
|
|
1723
|
+
href?: string | null;
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Label for the call-to-action.
|
|
1727
|
+
*/
|
|
1728
|
+
label?: string | null;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
export interface DiscordServersToJoin {
|
|
1732
|
+
/**
|
|
1733
|
+
* ID of the Discord server to join.
|
|
1734
|
+
*/
|
|
1735
|
+
id?: string;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Array of Discord channels to join.
|
|
1739
|
+
*/
|
|
1740
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Array of roles to assign in the Discord server.
|
|
1744
|
+
*/
|
|
1745
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export namespace DiscordServersToJoin {
|
|
1749
|
+
export interface Channel {
|
|
1750
|
+
/**
|
|
1751
|
+
* ID of the Discord channel.
|
|
1752
|
+
*/
|
|
1753
|
+
id?: string;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Array of emojis used in the channel.
|
|
1757
|
+
*/
|
|
1758
|
+
emojis?: Array<Channel.Emoji>;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* Phrase of text to be present in the discord message
|
|
1762
|
+
*/
|
|
1763
|
+
text?: string;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
export namespace Channel {
|
|
1767
|
+
export interface Emoji {
|
|
1768
|
+
/**
|
|
1769
|
+
* ID of the emoji used in the channel.
|
|
1770
|
+
*/
|
|
1771
|
+
id?: string;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
export interface Role {
|
|
1776
|
+
/**
|
|
1777
|
+
* ID of the role in the Discord server.
|
|
1778
|
+
*/
|
|
1779
|
+
id: string;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
export interface DripQuestsToComplete {
|
|
1784
|
+
/**
|
|
1785
|
+
* ID of the drip quest to complete.
|
|
1786
|
+
*/
|
|
1787
|
+
id: string;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Liquidity pool details.
|
|
1792
|
+
*/
|
|
1793
|
+
export interface Liquidity {
|
|
1794
|
+
/**
|
|
1795
|
+
* Calculation type of the liquidity pool.
|
|
1796
|
+
*/
|
|
1797
|
+
calculationType?: 'fixed' | 'custom';
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
1801
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
1802
|
+
* USD.
|
|
1803
|
+
*/
|
|
1804
|
+
customFunction?: string;
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* Liquidity provided per day in USD
|
|
1808
|
+
*/
|
|
1809
|
+
liquidityPerDay?: number;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Blockchain network of the liquidity pool.
|
|
1813
|
+
*/
|
|
1814
|
+
network?:
|
|
1815
|
+
| 'abstract'
|
|
1816
|
+
| 'abstractTestnet'
|
|
1817
|
+
| 'apechain'
|
|
1818
|
+
| 'arbitrum'
|
|
1819
|
+
| 'avalanche'
|
|
1820
|
+
| 'avalancheFuji'
|
|
1821
|
+
| 'base'
|
|
1822
|
+
| 'baseSepolia'
|
|
1823
|
+
| 'berachain'
|
|
1824
|
+
| 'berachainArtio'
|
|
1825
|
+
| 'berachainBepolia'
|
|
1826
|
+
| 'binance'
|
|
1827
|
+
| 'bscTestnet'
|
|
1828
|
+
| 'campTestnet'
|
|
1829
|
+
| 'fantom'
|
|
1830
|
+
| 'fantomTestnet'
|
|
1831
|
+
| 'flowMainnet'
|
|
1832
|
+
| 'mainnet'
|
|
1833
|
+
| 'nexusTestnet'
|
|
1834
|
+
| 'optimism'
|
|
1835
|
+
| 'polygon'
|
|
1836
|
+
| 'polygon_mumbai'
|
|
1837
|
+
| 'skaleNebula'
|
|
1838
|
+
| 'skaleEuropa'
|
|
1839
|
+
| 'skaleCalypso'
|
|
1840
|
+
| 'solana'
|
|
1841
|
+
| 'sophon'
|
|
1842
|
+
| 'sophonTestnet'
|
|
1843
|
+
| 'sui'
|
|
1844
|
+
| 'superseed'
|
|
1845
|
+
| 'superseedSepolia'
|
|
1846
|
+
| 'vanar'
|
|
1847
|
+
| 'xai'
|
|
1848
|
+
| 'zksync'
|
|
1849
|
+
| 'coti'
|
|
1850
|
+
| 'cotiTestnet'
|
|
1851
|
+
| 'morph'
|
|
1852
|
+
| 'morphTestnet'
|
|
1853
|
+
| 'morphHolesky'
|
|
1854
|
+
| 'ultra'
|
|
1855
|
+
| 'ultraTestnet'
|
|
1856
|
+
| 'nitrograph'
|
|
1857
|
+
| 'sepolia'
|
|
1858
|
+
| 'optimism_sepolia'
|
|
1859
|
+
| 'arbitrumSepolia'
|
|
1860
|
+
| 'goerli'
|
|
1861
|
+
| 'optimism_goerli'
|
|
1862
|
+
| 'arbitrumGoerli'
|
|
1863
|
+
| 'basecamp'
|
|
1864
|
+
| 'somnia'
|
|
1865
|
+
| 'zkverify'
|
|
1866
|
+
| 'polkadot'
|
|
1867
|
+
| 'kusama'
|
|
1868
|
+
| 'flow_cadence';
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1872
|
+
*/
|
|
1873
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Array of liquidity pools associated with the rule.
|
|
1877
|
+
*/
|
|
1878
|
+
pools?: Array<Liquidity.Pool>;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Protocol of the liquidity pool.
|
|
1882
|
+
*/
|
|
1883
|
+
protocol?: string;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export namespace Liquidity {
|
|
1887
|
+
export interface Pool {
|
|
1888
|
+
/**
|
|
1889
|
+
* Unique identifier of the liquidity pool.
|
|
1890
|
+
*/
|
|
1891
|
+
id: string;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export interface Range {
|
|
1896
|
+
/**
|
|
1897
|
+
* Reward amount for this range.
|
|
1898
|
+
*/
|
|
1899
|
+
amount: number;
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* End value of the range.
|
|
1903
|
+
*/
|
|
1904
|
+
endRange: number;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Start value of the range.
|
|
1908
|
+
*/
|
|
1909
|
+
startRange: number;
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* ID of the loyalty badge for this range.
|
|
1913
|
+
*/
|
|
1914
|
+
loyaltyBadgeId?: string;
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* Amount of the loyalty multiplier for this range.
|
|
1918
|
+
*/
|
|
1919
|
+
loyaltyMultiplierAmount?: number;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Object defining referral requirements.
|
|
1924
|
+
*/
|
|
1925
|
+
export interface ReferralRequirements {
|
|
1926
|
+
/**
|
|
1927
|
+
* Flag indicating if achieving points is required.
|
|
1928
|
+
*/
|
|
1929
|
+
achievePoints?: boolean | null;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Flag indicating if completing the profile is required.
|
|
1933
|
+
*/
|
|
1934
|
+
completeProfile?: boolean | null;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Flag indicating if connecting Discord is required.
|
|
1938
|
+
*/
|
|
1939
|
+
connectDiscord?: boolean | null;
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* Flag indicating if connecting email is required.
|
|
1943
|
+
*/
|
|
1944
|
+
connectEmail?: boolean | null;
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* Flag indicating if connecting Twitter is required.
|
|
1948
|
+
*/
|
|
1949
|
+
connectTwitter?: boolean | null;
|
|
1950
|
+
|
|
1951
|
+
points?: ReferralRequirements.Points | null;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
export namespace ReferralRequirements {
|
|
1955
|
+
export interface Points {
|
|
1956
|
+
/**
|
|
1957
|
+
* Points required for referral.
|
|
1958
|
+
*/
|
|
1959
|
+
amount?: number | null;
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* ID of the loyalty currency for referral.
|
|
1963
|
+
*/
|
|
1964
|
+
loyaltyCurrecyId?: string | null;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* Object containing details of the associated smart contract.
|
|
1970
|
+
*/
|
|
1971
|
+
export interface SmartContract {
|
|
1972
|
+
/**
|
|
1973
|
+
* Mapping of addresses for the smart contract.
|
|
1974
|
+
*/
|
|
1975
|
+
addressMapping?: string | null;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* Object containing details of the amount multiplier from the event.
|
|
1979
|
+
*/
|
|
1980
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* ID of the smart contract.
|
|
1984
|
+
*/
|
|
1985
|
+
contractId?: string | null;
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Criteria to evaluate the smart contract event.
|
|
1989
|
+
*/
|
|
1990
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* Event emitted by the smart contract.
|
|
1994
|
+
*/
|
|
1995
|
+
event?: string | null;
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
* Array of parameters for the smart contract.
|
|
1999
|
+
*/
|
|
2000
|
+
params?: Array<SmartContract.Param> | null;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Type of the smart contract interaction.
|
|
2004
|
+
*/
|
|
2005
|
+
type?: 'function' | 'event' | null;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export namespace SmartContract {
|
|
2009
|
+
/**
|
|
2010
|
+
* Object containing details of the amount multiplier from the event.
|
|
2011
|
+
*/
|
|
2012
|
+
export interface AmountMultiplier {
|
|
2013
|
+
/**
|
|
2014
|
+
* Mapping of the value for the smart contract.
|
|
2015
|
+
*/
|
|
2016
|
+
valueMapping?: string | null;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
export interface Param {
|
|
2020
|
+
/**
|
|
2021
|
+
* Condition to check for the parameter.
|
|
2022
|
+
*/
|
|
2023
|
+
condition?: string | null;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Name of the smart contract parameter.
|
|
2027
|
+
*/
|
|
2028
|
+
name?: string | null;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Value of the parameter.
|
|
2032
|
+
*/
|
|
2033
|
+
value?: string | null;
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
export interface SnapshotProposal {
|
|
2038
|
+
/**
|
|
2039
|
+
* ID of the snapshot proposal.
|
|
2040
|
+
*/
|
|
2041
|
+
id: string;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Space associated with the snapshot proposal.
|
|
2045
|
+
*/
|
|
2046
|
+
space: string;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
export interface StreakArray {
|
|
2050
|
+
/**
|
|
2051
|
+
* Reward amount for achieving the streak milestone.
|
|
2052
|
+
*/
|
|
2053
|
+
streakAmount: number;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Milestone required to achieve the streak.
|
|
2057
|
+
*/
|
|
2058
|
+
streakMilestone: number;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Metadata for swap loyalty rules
|
|
2063
|
+
*/
|
|
2064
|
+
export interface Swap {
|
|
2065
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
2066
|
+
|
|
2067
|
+
relayReferrerId?: string;
|
|
2068
|
+
|
|
2069
|
+
requireCrossChainSwap?: boolean;
|
|
2070
|
+
|
|
2071
|
+
swappedToChain?: 'any' | number | string;
|
|
2072
|
+
|
|
2073
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
2074
|
+
|
|
2075
|
+
tokenMode?: 'any' | 'specific';
|
|
2076
|
+
|
|
2077
|
+
trackTokenAmount?: boolean;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
export namespace Swap {
|
|
2081
|
+
export interface SwappedToToken {
|
|
2082
|
+
address: string;
|
|
2083
|
+
|
|
2084
|
+
chainId: string;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
319
2089
|
}
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
export interface RuleEditRestoreResponse {
|
|
2093
|
+
/**
|
|
2094
|
+
* Unique identifier for the rule edit
|
|
2095
|
+
*/
|
|
2096
|
+
id: string;
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Type of action that was made on the rule
|
|
2100
|
+
*/
|
|
2101
|
+
action: 'create' | 'update' | 'delete' | 'restore';
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Data that was changed on the rule
|
|
2105
|
+
*/
|
|
2106
|
+
data: RuleEditRestoreResponse.Data;
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* Timestamp of when the rule edit was made
|
|
2110
|
+
*/
|
|
2111
|
+
editedAt: string;
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* User ID of the user who made the edit
|
|
2115
|
+
*/
|
|
2116
|
+
editedByUserId: string;
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* ID of the loyalty rule
|
|
2120
|
+
*/
|
|
2121
|
+
loyaltyRuleId: string;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Unique identifier for the organization
|
|
2125
|
+
*/
|
|
2126
|
+
organizationId: string;
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* Unique identifier for the website
|
|
2130
|
+
*/
|
|
2131
|
+
websiteId: string;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Comment that was made on the edit
|
|
2135
|
+
*/
|
|
2136
|
+
comment?: string;
|
|
320
2137
|
|
|
321
2138
|
/**
|
|
322
2139
|
* Previous data of the rule before the edit
|
|
323
2140
|
*/
|
|
324
|
-
|
|
2141
|
+
previousData?: RuleEditRestoreResponse.PreviousData;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
export namespace RuleEditRestoreResponse {
|
|
2145
|
+
/**
|
|
2146
|
+
* Data that was changed on the rule
|
|
2147
|
+
*/
|
|
2148
|
+
export interface Data {
|
|
325
2149
|
/**
|
|
326
2150
|
* Unique identifier for the loyalty rule
|
|
327
2151
|
*/
|
|
@@ -330,7 +2154,7 @@ export namespace RuleEditRestoreResponse {
|
|
|
330
2154
|
/**
|
|
331
2155
|
* Amount associated with the loyalty rule
|
|
332
2156
|
*/
|
|
333
|
-
amount: number;
|
|
2157
|
+
amount: number | null;
|
|
334
2158
|
|
|
335
2159
|
/**
|
|
336
2160
|
* Timestamp when the loyalty rule was created
|
|
@@ -342,16 +2166,41 @@ export namespace RuleEditRestoreResponse {
|
|
|
342
2166
|
*/
|
|
343
2167
|
deletedAt: string | null;
|
|
344
2168
|
|
|
2169
|
+
/**
|
|
2170
|
+
* Description of the loyalty rule
|
|
2171
|
+
*/
|
|
2172
|
+
description: string;
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* End time of the loyalty rule
|
|
2176
|
+
*/
|
|
2177
|
+
endTime: string | null;
|
|
2178
|
+
|
|
345
2179
|
/**
|
|
346
2180
|
* Frequency of the loyalty rule
|
|
347
2181
|
*/
|
|
348
2182
|
frequency: string;
|
|
349
2183
|
|
|
2184
|
+
/**
|
|
2185
|
+
* Name of the loyalty rule
|
|
2186
|
+
*/
|
|
2187
|
+
name: string;
|
|
2188
|
+
|
|
350
2189
|
/**
|
|
351
2190
|
* Unique identifier for the organization
|
|
352
2191
|
*/
|
|
353
2192
|
organizationId: string;
|
|
354
2193
|
|
|
2194
|
+
/**
|
|
2195
|
+
* Type of the reward
|
|
2196
|
+
*/
|
|
2197
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* Start time of the loyalty rule
|
|
2201
|
+
*/
|
|
2202
|
+
startTime: string | null;
|
|
2203
|
+
|
|
355
2204
|
/**
|
|
356
2205
|
* Type of the loyalty rule
|
|
357
2206
|
*/
|
|
@@ -372,10 +2221,1915 @@ export namespace RuleEditRestoreResponse {
|
|
|
372
2221
|
*/
|
|
373
2222
|
collectionAddress?: string;
|
|
374
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* URL of the media associated with the loyalty rule
|
|
2226
|
+
*/
|
|
2227
|
+
mediaUrl?: string | null;
|
|
2228
|
+
|
|
375
2229
|
/**
|
|
376
2230
|
* Optional metadata for the loyalty rule
|
|
377
2231
|
*/
|
|
378
|
-
metadata?:
|
|
2232
|
+
metadata?: { [key: string]: Data.Metadata };
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
export namespace Data {
|
|
2236
|
+
export interface Metadata {
|
|
2237
|
+
/**
|
|
2238
|
+
* Number of tokens per batch.
|
|
2239
|
+
*/
|
|
2240
|
+
batchSize?: number | null;
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Text displayed on the action button.
|
|
2244
|
+
*/
|
|
2245
|
+
buttonText?: string | null;
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* Flag indicating if commenting is required.
|
|
2249
|
+
*/
|
|
2250
|
+
checkComment?: boolean | null;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Flag indicating if liking the post is required.
|
|
2254
|
+
*/
|
|
2255
|
+
checkLike?: boolean | null;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Flag indicating if reposting is required.
|
|
2259
|
+
*/
|
|
2260
|
+
checkRepost?: boolean | null;
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* Text to check in the Twitter post, username, or bio.
|
|
2264
|
+
*/
|
|
2265
|
+
checkText?: string | Array<string> | null;
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* Array of collections associated with the rule.
|
|
2269
|
+
*/
|
|
2270
|
+
collection?: Array<Metadata.Collection>;
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* Conditions for completing the profile.
|
|
2274
|
+
*/
|
|
2275
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Description of the external rule condition (only for external rules)
|
|
2279
|
+
*/
|
|
2280
|
+
conditionDescription?: string;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Object containing details for the call-to-action.
|
|
2284
|
+
*/
|
|
2285
|
+
cta?: Metadata.Cta | null;
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* API key for custom rewards integration.
|
|
2289
|
+
*/
|
|
2290
|
+
customRewardsApiKey?: string;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
2294
|
+
*/
|
|
2295
|
+
directRpc?: boolean;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Array of Discord servers, channels, and roles to join.
|
|
2299
|
+
*/
|
|
2300
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Array of drip quests required to complete the rule.
|
|
2304
|
+
*/
|
|
2305
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Flag indicating whether joining Discord servers is required.
|
|
2309
|
+
*/
|
|
2310
|
+
enableJoinDiscordServers?: boolean | null;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Flag indicating whether streaks are enabled.
|
|
2314
|
+
*/
|
|
2315
|
+
enableStreaks?: boolean | null;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
2319
|
+
*/
|
|
2320
|
+
enableVerifiedMultiplier?: boolean;
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Type of ERC20 token for the loyalty rule.
|
|
2324
|
+
*/
|
|
2325
|
+
erc20Type?: 'erc20' | 'native';
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Fill source of the order for the token sale
|
|
2329
|
+
*/
|
|
2330
|
+
fillSource?: string;
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* Percentage reward given to a user for their first referral.
|
|
2334
|
+
*/
|
|
2335
|
+
firstReferralReward?: number | null;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* URL of the GitHub repository to check for star.
|
|
2339
|
+
*/
|
|
2340
|
+
githubRepoUrl?: string | null;
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* Flag indicating whether the fill source is included.
|
|
2344
|
+
*/
|
|
2345
|
+
hasFillSource?: boolean;
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* Indicates if the item has never been sold.
|
|
2349
|
+
*/
|
|
2350
|
+
hasNeverSold?: boolean;
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Indicates if the full royalty has been paid for items.
|
|
2354
|
+
*/
|
|
2355
|
+
hasPaidFullRoyalty?: boolean;
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* Flag indicating if the sale currency is included.
|
|
2359
|
+
*/
|
|
2360
|
+
hasSaleCurrency?: boolean;
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* Indicates if the user has a verified Twitter account.
|
|
2364
|
+
*/
|
|
2365
|
+
hasVerifiedTwitter?: boolean;
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* URL of the image associated with the rule.
|
|
2369
|
+
*/
|
|
2370
|
+
imageUrl?: string | null;
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
2374
|
+
*/
|
|
2375
|
+
isCheckInOnEveryTxn?: boolean;
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
2379
|
+
*/
|
|
2380
|
+
isMultiplierApplied?: boolean;
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* Flag indicating if the rule is restricted to new users.
|
|
2384
|
+
*/
|
|
2385
|
+
isRestrictedToNewUsers?: boolean;
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* Flag indicating if rewards are applied retroactively.
|
|
2389
|
+
*/
|
|
2390
|
+
isRetroactive?: boolean | null;
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
2394
|
+
*/
|
|
2395
|
+
isTokenHoldMultiplier?: boolean;
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Optional link associated with the metadata.
|
|
2399
|
+
*/
|
|
2400
|
+
link?: string | null;
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Liquidity pool details.
|
|
2404
|
+
*/
|
|
2405
|
+
liquidity?: Metadata.Liquidity;
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Maximum quantity constraint for token holding.
|
|
2409
|
+
*/
|
|
2410
|
+
maxQty?: number | null;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* Minimum quantity constraint for token holding.
|
|
2414
|
+
*/
|
|
2415
|
+
minQty?: number | null;
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
2419
|
+
*/
|
|
2420
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* Flag indicating whether to include only known users.
|
|
2424
|
+
*/
|
|
2425
|
+
onlyKnownUsers?: boolean;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Flag indicating whether to include only native tokens.
|
|
2429
|
+
*/
|
|
2430
|
+
onlyNative?: boolean;
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Flag indicating whether to include only non-listed items.
|
|
2434
|
+
*/
|
|
2435
|
+
onlyNonListed?: boolean;
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* Indicates if only existing users are rewarded.
|
|
2439
|
+
*/
|
|
2440
|
+
onlyRewardExistingUser?: boolean;
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* give points for only one token ownership per contract
|
|
2444
|
+
*/
|
|
2445
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* Promotional code associated with the rule.
|
|
2449
|
+
*/
|
|
2450
|
+
promoCode?: string;
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* URL of the CSV file containing promo codes.
|
|
2454
|
+
*/
|
|
2455
|
+
promoCodeCsvUrl?: string;
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Numbers of the promotional code to be generated.
|
|
2459
|
+
*/
|
|
2460
|
+
promoCodeLength?: number | null;
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Type of the promotional code.
|
|
2464
|
+
*/
|
|
2465
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Array defining ranges and corresponding rewards.
|
|
2469
|
+
*/
|
|
2470
|
+
range?: Array<Metadata.Range>;
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Object defining referral requirements.
|
|
2474
|
+
*/
|
|
2475
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Lump sum reward given to a referrer.
|
|
2479
|
+
*/
|
|
2480
|
+
referrerReward?: number | null;
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* Loyalty currency ID of the referrer reward.
|
|
2484
|
+
*/
|
|
2485
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Flag indicating if the post link is required.
|
|
2489
|
+
*/
|
|
2490
|
+
requirePostLink?: boolean | null;
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* Flag indicating if media metadata is required.
|
|
2494
|
+
*/
|
|
2495
|
+
requirePostMediaLink?: boolean | null;
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
2499
|
+
*/
|
|
2500
|
+
rewardBadgePerRange?: boolean;
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
2504
|
+
*/
|
|
2505
|
+
rewardByBatch?: boolean | null;
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Criteria to evaluate the reward.
|
|
2509
|
+
*/
|
|
2510
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Flag indicating if the reward is rewarded per action.
|
|
2514
|
+
*/
|
|
2515
|
+
rewardPerAction?: boolean | null;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Flag indicating if rewards are given per impression.
|
|
2519
|
+
*/
|
|
2520
|
+
rewardPerImpression?: boolean | null;
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
2524
|
+
* instead of count.
|
|
2525
|
+
*/
|
|
2526
|
+
rewardPerValue?: boolean;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
2530
|
+
*/
|
|
2531
|
+
royaltyAddress?: string;
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* Royalty percentage of the item.
|
|
2535
|
+
*/
|
|
2536
|
+
royaltyPercentage?: number;
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* Currency associated with sales.
|
|
2540
|
+
*/
|
|
2541
|
+
saleCurrency?: string;
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* Percentage reward given for a second-level referral.
|
|
2545
|
+
*/
|
|
2546
|
+
secondReferralReward?: number | null;
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Flag indicating if the multiplier is skipped.
|
|
2550
|
+
*/
|
|
2551
|
+
skipMultiplier?: boolean | null;
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* Object containing details of the associated smart contract.
|
|
2555
|
+
*/
|
|
2556
|
+
smartContract?: Metadata.SmartContract;
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Array of snapshot proposals for the rule.
|
|
2560
|
+
*/
|
|
2561
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Social media platform associated with the rule.
|
|
2565
|
+
*/
|
|
2566
|
+
socialPlatform?:
|
|
2567
|
+
| 'Custom'
|
|
2568
|
+
| 'Discord'
|
|
2569
|
+
| 'EpicGames'
|
|
2570
|
+
| 'Instagram'
|
|
2571
|
+
| 'Steam'
|
|
2572
|
+
| 'Telegram'
|
|
2573
|
+
| 'TikTok'
|
|
2574
|
+
| 'Twitch'
|
|
2575
|
+
| 'X(Twitter)'
|
|
2576
|
+
| 'YouTube'
|
|
2577
|
+
| 'Google'
|
|
2578
|
+
| 'GitHub'
|
|
2579
|
+
| null;
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* URL of the social platform's logo.
|
|
2583
|
+
*/
|
|
2584
|
+
socialPlatformLogo?: string | null;
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* Name of the social platform.
|
|
2588
|
+
*/
|
|
2589
|
+
socialPlatformName?: string | null;
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* ID of the Steam app.
|
|
2593
|
+
*/
|
|
2594
|
+
steamAppId?: string | null;
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* Array of streak milestones and corresponding rewards.
|
|
2598
|
+
*/
|
|
2599
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* Metadata for swap loyalty rules
|
|
2603
|
+
*/
|
|
2604
|
+
swap?: Metadata.Swap;
|
|
2605
|
+
|
|
2606
|
+
/**
|
|
2607
|
+
* ID of the Telegram channel.
|
|
2608
|
+
*/
|
|
2609
|
+
telegramChannelId?: string | null;
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* Time delay in seconds to verify actions.
|
|
2613
|
+
*/
|
|
2614
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Flag indicating if all contracts are tracked.
|
|
2618
|
+
*/
|
|
2619
|
+
trackAllContracts?: boolean | null;
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2623
|
+
* completed once the progress is 100%.
|
|
2624
|
+
*/
|
|
2625
|
+
trackProgress?: boolean | null;
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* URL of the associated Twitter account.
|
|
2629
|
+
*/
|
|
2630
|
+
twitterAccountUrl?: string;
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* Hashtag associated with the Twitter post.
|
|
2634
|
+
*/
|
|
2635
|
+
twitterHashtag?: string;
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* URL of the associated Twitter post.
|
|
2639
|
+
*/
|
|
2640
|
+
twitterPostUrl?: string;
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* Unique identifier of the Twitter user.
|
|
2644
|
+
*/
|
|
2645
|
+
twitterUserId?: string;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Twitter username of the user.
|
|
2649
|
+
*/
|
|
2650
|
+
twitterUsername?: string;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* Minimum length of the verification text.
|
|
2654
|
+
*/
|
|
2655
|
+
verificationTextMinimumLength?: number | null;
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* Multiplier applied to rewards for verified users.
|
|
2659
|
+
*/
|
|
2660
|
+
verifiedMultiplier?: number | null;
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* Placeholder text for verification input fields.
|
|
2664
|
+
*/
|
|
2665
|
+
verifyPlaceHolderText?: string | null;
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* Type of wallet associated with the rule.
|
|
2669
|
+
*/
|
|
2670
|
+
walletType?:
|
|
2671
|
+
| 'evm'
|
|
2672
|
+
| 'solana'
|
|
2673
|
+
| 'imx'
|
|
2674
|
+
| 'sui'
|
|
2675
|
+
| 'ton'
|
|
2676
|
+
| 'cosmos'
|
|
2677
|
+
| 'ultra'
|
|
2678
|
+
| 'agw'
|
|
2679
|
+
| 'flow_cadence'
|
|
2680
|
+
| 'substrate'
|
|
2681
|
+
| null;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* ID of the Youtube channel.
|
|
2685
|
+
*/
|
|
2686
|
+
youtubeChannelId?: string | null;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* ID of the Youtube video.
|
|
2690
|
+
*/
|
|
2691
|
+
youtubeVideoId?: string | null;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
export namespace Metadata {
|
|
2695
|
+
export interface Collection {
|
|
2696
|
+
/**
|
|
2697
|
+
* Blockchain address of the collection.
|
|
2698
|
+
*/
|
|
2699
|
+
address?: string;
|
|
2700
|
+
|
|
2701
|
+
/**
|
|
2702
|
+
* Multiplier applied to the rewards for this collection.
|
|
2703
|
+
*/
|
|
2704
|
+
multiplier?: number;
|
|
2705
|
+
|
|
2706
|
+
/**
|
|
2707
|
+
* Blockchain network of the collection.
|
|
2708
|
+
*/
|
|
2709
|
+
network?:
|
|
2710
|
+
| 'abstract'
|
|
2711
|
+
| 'abstractTestnet'
|
|
2712
|
+
| 'apechain'
|
|
2713
|
+
| 'arbitrum'
|
|
2714
|
+
| 'avalanche'
|
|
2715
|
+
| 'avalancheFuji'
|
|
2716
|
+
| 'base'
|
|
2717
|
+
| 'baseSepolia'
|
|
2718
|
+
| 'berachain'
|
|
2719
|
+
| 'berachainArtio'
|
|
2720
|
+
| 'berachainBepolia'
|
|
2721
|
+
| 'binance'
|
|
2722
|
+
| 'bscTestnet'
|
|
2723
|
+
| 'campTestnet'
|
|
2724
|
+
| 'fantom'
|
|
2725
|
+
| 'fantomTestnet'
|
|
2726
|
+
| 'flowMainnet'
|
|
2727
|
+
| 'mainnet'
|
|
2728
|
+
| 'nexusTestnet'
|
|
2729
|
+
| 'optimism'
|
|
2730
|
+
| 'polygon'
|
|
2731
|
+
| 'polygon_mumbai'
|
|
2732
|
+
| 'skaleNebula'
|
|
2733
|
+
| 'skaleEuropa'
|
|
2734
|
+
| 'skaleCalypso'
|
|
2735
|
+
| 'solana'
|
|
2736
|
+
| 'sophon'
|
|
2737
|
+
| 'sophonTestnet'
|
|
2738
|
+
| 'sui'
|
|
2739
|
+
| 'superseed'
|
|
2740
|
+
| 'superseedSepolia'
|
|
2741
|
+
| 'vanar'
|
|
2742
|
+
| 'xai'
|
|
2743
|
+
| 'zksync'
|
|
2744
|
+
| 'coti'
|
|
2745
|
+
| 'cotiTestnet'
|
|
2746
|
+
| 'morph'
|
|
2747
|
+
| 'morphTestnet'
|
|
2748
|
+
| 'morphHolesky'
|
|
2749
|
+
| 'ultra'
|
|
2750
|
+
| 'ultraTestnet'
|
|
2751
|
+
| 'nitrograph'
|
|
2752
|
+
| 'sepolia'
|
|
2753
|
+
| 'optimism_sepolia'
|
|
2754
|
+
| 'arbitrumSepolia'
|
|
2755
|
+
| 'goerli'
|
|
2756
|
+
| 'optimism_goerli'
|
|
2757
|
+
| 'arbitrumGoerli'
|
|
2758
|
+
| 'basecamp'
|
|
2759
|
+
| 'somnia'
|
|
2760
|
+
| 'zkverify'
|
|
2761
|
+
| 'polkadot'
|
|
2762
|
+
| 'kusama'
|
|
2763
|
+
| 'flow_cadence';
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
/**
|
|
2767
|
+
* Object containing details for the call-to-action.
|
|
2768
|
+
*/
|
|
2769
|
+
export interface Cta {
|
|
2770
|
+
/**
|
|
2771
|
+
* Link for the call-to-action.
|
|
2772
|
+
*/
|
|
2773
|
+
href?: string | null;
|
|
2774
|
+
|
|
2775
|
+
/**
|
|
2776
|
+
* Label for the call-to-action.
|
|
2777
|
+
*/
|
|
2778
|
+
label?: string | null;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
export interface DiscordServersToJoin {
|
|
2782
|
+
/**
|
|
2783
|
+
* ID of the Discord server to join.
|
|
2784
|
+
*/
|
|
2785
|
+
id?: string;
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* Array of Discord channels to join.
|
|
2789
|
+
*/
|
|
2790
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* Array of roles to assign in the Discord server.
|
|
2794
|
+
*/
|
|
2795
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
export namespace DiscordServersToJoin {
|
|
2799
|
+
export interface Channel {
|
|
2800
|
+
/**
|
|
2801
|
+
* ID of the Discord channel.
|
|
2802
|
+
*/
|
|
2803
|
+
id?: string;
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* Array of emojis used in the channel.
|
|
2807
|
+
*/
|
|
2808
|
+
emojis?: Array<Channel.Emoji>;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* Phrase of text to be present in the discord message
|
|
2812
|
+
*/
|
|
2813
|
+
text?: string;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
export namespace Channel {
|
|
2817
|
+
export interface Emoji {
|
|
2818
|
+
/**
|
|
2819
|
+
* ID of the emoji used in the channel.
|
|
2820
|
+
*/
|
|
2821
|
+
id?: string;
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
export interface Role {
|
|
2826
|
+
/**
|
|
2827
|
+
* ID of the role in the Discord server.
|
|
2828
|
+
*/
|
|
2829
|
+
id: string;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
export interface DripQuestsToComplete {
|
|
2834
|
+
/**
|
|
2835
|
+
* ID of the drip quest to complete.
|
|
2836
|
+
*/
|
|
2837
|
+
id: string;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Liquidity pool details.
|
|
2842
|
+
*/
|
|
2843
|
+
export interface Liquidity {
|
|
2844
|
+
/**
|
|
2845
|
+
* Calculation type of the liquidity pool.
|
|
2846
|
+
*/
|
|
2847
|
+
calculationType?: 'fixed' | 'custom';
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
2851
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
2852
|
+
* USD.
|
|
2853
|
+
*/
|
|
2854
|
+
customFunction?: string;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* Liquidity provided per day in USD
|
|
2858
|
+
*/
|
|
2859
|
+
liquidityPerDay?: number;
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* Blockchain network of the liquidity pool.
|
|
2863
|
+
*/
|
|
2864
|
+
network?:
|
|
2865
|
+
| 'abstract'
|
|
2866
|
+
| 'abstractTestnet'
|
|
2867
|
+
| 'apechain'
|
|
2868
|
+
| 'arbitrum'
|
|
2869
|
+
| 'avalanche'
|
|
2870
|
+
| 'avalancheFuji'
|
|
2871
|
+
| 'base'
|
|
2872
|
+
| 'baseSepolia'
|
|
2873
|
+
| 'berachain'
|
|
2874
|
+
| 'berachainArtio'
|
|
2875
|
+
| 'berachainBepolia'
|
|
2876
|
+
| 'binance'
|
|
2877
|
+
| 'bscTestnet'
|
|
2878
|
+
| 'campTestnet'
|
|
2879
|
+
| 'fantom'
|
|
2880
|
+
| 'fantomTestnet'
|
|
2881
|
+
| 'flowMainnet'
|
|
2882
|
+
| 'mainnet'
|
|
2883
|
+
| 'nexusTestnet'
|
|
2884
|
+
| 'optimism'
|
|
2885
|
+
| 'polygon'
|
|
2886
|
+
| 'polygon_mumbai'
|
|
2887
|
+
| 'skaleNebula'
|
|
2888
|
+
| 'skaleEuropa'
|
|
2889
|
+
| 'skaleCalypso'
|
|
2890
|
+
| 'solana'
|
|
2891
|
+
| 'sophon'
|
|
2892
|
+
| 'sophonTestnet'
|
|
2893
|
+
| 'sui'
|
|
2894
|
+
| 'superseed'
|
|
2895
|
+
| 'superseedSepolia'
|
|
2896
|
+
| 'vanar'
|
|
2897
|
+
| 'xai'
|
|
2898
|
+
| 'zksync'
|
|
2899
|
+
| 'coti'
|
|
2900
|
+
| 'cotiTestnet'
|
|
2901
|
+
| 'morph'
|
|
2902
|
+
| 'morphTestnet'
|
|
2903
|
+
| 'morphHolesky'
|
|
2904
|
+
| 'ultra'
|
|
2905
|
+
| 'ultraTestnet'
|
|
2906
|
+
| 'nitrograph'
|
|
2907
|
+
| 'sepolia'
|
|
2908
|
+
| 'optimism_sepolia'
|
|
2909
|
+
| 'arbitrumSepolia'
|
|
2910
|
+
| 'goerli'
|
|
2911
|
+
| 'optimism_goerli'
|
|
2912
|
+
| 'arbitrumGoerli'
|
|
2913
|
+
| 'basecamp'
|
|
2914
|
+
| 'somnia'
|
|
2915
|
+
| 'zkverify'
|
|
2916
|
+
| 'polkadot'
|
|
2917
|
+
| 'kusama'
|
|
2918
|
+
| 'flow_cadence';
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
2922
|
+
*/
|
|
2923
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Array of liquidity pools associated with the rule.
|
|
2927
|
+
*/
|
|
2928
|
+
pools?: Array<Liquidity.Pool>;
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Protocol of the liquidity pool.
|
|
2932
|
+
*/
|
|
2933
|
+
protocol?: string;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
export namespace Liquidity {
|
|
2937
|
+
export interface Pool {
|
|
2938
|
+
/**
|
|
2939
|
+
* Unique identifier of the liquidity pool.
|
|
2940
|
+
*/
|
|
2941
|
+
id: string;
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
export interface Range {
|
|
2946
|
+
/**
|
|
2947
|
+
* Reward amount for this range.
|
|
2948
|
+
*/
|
|
2949
|
+
amount: number;
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* End value of the range.
|
|
2953
|
+
*/
|
|
2954
|
+
endRange: number;
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
* Start value of the range.
|
|
2958
|
+
*/
|
|
2959
|
+
startRange: number;
|
|
2960
|
+
|
|
2961
|
+
/**
|
|
2962
|
+
* ID of the loyalty badge for this range.
|
|
2963
|
+
*/
|
|
2964
|
+
loyaltyBadgeId?: string;
|
|
2965
|
+
|
|
2966
|
+
/**
|
|
2967
|
+
* Amount of the loyalty multiplier for this range.
|
|
2968
|
+
*/
|
|
2969
|
+
loyaltyMultiplierAmount?: number;
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* Object defining referral requirements.
|
|
2974
|
+
*/
|
|
2975
|
+
export interface ReferralRequirements {
|
|
2976
|
+
/**
|
|
2977
|
+
* Flag indicating if achieving points is required.
|
|
2978
|
+
*/
|
|
2979
|
+
achievePoints?: boolean | null;
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* Flag indicating if completing the profile is required.
|
|
2983
|
+
*/
|
|
2984
|
+
completeProfile?: boolean | null;
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* Flag indicating if connecting Discord is required.
|
|
2988
|
+
*/
|
|
2989
|
+
connectDiscord?: boolean | null;
|
|
2990
|
+
|
|
2991
|
+
/**
|
|
2992
|
+
* Flag indicating if connecting email is required.
|
|
2993
|
+
*/
|
|
2994
|
+
connectEmail?: boolean | null;
|
|
2995
|
+
|
|
2996
|
+
/**
|
|
2997
|
+
* Flag indicating if connecting Twitter is required.
|
|
2998
|
+
*/
|
|
2999
|
+
connectTwitter?: boolean | null;
|
|
3000
|
+
|
|
3001
|
+
points?: ReferralRequirements.Points | null;
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
export namespace ReferralRequirements {
|
|
3005
|
+
export interface Points {
|
|
3006
|
+
/**
|
|
3007
|
+
* Points required for referral.
|
|
3008
|
+
*/
|
|
3009
|
+
amount?: number | null;
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* ID of the loyalty currency for referral.
|
|
3013
|
+
*/
|
|
3014
|
+
loyaltyCurrecyId?: string | null;
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Object containing details of the associated smart contract.
|
|
3020
|
+
*/
|
|
3021
|
+
export interface SmartContract {
|
|
3022
|
+
/**
|
|
3023
|
+
* Mapping of addresses for the smart contract.
|
|
3024
|
+
*/
|
|
3025
|
+
addressMapping?: string | null;
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Object containing details of the amount multiplier from the event.
|
|
3029
|
+
*/
|
|
3030
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* ID of the smart contract.
|
|
3034
|
+
*/
|
|
3035
|
+
contractId?: string | null;
|
|
3036
|
+
|
|
3037
|
+
/**
|
|
3038
|
+
* Criteria to evaluate the smart contract event.
|
|
3039
|
+
*/
|
|
3040
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* Event emitted by the smart contract.
|
|
3044
|
+
*/
|
|
3045
|
+
event?: string | null;
|
|
3046
|
+
|
|
3047
|
+
/**
|
|
3048
|
+
* Array of parameters for the smart contract.
|
|
3049
|
+
*/
|
|
3050
|
+
params?: Array<SmartContract.Param> | null;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* Type of the smart contract interaction.
|
|
3054
|
+
*/
|
|
3055
|
+
type?: 'function' | 'event' | null;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
export namespace SmartContract {
|
|
3059
|
+
/**
|
|
3060
|
+
* Object containing details of the amount multiplier from the event.
|
|
3061
|
+
*/
|
|
3062
|
+
export interface AmountMultiplier {
|
|
3063
|
+
/**
|
|
3064
|
+
* Mapping of the value for the smart contract.
|
|
3065
|
+
*/
|
|
3066
|
+
valueMapping?: string | null;
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
export interface Param {
|
|
3070
|
+
/**
|
|
3071
|
+
* Condition to check for the parameter.
|
|
3072
|
+
*/
|
|
3073
|
+
condition?: string | null;
|
|
3074
|
+
|
|
3075
|
+
/**
|
|
3076
|
+
* Name of the smart contract parameter.
|
|
3077
|
+
*/
|
|
3078
|
+
name?: string | null;
|
|
3079
|
+
|
|
3080
|
+
/**
|
|
3081
|
+
* Value of the parameter.
|
|
3082
|
+
*/
|
|
3083
|
+
value?: string | null;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
export interface SnapshotProposal {
|
|
3088
|
+
/**
|
|
3089
|
+
* ID of the snapshot proposal.
|
|
3090
|
+
*/
|
|
3091
|
+
id: string;
|
|
3092
|
+
|
|
3093
|
+
/**
|
|
3094
|
+
* Space associated with the snapshot proposal.
|
|
3095
|
+
*/
|
|
3096
|
+
space: string;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
export interface StreakArray {
|
|
3100
|
+
/**
|
|
3101
|
+
* Reward amount for achieving the streak milestone.
|
|
3102
|
+
*/
|
|
3103
|
+
streakAmount: number;
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* Milestone required to achieve the streak.
|
|
3107
|
+
*/
|
|
3108
|
+
streakMilestone: number;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Metadata for swap loyalty rules
|
|
3113
|
+
*/
|
|
3114
|
+
export interface Swap {
|
|
3115
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
3116
|
+
|
|
3117
|
+
relayReferrerId?: string;
|
|
3118
|
+
|
|
3119
|
+
requireCrossChainSwap?: boolean;
|
|
3120
|
+
|
|
3121
|
+
swappedToChain?: 'any' | number | string;
|
|
3122
|
+
|
|
3123
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
3124
|
+
|
|
3125
|
+
tokenMode?: 'any' | 'specific';
|
|
3126
|
+
|
|
3127
|
+
trackTokenAmount?: boolean;
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
export namespace Swap {
|
|
3131
|
+
export interface SwappedToToken {
|
|
3132
|
+
address: string;
|
|
3133
|
+
|
|
3134
|
+
chainId: string;
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* Previous data of the rule before the edit
|
|
3142
|
+
*/
|
|
3143
|
+
export interface PreviousData {
|
|
3144
|
+
/**
|
|
3145
|
+
* Unique identifier for the loyalty rule
|
|
3146
|
+
*/
|
|
3147
|
+
id: string;
|
|
3148
|
+
|
|
3149
|
+
/**
|
|
3150
|
+
* Amount associated with the loyalty rule
|
|
3151
|
+
*/
|
|
3152
|
+
amount: number | null;
|
|
3153
|
+
|
|
3154
|
+
/**
|
|
3155
|
+
* Timestamp when the loyalty rule was created
|
|
3156
|
+
*/
|
|
3157
|
+
createdAt: string;
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
3161
|
+
*/
|
|
3162
|
+
deletedAt: string | null;
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* Description of the loyalty rule
|
|
3166
|
+
*/
|
|
3167
|
+
description: string;
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* End time of the loyalty rule
|
|
3171
|
+
*/
|
|
3172
|
+
endTime: string | null;
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Frequency of the loyalty rule
|
|
3176
|
+
*/
|
|
3177
|
+
frequency: string;
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
* Name of the loyalty rule
|
|
3181
|
+
*/
|
|
3182
|
+
name: string;
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* Unique identifier for the organization
|
|
3186
|
+
*/
|
|
3187
|
+
organizationId: string;
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Type of the reward
|
|
3191
|
+
*/
|
|
3192
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* Start time of the loyalty rule
|
|
3196
|
+
*/
|
|
3197
|
+
startTime: string | null;
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* Type of the loyalty rule
|
|
3201
|
+
*/
|
|
3202
|
+
type: string;
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Timestamp when the loyalty rule was last updated
|
|
3206
|
+
*/
|
|
3207
|
+
updatedAt: string;
|
|
3208
|
+
|
|
3209
|
+
/**
|
|
3210
|
+
* Unique identifier for the website
|
|
3211
|
+
*/
|
|
3212
|
+
websiteId: string;
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* Optional address of the collection
|
|
3216
|
+
*/
|
|
3217
|
+
collectionAddress?: string;
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* URL of the media associated with the loyalty rule
|
|
3221
|
+
*/
|
|
3222
|
+
mediaUrl?: string | null;
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* Optional metadata for the loyalty rule
|
|
3226
|
+
*/
|
|
3227
|
+
metadata?: { [key: string]: PreviousData.Metadata };
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
export namespace PreviousData {
|
|
3231
|
+
export interface Metadata {
|
|
3232
|
+
/**
|
|
3233
|
+
* Number of tokens per batch.
|
|
3234
|
+
*/
|
|
3235
|
+
batchSize?: number | null;
|
|
3236
|
+
|
|
3237
|
+
/**
|
|
3238
|
+
* Text displayed on the action button.
|
|
3239
|
+
*/
|
|
3240
|
+
buttonText?: string | null;
|
|
3241
|
+
|
|
3242
|
+
/**
|
|
3243
|
+
* Flag indicating if commenting is required.
|
|
3244
|
+
*/
|
|
3245
|
+
checkComment?: boolean | null;
|
|
3246
|
+
|
|
3247
|
+
/**
|
|
3248
|
+
* Flag indicating if liking the post is required.
|
|
3249
|
+
*/
|
|
3250
|
+
checkLike?: boolean | null;
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* Flag indicating if reposting is required.
|
|
3254
|
+
*/
|
|
3255
|
+
checkRepost?: boolean | null;
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* Text to check in the Twitter post, username, or bio.
|
|
3259
|
+
*/
|
|
3260
|
+
checkText?: string | Array<string> | null;
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* Array of collections associated with the rule.
|
|
3264
|
+
*/
|
|
3265
|
+
collection?: Array<Metadata.Collection>;
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* Conditions for completing the profile.
|
|
3269
|
+
*/
|
|
3270
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
3271
|
+
|
|
3272
|
+
/**
|
|
3273
|
+
* Description of the external rule condition (only for external rules)
|
|
3274
|
+
*/
|
|
3275
|
+
conditionDescription?: string;
|
|
3276
|
+
|
|
3277
|
+
/**
|
|
3278
|
+
* Object containing details for the call-to-action.
|
|
3279
|
+
*/
|
|
3280
|
+
cta?: Metadata.Cta | null;
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* API key for custom rewards integration.
|
|
3284
|
+
*/
|
|
3285
|
+
customRewardsApiKey?: string;
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
3289
|
+
*/
|
|
3290
|
+
directRpc?: boolean;
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Array of Discord servers, channels, and roles to join.
|
|
3294
|
+
*/
|
|
3295
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* Array of drip quests required to complete the rule.
|
|
3299
|
+
*/
|
|
3300
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* Flag indicating whether joining Discord servers is required.
|
|
3304
|
+
*/
|
|
3305
|
+
enableJoinDiscordServers?: boolean | null;
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* Flag indicating whether streaks are enabled.
|
|
3309
|
+
*/
|
|
3310
|
+
enableStreaks?: boolean | null;
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
3314
|
+
*/
|
|
3315
|
+
enableVerifiedMultiplier?: boolean;
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* Type of ERC20 token for the loyalty rule.
|
|
3319
|
+
*/
|
|
3320
|
+
erc20Type?: 'erc20' | 'native';
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* Fill source of the order for the token sale
|
|
3324
|
+
*/
|
|
3325
|
+
fillSource?: string;
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* Percentage reward given to a user for their first referral.
|
|
3329
|
+
*/
|
|
3330
|
+
firstReferralReward?: number | null;
|
|
3331
|
+
|
|
3332
|
+
/**
|
|
3333
|
+
* URL of the GitHub repository to check for star.
|
|
3334
|
+
*/
|
|
3335
|
+
githubRepoUrl?: string | null;
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Flag indicating whether the fill source is included.
|
|
3339
|
+
*/
|
|
3340
|
+
hasFillSource?: boolean;
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Indicates if the item has never been sold.
|
|
3344
|
+
*/
|
|
3345
|
+
hasNeverSold?: boolean;
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* Indicates if the full royalty has been paid for items.
|
|
3349
|
+
*/
|
|
3350
|
+
hasPaidFullRoyalty?: boolean;
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* Flag indicating if the sale currency is included.
|
|
3354
|
+
*/
|
|
3355
|
+
hasSaleCurrency?: boolean;
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* Indicates if the user has a verified Twitter account.
|
|
3359
|
+
*/
|
|
3360
|
+
hasVerifiedTwitter?: boolean;
|
|
3361
|
+
|
|
3362
|
+
/**
|
|
3363
|
+
* URL of the image associated with the rule.
|
|
3364
|
+
*/
|
|
3365
|
+
imageUrl?: string | null;
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
3369
|
+
*/
|
|
3370
|
+
isCheckInOnEveryTxn?: boolean;
|
|
3371
|
+
|
|
3372
|
+
/**
|
|
3373
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
3374
|
+
*/
|
|
3375
|
+
isMultiplierApplied?: boolean;
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* Flag indicating if the rule is restricted to new users.
|
|
3379
|
+
*/
|
|
3380
|
+
isRestrictedToNewUsers?: boolean;
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* Flag indicating if rewards are applied retroactively.
|
|
3384
|
+
*/
|
|
3385
|
+
isRetroactive?: boolean | null;
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
3389
|
+
*/
|
|
3390
|
+
isTokenHoldMultiplier?: boolean;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Optional link associated with the metadata.
|
|
3394
|
+
*/
|
|
3395
|
+
link?: string | null;
|
|
3396
|
+
|
|
3397
|
+
/**
|
|
3398
|
+
* Liquidity pool details.
|
|
3399
|
+
*/
|
|
3400
|
+
liquidity?: Metadata.Liquidity;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Maximum quantity constraint for token holding.
|
|
3404
|
+
*/
|
|
3405
|
+
maxQty?: number | null;
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* Minimum quantity constraint for token holding.
|
|
3409
|
+
*/
|
|
3410
|
+
minQty?: number | null;
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
3414
|
+
*/
|
|
3415
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
3416
|
+
|
|
3417
|
+
/**
|
|
3418
|
+
* Flag indicating whether to include only known users.
|
|
3419
|
+
*/
|
|
3420
|
+
onlyKnownUsers?: boolean;
|
|
3421
|
+
|
|
3422
|
+
/**
|
|
3423
|
+
* Flag indicating whether to include only native tokens.
|
|
3424
|
+
*/
|
|
3425
|
+
onlyNative?: boolean;
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* Flag indicating whether to include only non-listed items.
|
|
3429
|
+
*/
|
|
3430
|
+
onlyNonListed?: boolean;
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Indicates if only existing users are rewarded.
|
|
3434
|
+
*/
|
|
3435
|
+
onlyRewardExistingUser?: boolean;
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* give points for only one token ownership per contract
|
|
3439
|
+
*/
|
|
3440
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
3441
|
+
|
|
3442
|
+
/**
|
|
3443
|
+
* Promotional code associated with the rule.
|
|
3444
|
+
*/
|
|
3445
|
+
promoCode?: string;
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* URL of the CSV file containing promo codes.
|
|
3449
|
+
*/
|
|
3450
|
+
promoCodeCsvUrl?: string;
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* Numbers of the promotional code to be generated.
|
|
3454
|
+
*/
|
|
3455
|
+
promoCodeLength?: number | null;
|
|
3456
|
+
|
|
3457
|
+
/**
|
|
3458
|
+
* Type of the promotional code.
|
|
3459
|
+
*/
|
|
3460
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* Array defining ranges and corresponding rewards.
|
|
3464
|
+
*/
|
|
3465
|
+
range?: Array<Metadata.Range>;
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* Object defining referral requirements.
|
|
3469
|
+
*/
|
|
3470
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* Lump sum reward given to a referrer.
|
|
3474
|
+
*/
|
|
3475
|
+
referrerReward?: number | null;
|
|
3476
|
+
|
|
3477
|
+
/**
|
|
3478
|
+
* Loyalty currency ID of the referrer reward.
|
|
3479
|
+
*/
|
|
3480
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* Flag indicating if the post link is required.
|
|
3484
|
+
*/
|
|
3485
|
+
requirePostLink?: boolean | null;
|
|
3486
|
+
|
|
3487
|
+
/**
|
|
3488
|
+
* Flag indicating if media metadata is required.
|
|
3489
|
+
*/
|
|
3490
|
+
requirePostMediaLink?: boolean | null;
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
3494
|
+
*/
|
|
3495
|
+
rewardBadgePerRange?: boolean;
|
|
3496
|
+
|
|
3497
|
+
/**
|
|
3498
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
3499
|
+
*/
|
|
3500
|
+
rewardByBatch?: boolean | null;
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* Criteria to evaluate the reward.
|
|
3504
|
+
*/
|
|
3505
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
3506
|
+
|
|
3507
|
+
/**
|
|
3508
|
+
* Flag indicating if the reward is rewarded per action.
|
|
3509
|
+
*/
|
|
3510
|
+
rewardPerAction?: boolean | null;
|
|
3511
|
+
|
|
3512
|
+
/**
|
|
3513
|
+
* Flag indicating if rewards are given per impression.
|
|
3514
|
+
*/
|
|
3515
|
+
rewardPerImpression?: boolean | null;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
3519
|
+
* instead of count.
|
|
3520
|
+
*/
|
|
3521
|
+
rewardPerValue?: boolean;
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
3525
|
+
*/
|
|
3526
|
+
royaltyAddress?: string;
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* Royalty percentage of the item.
|
|
3530
|
+
*/
|
|
3531
|
+
royaltyPercentage?: number;
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* Currency associated with sales.
|
|
3535
|
+
*/
|
|
3536
|
+
saleCurrency?: string;
|
|
3537
|
+
|
|
3538
|
+
/**
|
|
3539
|
+
* Percentage reward given for a second-level referral.
|
|
3540
|
+
*/
|
|
3541
|
+
secondReferralReward?: number | null;
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
* Flag indicating if the multiplier is skipped.
|
|
3545
|
+
*/
|
|
3546
|
+
skipMultiplier?: boolean | null;
|
|
3547
|
+
|
|
3548
|
+
/**
|
|
3549
|
+
* Object containing details of the associated smart contract.
|
|
3550
|
+
*/
|
|
3551
|
+
smartContract?: Metadata.SmartContract;
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* Array of snapshot proposals for the rule.
|
|
3555
|
+
*/
|
|
3556
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
3557
|
+
|
|
3558
|
+
/**
|
|
3559
|
+
* Social media platform associated with the rule.
|
|
3560
|
+
*/
|
|
3561
|
+
socialPlatform?:
|
|
3562
|
+
| 'Custom'
|
|
3563
|
+
| 'Discord'
|
|
3564
|
+
| 'EpicGames'
|
|
3565
|
+
| 'Instagram'
|
|
3566
|
+
| 'Steam'
|
|
3567
|
+
| 'Telegram'
|
|
3568
|
+
| 'TikTok'
|
|
3569
|
+
| 'Twitch'
|
|
3570
|
+
| 'X(Twitter)'
|
|
3571
|
+
| 'YouTube'
|
|
3572
|
+
| 'Google'
|
|
3573
|
+
| 'GitHub'
|
|
3574
|
+
| null;
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
* URL of the social platform's logo.
|
|
3578
|
+
*/
|
|
3579
|
+
socialPlatformLogo?: string | null;
|
|
3580
|
+
|
|
3581
|
+
/**
|
|
3582
|
+
* Name of the social platform.
|
|
3583
|
+
*/
|
|
3584
|
+
socialPlatformName?: string | null;
|
|
3585
|
+
|
|
3586
|
+
/**
|
|
3587
|
+
* ID of the Steam app.
|
|
3588
|
+
*/
|
|
3589
|
+
steamAppId?: string | null;
|
|
3590
|
+
|
|
3591
|
+
/**
|
|
3592
|
+
* Array of streak milestones and corresponding rewards.
|
|
3593
|
+
*/
|
|
3594
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* Metadata for swap loyalty rules
|
|
3598
|
+
*/
|
|
3599
|
+
swap?: Metadata.Swap;
|
|
3600
|
+
|
|
3601
|
+
/**
|
|
3602
|
+
* ID of the Telegram channel.
|
|
3603
|
+
*/
|
|
3604
|
+
telegramChannelId?: string | null;
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* Time delay in seconds to verify actions.
|
|
3608
|
+
*/
|
|
3609
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
3610
|
+
|
|
3611
|
+
/**
|
|
3612
|
+
* Flag indicating if all contracts are tracked.
|
|
3613
|
+
*/
|
|
3614
|
+
trackAllContracts?: boolean | null;
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
3618
|
+
* completed once the progress is 100%.
|
|
3619
|
+
*/
|
|
3620
|
+
trackProgress?: boolean | null;
|
|
3621
|
+
|
|
3622
|
+
/**
|
|
3623
|
+
* URL of the associated Twitter account.
|
|
3624
|
+
*/
|
|
3625
|
+
twitterAccountUrl?: string;
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* Hashtag associated with the Twitter post.
|
|
3629
|
+
*/
|
|
3630
|
+
twitterHashtag?: string;
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* URL of the associated Twitter post.
|
|
3634
|
+
*/
|
|
3635
|
+
twitterPostUrl?: string;
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* Unique identifier of the Twitter user.
|
|
3639
|
+
*/
|
|
3640
|
+
twitterUserId?: string;
|
|
3641
|
+
|
|
3642
|
+
/**
|
|
3643
|
+
* Twitter username of the user.
|
|
3644
|
+
*/
|
|
3645
|
+
twitterUsername?: string;
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* Minimum length of the verification text.
|
|
3649
|
+
*/
|
|
3650
|
+
verificationTextMinimumLength?: number | null;
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* Multiplier applied to rewards for verified users.
|
|
3654
|
+
*/
|
|
3655
|
+
verifiedMultiplier?: number | null;
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* Placeholder text for verification input fields.
|
|
3659
|
+
*/
|
|
3660
|
+
verifyPlaceHolderText?: string | null;
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* Type of wallet associated with the rule.
|
|
3664
|
+
*/
|
|
3665
|
+
walletType?:
|
|
3666
|
+
| 'evm'
|
|
3667
|
+
| 'solana'
|
|
3668
|
+
| 'imx'
|
|
3669
|
+
| 'sui'
|
|
3670
|
+
| 'ton'
|
|
3671
|
+
| 'cosmos'
|
|
3672
|
+
| 'ultra'
|
|
3673
|
+
| 'agw'
|
|
3674
|
+
| 'flow_cadence'
|
|
3675
|
+
| 'substrate'
|
|
3676
|
+
| null;
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* ID of the Youtube channel.
|
|
3680
|
+
*/
|
|
3681
|
+
youtubeChannelId?: string | null;
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* ID of the Youtube video.
|
|
3685
|
+
*/
|
|
3686
|
+
youtubeVideoId?: string | null;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
export namespace Metadata {
|
|
3690
|
+
export interface Collection {
|
|
3691
|
+
/**
|
|
3692
|
+
* Blockchain address of the collection.
|
|
3693
|
+
*/
|
|
3694
|
+
address?: string;
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* Multiplier applied to the rewards for this collection.
|
|
3698
|
+
*/
|
|
3699
|
+
multiplier?: number;
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Blockchain network of the collection.
|
|
3703
|
+
*/
|
|
3704
|
+
network?:
|
|
3705
|
+
| 'abstract'
|
|
3706
|
+
| 'abstractTestnet'
|
|
3707
|
+
| 'apechain'
|
|
3708
|
+
| 'arbitrum'
|
|
3709
|
+
| 'avalanche'
|
|
3710
|
+
| 'avalancheFuji'
|
|
3711
|
+
| 'base'
|
|
3712
|
+
| 'baseSepolia'
|
|
3713
|
+
| 'berachain'
|
|
3714
|
+
| 'berachainArtio'
|
|
3715
|
+
| 'berachainBepolia'
|
|
3716
|
+
| 'binance'
|
|
3717
|
+
| 'bscTestnet'
|
|
3718
|
+
| 'campTestnet'
|
|
3719
|
+
| 'fantom'
|
|
3720
|
+
| 'fantomTestnet'
|
|
3721
|
+
| 'flowMainnet'
|
|
3722
|
+
| 'mainnet'
|
|
3723
|
+
| 'nexusTestnet'
|
|
3724
|
+
| 'optimism'
|
|
3725
|
+
| 'polygon'
|
|
3726
|
+
| 'polygon_mumbai'
|
|
3727
|
+
| 'skaleNebula'
|
|
3728
|
+
| 'skaleEuropa'
|
|
3729
|
+
| 'skaleCalypso'
|
|
3730
|
+
| 'solana'
|
|
3731
|
+
| 'sophon'
|
|
3732
|
+
| 'sophonTestnet'
|
|
3733
|
+
| 'sui'
|
|
3734
|
+
| 'superseed'
|
|
3735
|
+
| 'superseedSepolia'
|
|
3736
|
+
| 'vanar'
|
|
3737
|
+
| 'xai'
|
|
3738
|
+
| 'zksync'
|
|
3739
|
+
| 'coti'
|
|
3740
|
+
| 'cotiTestnet'
|
|
3741
|
+
| 'morph'
|
|
3742
|
+
| 'morphTestnet'
|
|
3743
|
+
| 'morphHolesky'
|
|
3744
|
+
| 'ultra'
|
|
3745
|
+
| 'ultraTestnet'
|
|
3746
|
+
| 'nitrograph'
|
|
3747
|
+
| 'sepolia'
|
|
3748
|
+
| 'optimism_sepolia'
|
|
3749
|
+
| 'arbitrumSepolia'
|
|
3750
|
+
| 'goerli'
|
|
3751
|
+
| 'optimism_goerli'
|
|
3752
|
+
| 'arbitrumGoerli'
|
|
3753
|
+
| 'basecamp'
|
|
3754
|
+
| 'somnia'
|
|
3755
|
+
| 'zkverify'
|
|
3756
|
+
| 'polkadot'
|
|
3757
|
+
| 'kusama'
|
|
3758
|
+
| 'flow_cadence';
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* Object containing details for the call-to-action.
|
|
3763
|
+
*/
|
|
3764
|
+
export interface Cta {
|
|
3765
|
+
/**
|
|
3766
|
+
* Link for the call-to-action.
|
|
3767
|
+
*/
|
|
3768
|
+
href?: string | null;
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* Label for the call-to-action.
|
|
3772
|
+
*/
|
|
3773
|
+
label?: string | null;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
export interface DiscordServersToJoin {
|
|
3777
|
+
/**
|
|
3778
|
+
* ID of the Discord server to join.
|
|
3779
|
+
*/
|
|
3780
|
+
id?: string;
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* Array of Discord channels to join.
|
|
3784
|
+
*/
|
|
3785
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
3786
|
+
|
|
3787
|
+
/**
|
|
3788
|
+
* Array of roles to assign in the Discord server.
|
|
3789
|
+
*/
|
|
3790
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
export namespace DiscordServersToJoin {
|
|
3794
|
+
export interface Channel {
|
|
3795
|
+
/**
|
|
3796
|
+
* ID of the Discord channel.
|
|
3797
|
+
*/
|
|
3798
|
+
id?: string;
|
|
3799
|
+
|
|
3800
|
+
/**
|
|
3801
|
+
* Array of emojis used in the channel.
|
|
3802
|
+
*/
|
|
3803
|
+
emojis?: Array<Channel.Emoji>;
|
|
3804
|
+
|
|
3805
|
+
/**
|
|
3806
|
+
* Phrase of text to be present in the discord message
|
|
3807
|
+
*/
|
|
3808
|
+
text?: string;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
export namespace Channel {
|
|
3812
|
+
export interface Emoji {
|
|
3813
|
+
/**
|
|
3814
|
+
* ID of the emoji used in the channel.
|
|
3815
|
+
*/
|
|
3816
|
+
id?: string;
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
export interface Role {
|
|
3821
|
+
/**
|
|
3822
|
+
* ID of the role in the Discord server.
|
|
3823
|
+
*/
|
|
3824
|
+
id: string;
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3828
|
+
export interface DripQuestsToComplete {
|
|
3829
|
+
/**
|
|
3830
|
+
* ID of the drip quest to complete.
|
|
3831
|
+
*/
|
|
3832
|
+
id: string;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* Liquidity pool details.
|
|
3837
|
+
*/
|
|
3838
|
+
export interface Liquidity {
|
|
3839
|
+
/**
|
|
3840
|
+
* Calculation type of the liquidity pool.
|
|
3841
|
+
*/
|
|
3842
|
+
calculationType?: 'fixed' | 'custom';
|
|
3843
|
+
|
|
3844
|
+
/**
|
|
3845
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
3846
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
3847
|
+
* USD.
|
|
3848
|
+
*/
|
|
3849
|
+
customFunction?: string;
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* Liquidity provided per day in USD
|
|
3853
|
+
*/
|
|
3854
|
+
liquidityPerDay?: number;
|
|
3855
|
+
|
|
3856
|
+
/**
|
|
3857
|
+
* Blockchain network of the liquidity pool.
|
|
3858
|
+
*/
|
|
3859
|
+
network?:
|
|
3860
|
+
| 'abstract'
|
|
3861
|
+
| 'abstractTestnet'
|
|
3862
|
+
| 'apechain'
|
|
3863
|
+
| 'arbitrum'
|
|
3864
|
+
| 'avalanche'
|
|
3865
|
+
| 'avalancheFuji'
|
|
3866
|
+
| 'base'
|
|
3867
|
+
| 'baseSepolia'
|
|
3868
|
+
| 'berachain'
|
|
3869
|
+
| 'berachainArtio'
|
|
3870
|
+
| 'berachainBepolia'
|
|
3871
|
+
| 'binance'
|
|
3872
|
+
| 'bscTestnet'
|
|
3873
|
+
| 'campTestnet'
|
|
3874
|
+
| 'fantom'
|
|
3875
|
+
| 'fantomTestnet'
|
|
3876
|
+
| 'flowMainnet'
|
|
3877
|
+
| 'mainnet'
|
|
3878
|
+
| 'nexusTestnet'
|
|
3879
|
+
| 'optimism'
|
|
3880
|
+
| 'polygon'
|
|
3881
|
+
| 'polygon_mumbai'
|
|
3882
|
+
| 'skaleNebula'
|
|
3883
|
+
| 'skaleEuropa'
|
|
3884
|
+
| 'skaleCalypso'
|
|
3885
|
+
| 'solana'
|
|
3886
|
+
| 'sophon'
|
|
3887
|
+
| 'sophonTestnet'
|
|
3888
|
+
| 'sui'
|
|
3889
|
+
| 'superseed'
|
|
3890
|
+
| 'superseedSepolia'
|
|
3891
|
+
| 'vanar'
|
|
3892
|
+
| 'xai'
|
|
3893
|
+
| 'zksync'
|
|
3894
|
+
| 'coti'
|
|
3895
|
+
| 'cotiTestnet'
|
|
3896
|
+
| 'morph'
|
|
3897
|
+
| 'morphTestnet'
|
|
3898
|
+
| 'morphHolesky'
|
|
3899
|
+
| 'ultra'
|
|
3900
|
+
| 'ultraTestnet'
|
|
3901
|
+
| 'nitrograph'
|
|
3902
|
+
| 'sepolia'
|
|
3903
|
+
| 'optimism_sepolia'
|
|
3904
|
+
| 'arbitrumSepolia'
|
|
3905
|
+
| 'goerli'
|
|
3906
|
+
| 'optimism_goerli'
|
|
3907
|
+
| 'arbitrumGoerli'
|
|
3908
|
+
| 'basecamp'
|
|
3909
|
+
| 'somnia'
|
|
3910
|
+
| 'zkverify'
|
|
3911
|
+
| 'polkadot'
|
|
3912
|
+
| 'kusama'
|
|
3913
|
+
| 'flow_cadence';
|
|
3914
|
+
|
|
3915
|
+
/**
|
|
3916
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
3917
|
+
*/
|
|
3918
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Array of liquidity pools associated with the rule.
|
|
3922
|
+
*/
|
|
3923
|
+
pools?: Array<Liquidity.Pool>;
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* Protocol of the liquidity pool.
|
|
3927
|
+
*/
|
|
3928
|
+
protocol?: string;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
export namespace Liquidity {
|
|
3932
|
+
export interface Pool {
|
|
3933
|
+
/**
|
|
3934
|
+
* Unique identifier of the liquidity pool.
|
|
3935
|
+
*/
|
|
3936
|
+
id: string;
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
export interface Range {
|
|
3941
|
+
/**
|
|
3942
|
+
* Reward amount for this range.
|
|
3943
|
+
*/
|
|
3944
|
+
amount: number;
|
|
3945
|
+
|
|
3946
|
+
/**
|
|
3947
|
+
* End value of the range.
|
|
3948
|
+
*/
|
|
3949
|
+
endRange: number;
|
|
3950
|
+
|
|
3951
|
+
/**
|
|
3952
|
+
* Start value of the range.
|
|
3953
|
+
*/
|
|
3954
|
+
startRange: number;
|
|
3955
|
+
|
|
3956
|
+
/**
|
|
3957
|
+
* ID of the loyalty badge for this range.
|
|
3958
|
+
*/
|
|
3959
|
+
loyaltyBadgeId?: string;
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* Amount of the loyalty multiplier for this range.
|
|
3963
|
+
*/
|
|
3964
|
+
loyaltyMultiplierAmount?: number;
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
/**
|
|
3968
|
+
* Object defining referral requirements.
|
|
3969
|
+
*/
|
|
3970
|
+
export interface ReferralRequirements {
|
|
3971
|
+
/**
|
|
3972
|
+
* Flag indicating if achieving points is required.
|
|
3973
|
+
*/
|
|
3974
|
+
achievePoints?: boolean | null;
|
|
3975
|
+
|
|
3976
|
+
/**
|
|
3977
|
+
* Flag indicating if completing the profile is required.
|
|
3978
|
+
*/
|
|
3979
|
+
completeProfile?: boolean | null;
|
|
3980
|
+
|
|
3981
|
+
/**
|
|
3982
|
+
* Flag indicating if connecting Discord is required.
|
|
3983
|
+
*/
|
|
3984
|
+
connectDiscord?: boolean | null;
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* Flag indicating if connecting email is required.
|
|
3988
|
+
*/
|
|
3989
|
+
connectEmail?: boolean | null;
|
|
3990
|
+
|
|
3991
|
+
/**
|
|
3992
|
+
* Flag indicating if connecting Twitter is required.
|
|
3993
|
+
*/
|
|
3994
|
+
connectTwitter?: boolean | null;
|
|
3995
|
+
|
|
3996
|
+
points?: ReferralRequirements.Points | null;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
export namespace ReferralRequirements {
|
|
4000
|
+
export interface Points {
|
|
4001
|
+
/**
|
|
4002
|
+
* Points required for referral.
|
|
4003
|
+
*/
|
|
4004
|
+
amount?: number | null;
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* ID of the loyalty currency for referral.
|
|
4008
|
+
*/
|
|
4009
|
+
loyaltyCurrecyId?: string | null;
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* Object containing details of the associated smart contract.
|
|
4015
|
+
*/
|
|
4016
|
+
export interface SmartContract {
|
|
4017
|
+
/**
|
|
4018
|
+
* Mapping of addresses for the smart contract.
|
|
4019
|
+
*/
|
|
4020
|
+
addressMapping?: string | null;
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Object containing details of the amount multiplier from the event.
|
|
4024
|
+
*/
|
|
4025
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
4026
|
+
|
|
4027
|
+
/**
|
|
4028
|
+
* ID of the smart contract.
|
|
4029
|
+
*/
|
|
4030
|
+
contractId?: string | null;
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Criteria to evaluate the smart contract event.
|
|
4034
|
+
*/
|
|
4035
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
4036
|
+
|
|
4037
|
+
/**
|
|
4038
|
+
* Event emitted by the smart contract.
|
|
4039
|
+
*/
|
|
4040
|
+
event?: string | null;
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* Array of parameters for the smart contract.
|
|
4044
|
+
*/
|
|
4045
|
+
params?: Array<SmartContract.Param> | null;
|
|
4046
|
+
|
|
4047
|
+
/**
|
|
4048
|
+
* Type of the smart contract interaction.
|
|
4049
|
+
*/
|
|
4050
|
+
type?: 'function' | 'event' | null;
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
export namespace SmartContract {
|
|
4054
|
+
/**
|
|
4055
|
+
* Object containing details of the amount multiplier from the event.
|
|
4056
|
+
*/
|
|
4057
|
+
export interface AmountMultiplier {
|
|
4058
|
+
/**
|
|
4059
|
+
* Mapping of the value for the smart contract.
|
|
4060
|
+
*/
|
|
4061
|
+
valueMapping?: string | null;
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
export interface Param {
|
|
4065
|
+
/**
|
|
4066
|
+
* Condition to check for the parameter.
|
|
4067
|
+
*/
|
|
4068
|
+
condition?: string | null;
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* Name of the smart contract parameter.
|
|
4072
|
+
*/
|
|
4073
|
+
name?: string | null;
|
|
4074
|
+
|
|
4075
|
+
/**
|
|
4076
|
+
* Value of the parameter.
|
|
4077
|
+
*/
|
|
4078
|
+
value?: string | null;
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
export interface SnapshotProposal {
|
|
4083
|
+
/**
|
|
4084
|
+
* ID of the snapshot proposal.
|
|
4085
|
+
*/
|
|
4086
|
+
id: string;
|
|
4087
|
+
|
|
4088
|
+
/**
|
|
4089
|
+
* Space associated with the snapshot proposal.
|
|
4090
|
+
*/
|
|
4091
|
+
space: string;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
export interface StreakArray {
|
|
4095
|
+
/**
|
|
4096
|
+
* Reward amount for achieving the streak milestone.
|
|
4097
|
+
*/
|
|
4098
|
+
streakAmount: number;
|
|
4099
|
+
|
|
4100
|
+
/**
|
|
4101
|
+
* Milestone required to achieve the streak.
|
|
4102
|
+
*/
|
|
4103
|
+
streakMilestone: number;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* Metadata for swap loyalty rules
|
|
4108
|
+
*/
|
|
4109
|
+
export interface Swap {
|
|
4110
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
4111
|
+
|
|
4112
|
+
relayReferrerId?: string;
|
|
4113
|
+
|
|
4114
|
+
requireCrossChainSwap?: boolean;
|
|
4115
|
+
|
|
4116
|
+
swappedToChain?: 'any' | number | string;
|
|
4117
|
+
|
|
4118
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
4119
|
+
|
|
4120
|
+
tokenMode?: 'any' | 'specific';
|
|
4121
|
+
|
|
4122
|
+
trackTokenAmount?: boolean;
|
|
4123
|
+
}
|
|
4124
|
+
|
|
4125
|
+
export namespace Swap {
|
|
4126
|
+
export interface SwappedToToken {
|
|
4127
|
+
address: string;
|
|
4128
|
+
|
|
4129
|
+
chainId: string;
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
379
4133
|
}
|
|
380
4134
|
}
|
|
381
4135
|
|