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