@snagsolutions/sdk 0.1.0-alpha.21 → 0.1.0-alpha.211
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 +1711 -0
- package/LICENSE +1 -1
- package/README.md +15 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +8 -4
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +368 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +17 -4
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +96 -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 +60 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +39 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +39 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2730 -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 +302 -62
- 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 +2024 -258
- 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 +12 -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 +30 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.mjs.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +36 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +192 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +12 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +31 -2
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +561 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +21 -5
- package/src/resources/index.ts +12 -1
- package/src/resources/loyalty/account-streaks.ts +128 -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 +64 -6
- package/src/resources/loyalty/rule-edits.ts +3962 -100
- package/src/resources/loyalty/rule-groups.ts +530 -74
- package/src/resources/loyalty/rules.ts +3162 -295
- 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 +699 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting.ts +25 -5
- package/src/resources/referral/referral.ts +15 -11
- package/src/resources/referral/users.ts +45 -5
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +61 -3
- package/src/resources/users/users.ts +259 -38
- package/src/resources/websites/website-collections.ts +42 -1
- package/src/resources/websites/website-user-roles.ts +25 -1
- package/src/resources/websites/websites.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -3,10 +3,24 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class RuleEdits extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve configured loyalty rule edits with optional pagination and filters
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const ruleEdits = await client.loyalty.ruleEdits.list({
|
|
10
|
+
* loyaltyRuleId: true,
|
|
11
|
+
* });
|
|
12
|
+
* ```
|
|
6
13
|
*/
|
|
7
14
|
list(query: RuleEditListParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditListResponse>;
|
|
8
15
|
/**
|
|
9
16
|
* Restore a loyalty rule from a rule edit
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const response = await client.loyalty.ruleEdits.restore(
|
|
21
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
10
24
|
*/
|
|
11
25
|
restore(id: string, body?: RuleEditRestoreParams | null | undefined, options?: Core.RequestOptions): Core.APIPromise<RuleEditRestoreResponse>;
|
|
12
26
|
}
|
|
@@ -69,7 +83,7 @@ export declare namespace RuleEditListResponse {
|
|
|
69
83
|
/**
|
|
70
84
|
* Amount associated with the loyalty rule
|
|
71
85
|
*/
|
|
72
|
-
amount: number;
|
|
86
|
+
amount: number | null;
|
|
73
87
|
/**
|
|
74
88
|
* Timestamp when the loyalty rule was created
|
|
75
89
|
*/
|
|
@@ -78,14 +92,34 @@ export declare namespace RuleEditListResponse {
|
|
|
78
92
|
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
79
93
|
*/
|
|
80
94
|
deletedAt: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Description of the loyalty rule
|
|
97
|
+
*/
|
|
98
|
+
description: string;
|
|
99
|
+
/**
|
|
100
|
+
* End time of the loyalty rule
|
|
101
|
+
*/
|
|
102
|
+
endTime: string | null;
|
|
81
103
|
/**
|
|
82
104
|
* Frequency of the loyalty rule
|
|
83
105
|
*/
|
|
84
106
|
frequency: string;
|
|
107
|
+
/**
|
|
108
|
+
* Name of the loyalty rule
|
|
109
|
+
*/
|
|
110
|
+
name: string;
|
|
85
111
|
/**
|
|
86
112
|
* Unique identifier for the organization
|
|
87
113
|
*/
|
|
88
114
|
organizationId: string;
|
|
115
|
+
/**
|
|
116
|
+
* Type of the reward
|
|
117
|
+
*/
|
|
118
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
119
|
+
/**
|
|
120
|
+
* Start time of the loyalty rule
|
|
121
|
+
*/
|
|
122
|
+
startTime: string | null;
|
|
89
123
|
/**
|
|
90
124
|
* Type of the loyalty rule
|
|
91
125
|
*/
|
|
@@ -102,10 +136,667 @@ export declare namespace RuleEditListResponse {
|
|
|
102
136
|
* Optional address of the collection
|
|
103
137
|
*/
|
|
104
138
|
collectionAddress?: string;
|
|
139
|
+
/**
|
|
140
|
+
* URL of the media associated with the loyalty rule
|
|
141
|
+
*/
|
|
142
|
+
mediaUrl?: string | null;
|
|
105
143
|
/**
|
|
106
144
|
* Optional metadata for the loyalty rule
|
|
107
145
|
*/
|
|
108
|
-
metadata?:
|
|
146
|
+
metadata?: {
|
|
147
|
+
[key: string]: Data.Metadata;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
namespace Data {
|
|
151
|
+
interface Metadata {
|
|
152
|
+
/**
|
|
153
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
154
|
+
* any rule completions count as check-in.
|
|
155
|
+
*/
|
|
156
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
157
|
+
/**
|
|
158
|
+
* Number of tokens per batch.
|
|
159
|
+
*/
|
|
160
|
+
batchSize?: number | null;
|
|
161
|
+
/**
|
|
162
|
+
* Text displayed on the action button.
|
|
163
|
+
*/
|
|
164
|
+
buttonText?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Flag indicating if commenting is required.
|
|
167
|
+
*/
|
|
168
|
+
checkComment?: boolean | null;
|
|
169
|
+
/**
|
|
170
|
+
* Flag indicating if liking the post is required.
|
|
171
|
+
*/
|
|
172
|
+
checkLike?: boolean | null;
|
|
173
|
+
/**
|
|
174
|
+
* Flag indicating if reposting is required.
|
|
175
|
+
*/
|
|
176
|
+
checkRepost?: boolean | null;
|
|
177
|
+
/**
|
|
178
|
+
* Text to check in the Twitter post, username, or bio.
|
|
179
|
+
*/
|
|
180
|
+
checkText?: string | Array<string> | null;
|
|
181
|
+
/**
|
|
182
|
+
* Array of collections associated with the rule.
|
|
183
|
+
*/
|
|
184
|
+
collection?: Array<Metadata.Collection>;
|
|
185
|
+
/**
|
|
186
|
+
* Conditions for completing the profile.
|
|
187
|
+
*/
|
|
188
|
+
completeProfileConditions?: {
|
|
189
|
+
[key: string]: boolean;
|
|
190
|
+
} | null;
|
|
191
|
+
/**
|
|
192
|
+
* Description of the external rule condition (only for external rules)
|
|
193
|
+
*/
|
|
194
|
+
conditionDescription?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Object containing details for the call-to-action.
|
|
197
|
+
*/
|
|
198
|
+
cta?: Metadata.Cta | null;
|
|
199
|
+
/**
|
|
200
|
+
* API key for custom rewards integration.
|
|
201
|
+
*/
|
|
202
|
+
customRewardsApiKey?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
205
|
+
*/
|
|
206
|
+
directRpc?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Array of Discord servers, channels, and roles to join.
|
|
209
|
+
*/
|
|
210
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
211
|
+
/**
|
|
212
|
+
* Array of drip quests required to complete the rule.
|
|
213
|
+
*/
|
|
214
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
215
|
+
/**
|
|
216
|
+
* Flag indicating whether joining Discord servers is required.
|
|
217
|
+
*/
|
|
218
|
+
enableJoinDiscordServers?: boolean | null;
|
|
219
|
+
/**
|
|
220
|
+
* Flag indicating whether streaks are enabled.
|
|
221
|
+
*/
|
|
222
|
+
enableStreaks?: boolean | null;
|
|
223
|
+
/**
|
|
224
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
225
|
+
*/
|
|
226
|
+
enableVerifiedMultiplier?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Type of ERC20 token for the loyalty rule.
|
|
229
|
+
*/
|
|
230
|
+
erc20Type?: 'erc20' | 'native';
|
|
231
|
+
/**
|
|
232
|
+
* Fill source of the order for the token sale
|
|
233
|
+
*/
|
|
234
|
+
fillSource?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Percentage reward given to a user for their first referral.
|
|
237
|
+
*/
|
|
238
|
+
firstReferralReward?: number | null;
|
|
239
|
+
/**
|
|
240
|
+
* Name of the GitHub branch to check for PR merge.
|
|
241
|
+
*/
|
|
242
|
+
githubBranchName?: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* URL of the GitHub repository to check for star.
|
|
245
|
+
*/
|
|
246
|
+
githubRepoUrl?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Flag indicating whether the fill source is included.
|
|
249
|
+
*/
|
|
250
|
+
hasFillSource?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Indicates if the item has never been sold.
|
|
253
|
+
*/
|
|
254
|
+
hasNeverSold?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Indicates if the full royalty has been paid for items.
|
|
257
|
+
*/
|
|
258
|
+
hasPaidFullRoyalty?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Flag indicating if the sale currency is included.
|
|
261
|
+
*/
|
|
262
|
+
hasSaleCurrency?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Indicates if the user has a verified Twitter account.
|
|
265
|
+
*/
|
|
266
|
+
hasVerifiedTwitter?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* URL of the image associated with the rule.
|
|
269
|
+
*/
|
|
270
|
+
imageUrl?: string | null;
|
|
271
|
+
/**
|
|
272
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
273
|
+
*/
|
|
274
|
+
isCheckInOnEveryTxn?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
277
|
+
*/
|
|
278
|
+
isMultiplierApplied?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Flag indicating if the rule is restricted to new users.
|
|
281
|
+
*/
|
|
282
|
+
isRestrictedToNewUsers?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Flag indicating if rewards are applied retroactively.
|
|
285
|
+
*/
|
|
286
|
+
isRetroactive?: boolean | null;
|
|
287
|
+
/**
|
|
288
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
289
|
+
*/
|
|
290
|
+
isTokenHoldMultiplier?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Optional link associated with the metadata.
|
|
293
|
+
*/
|
|
294
|
+
link?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Liquidity pool details.
|
|
297
|
+
*/
|
|
298
|
+
liquidity?: Metadata.Liquidity;
|
|
299
|
+
/**
|
|
300
|
+
* Maximum quantity constraint for token holding.
|
|
301
|
+
*/
|
|
302
|
+
maxQty?: number | null;
|
|
303
|
+
/**
|
|
304
|
+
* Minimum quantity constraint for token holding.
|
|
305
|
+
*/
|
|
306
|
+
minQty?: number | null;
|
|
307
|
+
/**
|
|
308
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
309
|
+
*/
|
|
310
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
311
|
+
/**
|
|
312
|
+
* Flag indicating whether to include only known users.
|
|
313
|
+
*/
|
|
314
|
+
onlyKnownUsers?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* Flag indicating whether to include only native tokens.
|
|
317
|
+
*/
|
|
318
|
+
onlyNative?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Flag indicating whether to include only non-listed items.
|
|
321
|
+
*/
|
|
322
|
+
onlyNonListed?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Indicates if only existing users are rewarded.
|
|
325
|
+
*/
|
|
326
|
+
onlyRewardExistingUser?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* give points for only one token ownership per contract
|
|
329
|
+
*/
|
|
330
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
331
|
+
/**
|
|
332
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
333
|
+
*/
|
|
334
|
+
preGeneratedPostText?: string | null;
|
|
335
|
+
/**
|
|
336
|
+
* Promotional code associated with the rule.
|
|
337
|
+
*/
|
|
338
|
+
promoCode?: string;
|
|
339
|
+
/**
|
|
340
|
+
* URL of the CSV file containing promo codes.
|
|
341
|
+
*/
|
|
342
|
+
promoCodeCsvUrl?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Numbers of the promotional code to be generated.
|
|
345
|
+
*/
|
|
346
|
+
promoCodeLength?: number | null;
|
|
347
|
+
/**
|
|
348
|
+
* Type of the promotional code.
|
|
349
|
+
*/
|
|
350
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
351
|
+
/**
|
|
352
|
+
* Array defining ranges and corresponding rewards.
|
|
353
|
+
*/
|
|
354
|
+
range?: Array<Metadata.Range>;
|
|
355
|
+
/**
|
|
356
|
+
* ID of the Reddit post.
|
|
357
|
+
*/
|
|
358
|
+
redditPostId?: string | null;
|
|
359
|
+
/**
|
|
360
|
+
* Object defining referral requirements.
|
|
361
|
+
*/
|
|
362
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
363
|
+
/**
|
|
364
|
+
* Lump sum reward given to a referrer.
|
|
365
|
+
*/
|
|
366
|
+
referrerReward?: number | null;
|
|
367
|
+
/**
|
|
368
|
+
* Loyalty currency ID of the referrer reward.
|
|
369
|
+
*/
|
|
370
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
371
|
+
/**
|
|
372
|
+
* Flag indicating if the post link is required.
|
|
373
|
+
*/
|
|
374
|
+
requirePostLink?: boolean | null;
|
|
375
|
+
/**
|
|
376
|
+
* Flag indicating if media metadata is required.
|
|
377
|
+
*/
|
|
378
|
+
requirePostMediaLink?: boolean | null;
|
|
379
|
+
/**
|
|
380
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
381
|
+
*/
|
|
382
|
+
rewardBadgePerRange?: boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
385
|
+
*/
|
|
386
|
+
rewardByBatch?: boolean | null;
|
|
387
|
+
/**
|
|
388
|
+
* Criteria to evaluate the reward.
|
|
389
|
+
*/
|
|
390
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
391
|
+
/**
|
|
392
|
+
* Flag indicating if the reward is rewarded per action.
|
|
393
|
+
*/
|
|
394
|
+
rewardPerAction?: boolean | null;
|
|
395
|
+
/**
|
|
396
|
+
* Flag indicating if rewards are given per impression.
|
|
397
|
+
*/
|
|
398
|
+
rewardPerImpression?: boolean | null;
|
|
399
|
+
/**
|
|
400
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
401
|
+
* instead of count.
|
|
402
|
+
*/
|
|
403
|
+
rewardPerValue?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Flag indicating if the rule should reward quality posts.
|
|
406
|
+
*/
|
|
407
|
+
rewardQualityPosts?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
410
|
+
*/
|
|
411
|
+
royaltyAddress?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Royalty percentage of the item.
|
|
414
|
+
*/
|
|
415
|
+
royaltyPercentage?: number;
|
|
416
|
+
/**
|
|
417
|
+
* Currency associated with sales.
|
|
418
|
+
*/
|
|
419
|
+
saleCurrency?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Percentage reward given for a second-level referral.
|
|
422
|
+
*/
|
|
423
|
+
secondReferralReward?: number | null;
|
|
424
|
+
/**
|
|
425
|
+
* Flag indicating if the multiplier is skipped.
|
|
426
|
+
*/
|
|
427
|
+
skipMultiplier?: boolean | null;
|
|
428
|
+
/**
|
|
429
|
+
* Object containing details of the associated smart contract.
|
|
430
|
+
*/
|
|
431
|
+
smartContract?: Metadata.SmartContract;
|
|
432
|
+
/**
|
|
433
|
+
* Array of snapshot proposals for the rule.
|
|
434
|
+
*/
|
|
435
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
436
|
+
/**
|
|
437
|
+
* Social media platform associated with the rule.
|
|
438
|
+
*/
|
|
439
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | 'GitHub' | 'Reddit' | null;
|
|
440
|
+
/**
|
|
441
|
+
* URL of the social platform's logo.
|
|
442
|
+
*/
|
|
443
|
+
socialPlatformLogo?: string | null;
|
|
444
|
+
/**
|
|
445
|
+
* Name of the social platform.
|
|
446
|
+
*/
|
|
447
|
+
socialPlatformName?: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* ID of the Steam app.
|
|
450
|
+
*/
|
|
451
|
+
steamAppId?: string | null;
|
|
452
|
+
/**
|
|
453
|
+
* Array of streak milestones and corresponding rewards.
|
|
454
|
+
*/
|
|
455
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
456
|
+
/**
|
|
457
|
+
* Metadata for swap loyalty rules
|
|
458
|
+
*/
|
|
459
|
+
swap?: Metadata.Swap;
|
|
460
|
+
/**
|
|
461
|
+
* ID of the Telegram channel.
|
|
462
|
+
*/
|
|
463
|
+
telegramChannelId?: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* Time delay in seconds to verify actions.
|
|
466
|
+
*/
|
|
467
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
468
|
+
/**
|
|
469
|
+
* Flag indicating if all contracts are tracked.
|
|
470
|
+
*/
|
|
471
|
+
trackAllContracts?: boolean | null;
|
|
472
|
+
/**
|
|
473
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
474
|
+
* completed once the progress is 100%.
|
|
475
|
+
*/
|
|
476
|
+
trackProgress?: boolean | null;
|
|
477
|
+
/**
|
|
478
|
+
* URL of the associated Twitter account.
|
|
479
|
+
*/
|
|
480
|
+
twitterAccountUrl?: string;
|
|
481
|
+
/**
|
|
482
|
+
* Hashtag associated with the Twitter post.
|
|
483
|
+
*/
|
|
484
|
+
twitterHashtag?: string;
|
|
485
|
+
/**
|
|
486
|
+
* URL of the associated Twitter post.
|
|
487
|
+
*/
|
|
488
|
+
twitterPostUrl?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Unique identifier of the Twitter user.
|
|
491
|
+
*/
|
|
492
|
+
twitterUserId?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Twitter username of the user.
|
|
495
|
+
*/
|
|
496
|
+
twitterUsername?: string;
|
|
497
|
+
/**
|
|
498
|
+
* Minimum length of the verification text.
|
|
499
|
+
*/
|
|
500
|
+
verificationTextMinimumLength?: number | null;
|
|
501
|
+
/**
|
|
502
|
+
* Multiplier applied to rewards for verified users.
|
|
503
|
+
*/
|
|
504
|
+
verifiedMultiplier?: number | null;
|
|
505
|
+
/**
|
|
506
|
+
* Placeholder text for verification input fields.
|
|
507
|
+
*/
|
|
508
|
+
verifyPlaceHolderText?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* Type of wallet associated with the rule.
|
|
511
|
+
*/
|
|
512
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw' | 'flow_cadence' | 'substrate' | null;
|
|
513
|
+
/**
|
|
514
|
+
* ID of the Youtube channel.
|
|
515
|
+
*/
|
|
516
|
+
youtubeChannelId?: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* ID of the Youtube video.
|
|
519
|
+
*/
|
|
520
|
+
youtubeVideoId?: string | null;
|
|
521
|
+
}
|
|
522
|
+
namespace Metadata {
|
|
523
|
+
interface Collection {
|
|
524
|
+
/**
|
|
525
|
+
* Blockchain address of the collection.
|
|
526
|
+
*/
|
|
527
|
+
address?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Multiplier applied to the rewards for this collection.
|
|
530
|
+
*/
|
|
531
|
+
multiplier?: number;
|
|
532
|
+
/**
|
|
533
|
+
* Blockchain network of the collection.
|
|
534
|
+
*/
|
|
535
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Object containing details for the call-to-action.
|
|
539
|
+
*/
|
|
540
|
+
interface Cta {
|
|
541
|
+
/**
|
|
542
|
+
* Link for the call-to-action.
|
|
543
|
+
*/
|
|
544
|
+
href?: string | null;
|
|
545
|
+
/**
|
|
546
|
+
* Label for the call-to-action.
|
|
547
|
+
*/
|
|
548
|
+
label?: string | null;
|
|
549
|
+
}
|
|
550
|
+
interface DiscordServersToJoin {
|
|
551
|
+
/**
|
|
552
|
+
* ID of the Discord server to join.
|
|
553
|
+
*/
|
|
554
|
+
id?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Array of Discord channels to join.
|
|
557
|
+
*/
|
|
558
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
559
|
+
/**
|
|
560
|
+
* Array of roles to assign in the Discord server.
|
|
561
|
+
*/
|
|
562
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
563
|
+
}
|
|
564
|
+
namespace DiscordServersToJoin {
|
|
565
|
+
interface Channel {
|
|
566
|
+
/**
|
|
567
|
+
* ID of the Discord channel.
|
|
568
|
+
*/
|
|
569
|
+
id?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Array of emojis used in the channel.
|
|
572
|
+
*/
|
|
573
|
+
emojis?: Array<Channel.Emoji>;
|
|
574
|
+
/**
|
|
575
|
+
* Phrase of text to be present in the discord message
|
|
576
|
+
*/
|
|
577
|
+
text?: string;
|
|
578
|
+
}
|
|
579
|
+
namespace Channel {
|
|
580
|
+
interface Emoji {
|
|
581
|
+
/**
|
|
582
|
+
* ID of the emoji used in the channel.
|
|
583
|
+
*/
|
|
584
|
+
id?: string;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
interface Role {
|
|
588
|
+
/**
|
|
589
|
+
* ID of the role in the Discord server.
|
|
590
|
+
*/
|
|
591
|
+
id: string;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
interface DripQuestsToComplete {
|
|
595
|
+
/**
|
|
596
|
+
* ID of the drip quest to complete.
|
|
597
|
+
*/
|
|
598
|
+
id: string;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Liquidity pool details.
|
|
602
|
+
*/
|
|
603
|
+
interface Liquidity {
|
|
604
|
+
/**
|
|
605
|
+
* Calculation type of the liquidity pool.
|
|
606
|
+
*/
|
|
607
|
+
calculationType?: 'fixed' | 'custom';
|
|
608
|
+
/**
|
|
609
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
610
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
611
|
+
* USD.
|
|
612
|
+
*/
|
|
613
|
+
customFunction?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Liquidity provided per day in USD
|
|
616
|
+
*/
|
|
617
|
+
liquidityPerDay?: number;
|
|
618
|
+
/**
|
|
619
|
+
* Blockchain network of the liquidity pool.
|
|
620
|
+
*/
|
|
621
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
622
|
+
/**
|
|
623
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
624
|
+
*/
|
|
625
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
626
|
+
/**
|
|
627
|
+
* Array of liquidity pools associated with the rule.
|
|
628
|
+
*/
|
|
629
|
+
pools?: Array<Liquidity.Pool>;
|
|
630
|
+
/**
|
|
631
|
+
* Protocol of the liquidity pool.
|
|
632
|
+
*/
|
|
633
|
+
protocol?: string;
|
|
634
|
+
}
|
|
635
|
+
namespace Liquidity {
|
|
636
|
+
interface Pool {
|
|
637
|
+
/**
|
|
638
|
+
* Unique identifier of the liquidity pool.
|
|
639
|
+
*/
|
|
640
|
+
id: string;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
interface Range {
|
|
644
|
+
/**
|
|
645
|
+
* Reward amount for this range.
|
|
646
|
+
*/
|
|
647
|
+
amount: number;
|
|
648
|
+
/**
|
|
649
|
+
* End value of the range.
|
|
650
|
+
*/
|
|
651
|
+
endRange: number;
|
|
652
|
+
/**
|
|
653
|
+
* Start value of the range.
|
|
654
|
+
*/
|
|
655
|
+
startRange: number;
|
|
656
|
+
/**
|
|
657
|
+
* ID of the loyalty badge for this range.
|
|
658
|
+
*/
|
|
659
|
+
loyaltyBadgeId?: string;
|
|
660
|
+
/**
|
|
661
|
+
* Amount of the loyalty multiplier for this range.
|
|
662
|
+
*/
|
|
663
|
+
loyaltyMultiplierAmount?: number;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Object defining referral requirements.
|
|
667
|
+
*/
|
|
668
|
+
interface ReferralRequirements {
|
|
669
|
+
/**
|
|
670
|
+
* Flag indicating if achieving points is required.
|
|
671
|
+
*/
|
|
672
|
+
achievePoints?: boolean | null;
|
|
673
|
+
/**
|
|
674
|
+
* Flag indicating if completing the profile is required.
|
|
675
|
+
*/
|
|
676
|
+
completeProfile?: boolean | null;
|
|
677
|
+
/**
|
|
678
|
+
* Flag indicating if connecting Discord is required.
|
|
679
|
+
*/
|
|
680
|
+
connectDiscord?: boolean | null;
|
|
681
|
+
/**
|
|
682
|
+
* Flag indicating if connecting email is required.
|
|
683
|
+
*/
|
|
684
|
+
connectEmail?: boolean | null;
|
|
685
|
+
/**
|
|
686
|
+
* Flag indicating if connecting Twitter is required.
|
|
687
|
+
*/
|
|
688
|
+
connectTwitter?: boolean | null;
|
|
689
|
+
points?: ReferralRequirements.Points | null;
|
|
690
|
+
}
|
|
691
|
+
namespace ReferralRequirements {
|
|
692
|
+
interface Points {
|
|
693
|
+
/**
|
|
694
|
+
* Points required for referral.
|
|
695
|
+
*/
|
|
696
|
+
amount?: number | null;
|
|
697
|
+
/**
|
|
698
|
+
* ID of the loyalty currency for referral.
|
|
699
|
+
*/
|
|
700
|
+
loyaltyCurrecyId?: string | null;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Object containing details of the associated smart contract.
|
|
705
|
+
*/
|
|
706
|
+
interface SmartContract {
|
|
707
|
+
/**
|
|
708
|
+
* Mapping of addresses for the smart contract.
|
|
709
|
+
*/
|
|
710
|
+
addressMapping?: string | null;
|
|
711
|
+
/**
|
|
712
|
+
* Object containing details of the amount multiplier from the event.
|
|
713
|
+
*/
|
|
714
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
715
|
+
/**
|
|
716
|
+
* ID of the smart contract.
|
|
717
|
+
*/
|
|
718
|
+
contractId?: string | null;
|
|
719
|
+
/**
|
|
720
|
+
* Criteria to evaluate the smart contract event.
|
|
721
|
+
*/
|
|
722
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
723
|
+
/**
|
|
724
|
+
* Event emitted by the smart contract.
|
|
725
|
+
*/
|
|
726
|
+
event?: string | null;
|
|
727
|
+
/**
|
|
728
|
+
* Array of parameters for the smart contract.
|
|
729
|
+
*/
|
|
730
|
+
params?: Array<SmartContract.Param> | null;
|
|
731
|
+
/**
|
|
732
|
+
* Type of the smart contract interaction.
|
|
733
|
+
*/
|
|
734
|
+
type?: 'function' | 'event' | null;
|
|
735
|
+
}
|
|
736
|
+
namespace SmartContract {
|
|
737
|
+
/**
|
|
738
|
+
* Object containing details of the amount multiplier from the event.
|
|
739
|
+
*/
|
|
740
|
+
interface AmountMultiplier {
|
|
741
|
+
/**
|
|
742
|
+
* Mapping of the value for the smart contract.
|
|
743
|
+
*/
|
|
744
|
+
valueMapping?: string | null;
|
|
745
|
+
}
|
|
746
|
+
interface Param {
|
|
747
|
+
/**
|
|
748
|
+
* Condition to check for the parameter.
|
|
749
|
+
*/
|
|
750
|
+
condition?: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* Name of the smart contract parameter.
|
|
753
|
+
*/
|
|
754
|
+
name?: string | null;
|
|
755
|
+
/**
|
|
756
|
+
* Value of the parameter.
|
|
757
|
+
*/
|
|
758
|
+
value?: string | null;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
interface SnapshotProposal {
|
|
762
|
+
/**
|
|
763
|
+
* ID of the snapshot proposal.
|
|
764
|
+
*/
|
|
765
|
+
id: string;
|
|
766
|
+
/**
|
|
767
|
+
* Space associated with the snapshot proposal.
|
|
768
|
+
*/
|
|
769
|
+
space: string;
|
|
770
|
+
}
|
|
771
|
+
interface StreakArray {
|
|
772
|
+
/**
|
|
773
|
+
* Reward amount for achieving the streak milestone.
|
|
774
|
+
*/
|
|
775
|
+
streakAmount: number;
|
|
776
|
+
/**
|
|
777
|
+
* Milestone required to achieve the streak.
|
|
778
|
+
*/
|
|
779
|
+
streakMilestone: number;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Metadata for swap loyalty rules
|
|
783
|
+
*/
|
|
784
|
+
interface Swap {
|
|
785
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
786
|
+
relayReferrerId?: string;
|
|
787
|
+
requireCrossChainSwap?: boolean;
|
|
788
|
+
swappedToChain?: 'any' | number | string;
|
|
789
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
790
|
+
tokenMode?: 'any' | 'specific';
|
|
791
|
+
trackTokenAmount?: boolean;
|
|
792
|
+
}
|
|
793
|
+
namespace Swap {
|
|
794
|
+
interface SwappedToToken {
|
|
795
|
+
address: string;
|
|
796
|
+
chainId: string;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
109
800
|
}
|
|
110
801
|
/**
|
|
111
802
|
* Previous data of the rule before the edit
|
|
@@ -118,7 +809,7 @@ export declare namespace RuleEditListResponse {
|
|
|
118
809
|
/**
|
|
119
810
|
* Amount associated with the loyalty rule
|
|
120
811
|
*/
|
|
121
|
-
amount: number;
|
|
812
|
+
amount: number | null;
|
|
122
813
|
/**
|
|
123
814
|
* Timestamp when the loyalty rule was created
|
|
124
815
|
*/
|
|
@@ -127,14 +818,34 @@ export declare namespace RuleEditListResponse {
|
|
|
127
818
|
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
128
819
|
*/
|
|
129
820
|
deletedAt: string | null;
|
|
821
|
+
/**
|
|
822
|
+
* Description of the loyalty rule
|
|
823
|
+
*/
|
|
824
|
+
description: string;
|
|
825
|
+
/**
|
|
826
|
+
* End time of the loyalty rule
|
|
827
|
+
*/
|
|
828
|
+
endTime: string | null;
|
|
130
829
|
/**
|
|
131
830
|
* Frequency of the loyalty rule
|
|
132
831
|
*/
|
|
133
832
|
frequency: string;
|
|
833
|
+
/**
|
|
834
|
+
* Name of the loyalty rule
|
|
835
|
+
*/
|
|
836
|
+
name: string;
|
|
134
837
|
/**
|
|
135
838
|
* Unique identifier for the organization
|
|
136
839
|
*/
|
|
137
840
|
organizationId: string;
|
|
841
|
+
/**
|
|
842
|
+
* Type of the reward
|
|
843
|
+
*/
|
|
844
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
845
|
+
/**
|
|
846
|
+
* Start time of the loyalty rule
|
|
847
|
+
*/
|
|
848
|
+
startTime: string | null;
|
|
138
849
|
/**
|
|
139
850
|
* Type of the loyalty rule
|
|
140
851
|
*/
|
|
@@ -151,10 +862,667 @@ export declare namespace RuleEditListResponse {
|
|
|
151
862
|
* Optional address of the collection
|
|
152
863
|
*/
|
|
153
864
|
collectionAddress?: string;
|
|
865
|
+
/**
|
|
866
|
+
* URL of the media associated with the loyalty rule
|
|
867
|
+
*/
|
|
868
|
+
mediaUrl?: string | null;
|
|
154
869
|
/**
|
|
155
870
|
* Optional metadata for the loyalty rule
|
|
156
871
|
*/
|
|
157
|
-
metadata?:
|
|
872
|
+
metadata?: {
|
|
873
|
+
[key: string]: PreviousData.Metadata;
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
namespace PreviousData {
|
|
877
|
+
interface Metadata {
|
|
878
|
+
/**
|
|
879
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
880
|
+
* any rule completions count as check-in.
|
|
881
|
+
*/
|
|
882
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
883
|
+
/**
|
|
884
|
+
* Number of tokens per batch.
|
|
885
|
+
*/
|
|
886
|
+
batchSize?: number | null;
|
|
887
|
+
/**
|
|
888
|
+
* Text displayed on the action button.
|
|
889
|
+
*/
|
|
890
|
+
buttonText?: string | null;
|
|
891
|
+
/**
|
|
892
|
+
* Flag indicating if commenting is required.
|
|
893
|
+
*/
|
|
894
|
+
checkComment?: boolean | null;
|
|
895
|
+
/**
|
|
896
|
+
* Flag indicating if liking the post is required.
|
|
897
|
+
*/
|
|
898
|
+
checkLike?: boolean | null;
|
|
899
|
+
/**
|
|
900
|
+
* Flag indicating if reposting is required.
|
|
901
|
+
*/
|
|
902
|
+
checkRepost?: boolean | null;
|
|
903
|
+
/**
|
|
904
|
+
* Text to check in the Twitter post, username, or bio.
|
|
905
|
+
*/
|
|
906
|
+
checkText?: string | Array<string> | null;
|
|
907
|
+
/**
|
|
908
|
+
* Array of collections associated with the rule.
|
|
909
|
+
*/
|
|
910
|
+
collection?: Array<Metadata.Collection>;
|
|
911
|
+
/**
|
|
912
|
+
* Conditions for completing the profile.
|
|
913
|
+
*/
|
|
914
|
+
completeProfileConditions?: {
|
|
915
|
+
[key: string]: boolean;
|
|
916
|
+
} | null;
|
|
917
|
+
/**
|
|
918
|
+
* Description of the external rule condition (only for external rules)
|
|
919
|
+
*/
|
|
920
|
+
conditionDescription?: string;
|
|
921
|
+
/**
|
|
922
|
+
* Object containing details for the call-to-action.
|
|
923
|
+
*/
|
|
924
|
+
cta?: Metadata.Cta | null;
|
|
925
|
+
/**
|
|
926
|
+
* API key for custom rewards integration.
|
|
927
|
+
*/
|
|
928
|
+
customRewardsApiKey?: string;
|
|
929
|
+
/**
|
|
930
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
931
|
+
*/
|
|
932
|
+
directRpc?: boolean;
|
|
933
|
+
/**
|
|
934
|
+
* Array of Discord servers, channels, and roles to join.
|
|
935
|
+
*/
|
|
936
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
937
|
+
/**
|
|
938
|
+
* Array of drip quests required to complete the rule.
|
|
939
|
+
*/
|
|
940
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
941
|
+
/**
|
|
942
|
+
* Flag indicating whether joining Discord servers is required.
|
|
943
|
+
*/
|
|
944
|
+
enableJoinDiscordServers?: boolean | null;
|
|
945
|
+
/**
|
|
946
|
+
* Flag indicating whether streaks are enabled.
|
|
947
|
+
*/
|
|
948
|
+
enableStreaks?: boolean | null;
|
|
949
|
+
/**
|
|
950
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
951
|
+
*/
|
|
952
|
+
enableVerifiedMultiplier?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Type of ERC20 token for the loyalty rule.
|
|
955
|
+
*/
|
|
956
|
+
erc20Type?: 'erc20' | 'native';
|
|
957
|
+
/**
|
|
958
|
+
* Fill source of the order for the token sale
|
|
959
|
+
*/
|
|
960
|
+
fillSource?: string;
|
|
961
|
+
/**
|
|
962
|
+
* Percentage reward given to a user for their first referral.
|
|
963
|
+
*/
|
|
964
|
+
firstReferralReward?: number | null;
|
|
965
|
+
/**
|
|
966
|
+
* Name of the GitHub branch to check for PR merge.
|
|
967
|
+
*/
|
|
968
|
+
githubBranchName?: string | null;
|
|
969
|
+
/**
|
|
970
|
+
* URL of the GitHub repository to check for star.
|
|
971
|
+
*/
|
|
972
|
+
githubRepoUrl?: string | null;
|
|
973
|
+
/**
|
|
974
|
+
* Flag indicating whether the fill source is included.
|
|
975
|
+
*/
|
|
976
|
+
hasFillSource?: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* Indicates if the item has never been sold.
|
|
979
|
+
*/
|
|
980
|
+
hasNeverSold?: boolean;
|
|
981
|
+
/**
|
|
982
|
+
* Indicates if the full royalty has been paid for items.
|
|
983
|
+
*/
|
|
984
|
+
hasPaidFullRoyalty?: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* Flag indicating if the sale currency is included.
|
|
987
|
+
*/
|
|
988
|
+
hasSaleCurrency?: boolean;
|
|
989
|
+
/**
|
|
990
|
+
* Indicates if the user has a verified Twitter account.
|
|
991
|
+
*/
|
|
992
|
+
hasVerifiedTwitter?: boolean;
|
|
993
|
+
/**
|
|
994
|
+
* URL of the image associated with the rule.
|
|
995
|
+
*/
|
|
996
|
+
imageUrl?: string | null;
|
|
997
|
+
/**
|
|
998
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
999
|
+
*/
|
|
1000
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1001
|
+
/**
|
|
1002
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
1003
|
+
*/
|
|
1004
|
+
isMultiplierApplied?: boolean;
|
|
1005
|
+
/**
|
|
1006
|
+
* Flag indicating if the rule is restricted to new users.
|
|
1007
|
+
*/
|
|
1008
|
+
isRestrictedToNewUsers?: boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* Flag indicating if rewards are applied retroactively.
|
|
1011
|
+
*/
|
|
1012
|
+
isRetroactive?: boolean | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
1015
|
+
*/
|
|
1016
|
+
isTokenHoldMultiplier?: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* Optional link associated with the metadata.
|
|
1019
|
+
*/
|
|
1020
|
+
link?: string | null;
|
|
1021
|
+
/**
|
|
1022
|
+
* Liquidity pool details.
|
|
1023
|
+
*/
|
|
1024
|
+
liquidity?: Metadata.Liquidity;
|
|
1025
|
+
/**
|
|
1026
|
+
* Maximum quantity constraint for token holding.
|
|
1027
|
+
*/
|
|
1028
|
+
maxQty?: number | null;
|
|
1029
|
+
/**
|
|
1030
|
+
* Minimum quantity constraint for token holding.
|
|
1031
|
+
*/
|
|
1032
|
+
minQty?: number | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
1035
|
+
*/
|
|
1036
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Flag indicating whether to include only known users.
|
|
1039
|
+
*/
|
|
1040
|
+
onlyKnownUsers?: boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
* Flag indicating whether to include only native tokens.
|
|
1043
|
+
*/
|
|
1044
|
+
onlyNative?: boolean;
|
|
1045
|
+
/**
|
|
1046
|
+
* Flag indicating whether to include only non-listed items.
|
|
1047
|
+
*/
|
|
1048
|
+
onlyNonListed?: boolean;
|
|
1049
|
+
/**
|
|
1050
|
+
* Indicates if only existing users are rewarded.
|
|
1051
|
+
*/
|
|
1052
|
+
onlyRewardExistingUser?: boolean;
|
|
1053
|
+
/**
|
|
1054
|
+
* give points for only one token ownership per contract
|
|
1055
|
+
*/
|
|
1056
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
1059
|
+
*/
|
|
1060
|
+
preGeneratedPostText?: string | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Promotional code associated with the rule.
|
|
1063
|
+
*/
|
|
1064
|
+
promoCode?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* URL of the CSV file containing promo codes.
|
|
1067
|
+
*/
|
|
1068
|
+
promoCodeCsvUrl?: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Numbers of the promotional code to be generated.
|
|
1071
|
+
*/
|
|
1072
|
+
promoCodeLength?: number | null;
|
|
1073
|
+
/**
|
|
1074
|
+
* Type of the promotional code.
|
|
1075
|
+
*/
|
|
1076
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
1077
|
+
/**
|
|
1078
|
+
* Array defining ranges and corresponding rewards.
|
|
1079
|
+
*/
|
|
1080
|
+
range?: Array<Metadata.Range>;
|
|
1081
|
+
/**
|
|
1082
|
+
* ID of the Reddit post.
|
|
1083
|
+
*/
|
|
1084
|
+
redditPostId?: string | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* Object defining referral requirements.
|
|
1087
|
+
*/
|
|
1088
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Lump sum reward given to a referrer.
|
|
1091
|
+
*/
|
|
1092
|
+
referrerReward?: number | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* Loyalty currency ID of the referrer reward.
|
|
1095
|
+
*/
|
|
1096
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Flag indicating if the post link is required.
|
|
1099
|
+
*/
|
|
1100
|
+
requirePostLink?: boolean | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Flag indicating if media metadata is required.
|
|
1103
|
+
*/
|
|
1104
|
+
requirePostMediaLink?: boolean | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
1107
|
+
*/
|
|
1108
|
+
rewardBadgePerRange?: boolean;
|
|
1109
|
+
/**
|
|
1110
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
1111
|
+
*/
|
|
1112
|
+
rewardByBatch?: boolean | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* Criteria to evaluate the reward.
|
|
1115
|
+
*/
|
|
1116
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Flag indicating if the reward is rewarded per action.
|
|
1119
|
+
*/
|
|
1120
|
+
rewardPerAction?: boolean | null;
|
|
1121
|
+
/**
|
|
1122
|
+
* Flag indicating if rewards are given per impression.
|
|
1123
|
+
*/
|
|
1124
|
+
rewardPerImpression?: boolean | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1127
|
+
* instead of count.
|
|
1128
|
+
*/
|
|
1129
|
+
rewardPerValue?: boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
* Flag indicating if the rule should reward quality posts.
|
|
1132
|
+
*/
|
|
1133
|
+
rewardQualityPosts?: boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
1136
|
+
*/
|
|
1137
|
+
royaltyAddress?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Royalty percentage of the item.
|
|
1140
|
+
*/
|
|
1141
|
+
royaltyPercentage?: number;
|
|
1142
|
+
/**
|
|
1143
|
+
* Currency associated with sales.
|
|
1144
|
+
*/
|
|
1145
|
+
saleCurrency?: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* Percentage reward given for a second-level referral.
|
|
1148
|
+
*/
|
|
1149
|
+
secondReferralReward?: number | null;
|
|
1150
|
+
/**
|
|
1151
|
+
* Flag indicating if the multiplier is skipped.
|
|
1152
|
+
*/
|
|
1153
|
+
skipMultiplier?: boolean | null;
|
|
1154
|
+
/**
|
|
1155
|
+
* Object containing details of the associated smart contract.
|
|
1156
|
+
*/
|
|
1157
|
+
smartContract?: Metadata.SmartContract;
|
|
1158
|
+
/**
|
|
1159
|
+
* Array of snapshot proposals for the rule.
|
|
1160
|
+
*/
|
|
1161
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
1162
|
+
/**
|
|
1163
|
+
* Social media platform associated with the rule.
|
|
1164
|
+
*/
|
|
1165
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | 'GitHub' | 'Reddit' | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* URL of the social platform's logo.
|
|
1168
|
+
*/
|
|
1169
|
+
socialPlatformLogo?: string | null;
|
|
1170
|
+
/**
|
|
1171
|
+
* Name of the social platform.
|
|
1172
|
+
*/
|
|
1173
|
+
socialPlatformName?: string | null;
|
|
1174
|
+
/**
|
|
1175
|
+
* ID of the Steam app.
|
|
1176
|
+
*/
|
|
1177
|
+
steamAppId?: string | null;
|
|
1178
|
+
/**
|
|
1179
|
+
* Array of streak milestones and corresponding rewards.
|
|
1180
|
+
*/
|
|
1181
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Metadata for swap loyalty rules
|
|
1184
|
+
*/
|
|
1185
|
+
swap?: Metadata.Swap;
|
|
1186
|
+
/**
|
|
1187
|
+
* ID of the Telegram channel.
|
|
1188
|
+
*/
|
|
1189
|
+
telegramChannelId?: string | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Time delay in seconds to verify actions.
|
|
1192
|
+
*/
|
|
1193
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* Flag indicating if all contracts are tracked.
|
|
1196
|
+
*/
|
|
1197
|
+
trackAllContracts?: boolean | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
1200
|
+
* completed once the progress is 100%.
|
|
1201
|
+
*/
|
|
1202
|
+
trackProgress?: boolean | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* URL of the associated Twitter account.
|
|
1205
|
+
*/
|
|
1206
|
+
twitterAccountUrl?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Hashtag associated with the Twitter post.
|
|
1209
|
+
*/
|
|
1210
|
+
twitterHashtag?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* URL of the associated Twitter post.
|
|
1213
|
+
*/
|
|
1214
|
+
twitterPostUrl?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* Unique identifier of the Twitter user.
|
|
1217
|
+
*/
|
|
1218
|
+
twitterUserId?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* Twitter username of the user.
|
|
1221
|
+
*/
|
|
1222
|
+
twitterUsername?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* Minimum length of the verification text.
|
|
1225
|
+
*/
|
|
1226
|
+
verificationTextMinimumLength?: number | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* Multiplier applied to rewards for verified users.
|
|
1229
|
+
*/
|
|
1230
|
+
verifiedMultiplier?: number | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Placeholder text for verification input fields.
|
|
1233
|
+
*/
|
|
1234
|
+
verifyPlaceHolderText?: string | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Type of wallet associated with the rule.
|
|
1237
|
+
*/
|
|
1238
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw' | 'flow_cadence' | 'substrate' | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* ID of the Youtube channel.
|
|
1241
|
+
*/
|
|
1242
|
+
youtubeChannelId?: string | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* ID of the Youtube video.
|
|
1245
|
+
*/
|
|
1246
|
+
youtubeVideoId?: string | null;
|
|
1247
|
+
}
|
|
1248
|
+
namespace Metadata {
|
|
1249
|
+
interface Collection {
|
|
1250
|
+
/**
|
|
1251
|
+
* Blockchain address of the collection.
|
|
1252
|
+
*/
|
|
1253
|
+
address?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Multiplier applied to the rewards for this collection.
|
|
1256
|
+
*/
|
|
1257
|
+
multiplier?: number;
|
|
1258
|
+
/**
|
|
1259
|
+
* Blockchain network of the collection.
|
|
1260
|
+
*/
|
|
1261
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Object containing details for the call-to-action.
|
|
1265
|
+
*/
|
|
1266
|
+
interface Cta {
|
|
1267
|
+
/**
|
|
1268
|
+
* Link for the call-to-action.
|
|
1269
|
+
*/
|
|
1270
|
+
href?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Label for the call-to-action.
|
|
1273
|
+
*/
|
|
1274
|
+
label?: string | null;
|
|
1275
|
+
}
|
|
1276
|
+
interface DiscordServersToJoin {
|
|
1277
|
+
/**
|
|
1278
|
+
* ID of the Discord server to join.
|
|
1279
|
+
*/
|
|
1280
|
+
id?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* Array of Discord channels to join.
|
|
1283
|
+
*/
|
|
1284
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
1285
|
+
/**
|
|
1286
|
+
* Array of roles to assign in the Discord server.
|
|
1287
|
+
*/
|
|
1288
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
1289
|
+
}
|
|
1290
|
+
namespace DiscordServersToJoin {
|
|
1291
|
+
interface Channel {
|
|
1292
|
+
/**
|
|
1293
|
+
* ID of the Discord channel.
|
|
1294
|
+
*/
|
|
1295
|
+
id?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* Array of emojis used in the channel.
|
|
1298
|
+
*/
|
|
1299
|
+
emojis?: Array<Channel.Emoji>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Phrase of text to be present in the discord message
|
|
1302
|
+
*/
|
|
1303
|
+
text?: string;
|
|
1304
|
+
}
|
|
1305
|
+
namespace Channel {
|
|
1306
|
+
interface Emoji {
|
|
1307
|
+
/**
|
|
1308
|
+
* ID of the emoji used in the channel.
|
|
1309
|
+
*/
|
|
1310
|
+
id?: string;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
interface Role {
|
|
1314
|
+
/**
|
|
1315
|
+
* ID of the role in the Discord server.
|
|
1316
|
+
*/
|
|
1317
|
+
id: string;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
interface DripQuestsToComplete {
|
|
1321
|
+
/**
|
|
1322
|
+
* ID of the drip quest to complete.
|
|
1323
|
+
*/
|
|
1324
|
+
id: string;
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Liquidity pool details.
|
|
1328
|
+
*/
|
|
1329
|
+
interface Liquidity {
|
|
1330
|
+
/**
|
|
1331
|
+
* Calculation type of the liquidity pool.
|
|
1332
|
+
*/
|
|
1333
|
+
calculationType?: 'fixed' | 'custom';
|
|
1334
|
+
/**
|
|
1335
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
1336
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
1337
|
+
* USD.
|
|
1338
|
+
*/
|
|
1339
|
+
customFunction?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Liquidity provided per day in USD
|
|
1342
|
+
*/
|
|
1343
|
+
liquidityPerDay?: number;
|
|
1344
|
+
/**
|
|
1345
|
+
* Blockchain network of the liquidity pool.
|
|
1346
|
+
*/
|
|
1347
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
1348
|
+
/**
|
|
1349
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1350
|
+
*/
|
|
1351
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1352
|
+
/**
|
|
1353
|
+
* Array of liquidity pools associated with the rule.
|
|
1354
|
+
*/
|
|
1355
|
+
pools?: Array<Liquidity.Pool>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Protocol of the liquidity pool.
|
|
1358
|
+
*/
|
|
1359
|
+
protocol?: string;
|
|
1360
|
+
}
|
|
1361
|
+
namespace Liquidity {
|
|
1362
|
+
interface Pool {
|
|
1363
|
+
/**
|
|
1364
|
+
* Unique identifier of the liquidity pool.
|
|
1365
|
+
*/
|
|
1366
|
+
id: string;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
interface Range {
|
|
1370
|
+
/**
|
|
1371
|
+
* Reward amount for this range.
|
|
1372
|
+
*/
|
|
1373
|
+
amount: number;
|
|
1374
|
+
/**
|
|
1375
|
+
* End value of the range.
|
|
1376
|
+
*/
|
|
1377
|
+
endRange: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* Start value of the range.
|
|
1380
|
+
*/
|
|
1381
|
+
startRange: number;
|
|
1382
|
+
/**
|
|
1383
|
+
* ID of the loyalty badge for this range.
|
|
1384
|
+
*/
|
|
1385
|
+
loyaltyBadgeId?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Amount of the loyalty multiplier for this range.
|
|
1388
|
+
*/
|
|
1389
|
+
loyaltyMultiplierAmount?: number;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Object defining referral requirements.
|
|
1393
|
+
*/
|
|
1394
|
+
interface ReferralRequirements {
|
|
1395
|
+
/**
|
|
1396
|
+
* Flag indicating if achieving points is required.
|
|
1397
|
+
*/
|
|
1398
|
+
achievePoints?: boolean | null;
|
|
1399
|
+
/**
|
|
1400
|
+
* Flag indicating if completing the profile is required.
|
|
1401
|
+
*/
|
|
1402
|
+
completeProfile?: boolean | null;
|
|
1403
|
+
/**
|
|
1404
|
+
* Flag indicating if connecting Discord is required.
|
|
1405
|
+
*/
|
|
1406
|
+
connectDiscord?: boolean | null;
|
|
1407
|
+
/**
|
|
1408
|
+
* Flag indicating if connecting email is required.
|
|
1409
|
+
*/
|
|
1410
|
+
connectEmail?: boolean | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Flag indicating if connecting Twitter is required.
|
|
1413
|
+
*/
|
|
1414
|
+
connectTwitter?: boolean | null;
|
|
1415
|
+
points?: ReferralRequirements.Points | null;
|
|
1416
|
+
}
|
|
1417
|
+
namespace ReferralRequirements {
|
|
1418
|
+
interface Points {
|
|
1419
|
+
/**
|
|
1420
|
+
* Points required for referral.
|
|
1421
|
+
*/
|
|
1422
|
+
amount?: number | null;
|
|
1423
|
+
/**
|
|
1424
|
+
* ID of the loyalty currency for referral.
|
|
1425
|
+
*/
|
|
1426
|
+
loyaltyCurrecyId?: string | null;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Object containing details of the associated smart contract.
|
|
1431
|
+
*/
|
|
1432
|
+
interface SmartContract {
|
|
1433
|
+
/**
|
|
1434
|
+
* Mapping of addresses for the smart contract.
|
|
1435
|
+
*/
|
|
1436
|
+
addressMapping?: string | null;
|
|
1437
|
+
/**
|
|
1438
|
+
* Object containing details of the amount multiplier from the event.
|
|
1439
|
+
*/
|
|
1440
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
1441
|
+
/**
|
|
1442
|
+
* ID of the smart contract.
|
|
1443
|
+
*/
|
|
1444
|
+
contractId?: string | null;
|
|
1445
|
+
/**
|
|
1446
|
+
* Criteria to evaluate the smart contract event.
|
|
1447
|
+
*/
|
|
1448
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
1449
|
+
/**
|
|
1450
|
+
* Event emitted by the smart contract.
|
|
1451
|
+
*/
|
|
1452
|
+
event?: string | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* Array of parameters for the smart contract.
|
|
1455
|
+
*/
|
|
1456
|
+
params?: Array<SmartContract.Param> | null;
|
|
1457
|
+
/**
|
|
1458
|
+
* Type of the smart contract interaction.
|
|
1459
|
+
*/
|
|
1460
|
+
type?: 'function' | 'event' | null;
|
|
1461
|
+
}
|
|
1462
|
+
namespace SmartContract {
|
|
1463
|
+
/**
|
|
1464
|
+
* Object containing details of the amount multiplier from the event.
|
|
1465
|
+
*/
|
|
1466
|
+
interface AmountMultiplier {
|
|
1467
|
+
/**
|
|
1468
|
+
* Mapping of the value for the smart contract.
|
|
1469
|
+
*/
|
|
1470
|
+
valueMapping?: string | null;
|
|
1471
|
+
}
|
|
1472
|
+
interface Param {
|
|
1473
|
+
/**
|
|
1474
|
+
* Condition to check for the parameter.
|
|
1475
|
+
*/
|
|
1476
|
+
condition?: string | null;
|
|
1477
|
+
/**
|
|
1478
|
+
* Name of the smart contract parameter.
|
|
1479
|
+
*/
|
|
1480
|
+
name?: string | null;
|
|
1481
|
+
/**
|
|
1482
|
+
* Value of the parameter.
|
|
1483
|
+
*/
|
|
1484
|
+
value?: string | null;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
interface SnapshotProposal {
|
|
1488
|
+
/**
|
|
1489
|
+
* ID of the snapshot proposal.
|
|
1490
|
+
*/
|
|
1491
|
+
id: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* Space associated with the snapshot proposal.
|
|
1494
|
+
*/
|
|
1495
|
+
space: string;
|
|
1496
|
+
}
|
|
1497
|
+
interface StreakArray {
|
|
1498
|
+
/**
|
|
1499
|
+
* Reward amount for achieving the streak milestone.
|
|
1500
|
+
*/
|
|
1501
|
+
streakAmount: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Milestone required to achieve the streak.
|
|
1504
|
+
*/
|
|
1505
|
+
streakMilestone: number;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Metadata for swap loyalty rules
|
|
1509
|
+
*/
|
|
1510
|
+
interface Swap {
|
|
1511
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1512
|
+
relayReferrerId?: string;
|
|
1513
|
+
requireCrossChainSwap?: boolean;
|
|
1514
|
+
swappedToChain?: 'any' | number | string;
|
|
1515
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
1516
|
+
tokenMode?: 'any' | 'specific';
|
|
1517
|
+
trackTokenAmount?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
namespace Swap {
|
|
1520
|
+
interface SwappedToToken {
|
|
1521
|
+
address: string;
|
|
1522
|
+
chainId: string;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
158
1526
|
}
|
|
159
1527
|
}
|
|
160
1528
|
}
|
|
@@ -212,7 +1580,7 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
212
1580
|
/**
|
|
213
1581
|
* Amount associated with the loyalty rule
|
|
214
1582
|
*/
|
|
215
|
-
amount: number;
|
|
1583
|
+
amount: number | null;
|
|
216
1584
|
/**
|
|
217
1585
|
* Timestamp when the loyalty rule was created
|
|
218
1586
|
*/
|
|
@@ -221,14 +1589,34 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
221
1589
|
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
222
1590
|
*/
|
|
223
1591
|
deletedAt: string | null;
|
|
1592
|
+
/**
|
|
1593
|
+
* Description of the loyalty rule
|
|
1594
|
+
*/
|
|
1595
|
+
description: string;
|
|
1596
|
+
/**
|
|
1597
|
+
* End time of the loyalty rule
|
|
1598
|
+
*/
|
|
1599
|
+
endTime: string | null;
|
|
224
1600
|
/**
|
|
225
1601
|
* Frequency of the loyalty rule
|
|
226
1602
|
*/
|
|
227
1603
|
frequency: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Name of the loyalty rule
|
|
1606
|
+
*/
|
|
1607
|
+
name: string;
|
|
228
1608
|
/**
|
|
229
1609
|
* Unique identifier for the organization
|
|
230
1610
|
*/
|
|
231
1611
|
organizationId: string;
|
|
1612
|
+
/**
|
|
1613
|
+
* Type of the reward
|
|
1614
|
+
*/
|
|
1615
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
1616
|
+
/**
|
|
1617
|
+
* Start time of the loyalty rule
|
|
1618
|
+
*/
|
|
1619
|
+
startTime: string | null;
|
|
232
1620
|
/**
|
|
233
1621
|
* Type of the loyalty rule
|
|
234
1622
|
*/
|
|
@@ -245,10 +1633,667 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
245
1633
|
* Optional address of the collection
|
|
246
1634
|
*/
|
|
247
1635
|
collectionAddress?: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* URL of the media associated with the loyalty rule
|
|
1638
|
+
*/
|
|
1639
|
+
mediaUrl?: string | null;
|
|
248
1640
|
/**
|
|
249
1641
|
* Optional metadata for the loyalty rule
|
|
250
1642
|
*/
|
|
251
|
-
metadata?:
|
|
1643
|
+
metadata?: {
|
|
1644
|
+
[key: string]: Data.Metadata;
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
namespace Data {
|
|
1648
|
+
interface Metadata {
|
|
1649
|
+
/**
|
|
1650
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
1651
|
+
* any rule completions count as check-in.
|
|
1652
|
+
*/
|
|
1653
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
1654
|
+
/**
|
|
1655
|
+
* Number of tokens per batch.
|
|
1656
|
+
*/
|
|
1657
|
+
batchSize?: number | null;
|
|
1658
|
+
/**
|
|
1659
|
+
* Text displayed on the action button.
|
|
1660
|
+
*/
|
|
1661
|
+
buttonText?: string | null;
|
|
1662
|
+
/**
|
|
1663
|
+
* Flag indicating if commenting is required.
|
|
1664
|
+
*/
|
|
1665
|
+
checkComment?: boolean | null;
|
|
1666
|
+
/**
|
|
1667
|
+
* Flag indicating if liking the post is required.
|
|
1668
|
+
*/
|
|
1669
|
+
checkLike?: boolean | null;
|
|
1670
|
+
/**
|
|
1671
|
+
* Flag indicating if reposting is required.
|
|
1672
|
+
*/
|
|
1673
|
+
checkRepost?: boolean | null;
|
|
1674
|
+
/**
|
|
1675
|
+
* Text to check in the Twitter post, username, or bio.
|
|
1676
|
+
*/
|
|
1677
|
+
checkText?: string | Array<string> | null;
|
|
1678
|
+
/**
|
|
1679
|
+
* Array of collections associated with the rule.
|
|
1680
|
+
*/
|
|
1681
|
+
collection?: Array<Metadata.Collection>;
|
|
1682
|
+
/**
|
|
1683
|
+
* Conditions for completing the profile.
|
|
1684
|
+
*/
|
|
1685
|
+
completeProfileConditions?: {
|
|
1686
|
+
[key: string]: boolean;
|
|
1687
|
+
} | null;
|
|
1688
|
+
/**
|
|
1689
|
+
* Description of the external rule condition (only for external rules)
|
|
1690
|
+
*/
|
|
1691
|
+
conditionDescription?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* Object containing details for the call-to-action.
|
|
1694
|
+
*/
|
|
1695
|
+
cta?: Metadata.Cta | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* API key for custom rewards integration.
|
|
1698
|
+
*/
|
|
1699
|
+
customRewardsApiKey?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
1702
|
+
*/
|
|
1703
|
+
directRpc?: boolean;
|
|
1704
|
+
/**
|
|
1705
|
+
* Array of Discord servers, channels, and roles to join.
|
|
1706
|
+
*/
|
|
1707
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
1708
|
+
/**
|
|
1709
|
+
* Array of drip quests required to complete the rule.
|
|
1710
|
+
*/
|
|
1711
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
1712
|
+
/**
|
|
1713
|
+
* Flag indicating whether joining Discord servers is required.
|
|
1714
|
+
*/
|
|
1715
|
+
enableJoinDiscordServers?: boolean | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* Flag indicating whether streaks are enabled.
|
|
1718
|
+
*/
|
|
1719
|
+
enableStreaks?: boolean | null;
|
|
1720
|
+
/**
|
|
1721
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
1722
|
+
*/
|
|
1723
|
+
enableVerifiedMultiplier?: boolean;
|
|
1724
|
+
/**
|
|
1725
|
+
* Type of ERC20 token for the loyalty rule.
|
|
1726
|
+
*/
|
|
1727
|
+
erc20Type?: 'erc20' | 'native';
|
|
1728
|
+
/**
|
|
1729
|
+
* Fill source of the order for the token sale
|
|
1730
|
+
*/
|
|
1731
|
+
fillSource?: string;
|
|
1732
|
+
/**
|
|
1733
|
+
* Percentage reward given to a user for their first referral.
|
|
1734
|
+
*/
|
|
1735
|
+
firstReferralReward?: number | null;
|
|
1736
|
+
/**
|
|
1737
|
+
* Name of the GitHub branch to check for PR merge.
|
|
1738
|
+
*/
|
|
1739
|
+
githubBranchName?: string | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* URL of the GitHub repository to check for star.
|
|
1742
|
+
*/
|
|
1743
|
+
githubRepoUrl?: string | null;
|
|
1744
|
+
/**
|
|
1745
|
+
* Flag indicating whether the fill source is included.
|
|
1746
|
+
*/
|
|
1747
|
+
hasFillSource?: boolean;
|
|
1748
|
+
/**
|
|
1749
|
+
* Indicates if the item has never been sold.
|
|
1750
|
+
*/
|
|
1751
|
+
hasNeverSold?: boolean;
|
|
1752
|
+
/**
|
|
1753
|
+
* Indicates if the full royalty has been paid for items.
|
|
1754
|
+
*/
|
|
1755
|
+
hasPaidFullRoyalty?: boolean;
|
|
1756
|
+
/**
|
|
1757
|
+
* Flag indicating if the sale currency is included.
|
|
1758
|
+
*/
|
|
1759
|
+
hasSaleCurrency?: boolean;
|
|
1760
|
+
/**
|
|
1761
|
+
* Indicates if the user has a verified Twitter account.
|
|
1762
|
+
*/
|
|
1763
|
+
hasVerifiedTwitter?: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* URL of the image associated with the rule.
|
|
1766
|
+
*/
|
|
1767
|
+
imageUrl?: string | null;
|
|
1768
|
+
/**
|
|
1769
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
1770
|
+
*/
|
|
1771
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
1774
|
+
*/
|
|
1775
|
+
isMultiplierApplied?: boolean;
|
|
1776
|
+
/**
|
|
1777
|
+
* Flag indicating if the rule is restricted to new users.
|
|
1778
|
+
*/
|
|
1779
|
+
isRestrictedToNewUsers?: boolean;
|
|
1780
|
+
/**
|
|
1781
|
+
* Flag indicating if rewards are applied retroactively.
|
|
1782
|
+
*/
|
|
1783
|
+
isRetroactive?: boolean | null;
|
|
1784
|
+
/**
|
|
1785
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
1786
|
+
*/
|
|
1787
|
+
isTokenHoldMultiplier?: boolean;
|
|
1788
|
+
/**
|
|
1789
|
+
* Optional link associated with the metadata.
|
|
1790
|
+
*/
|
|
1791
|
+
link?: string | null;
|
|
1792
|
+
/**
|
|
1793
|
+
* Liquidity pool details.
|
|
1794
|
+
*/
|
|
1795
|
+
liquidity?: Metadata.Liquidity;
|
|
1796
|
+
/**
|
|
1797
|
+
* Maximum quantity constraint for token holding.
|
|
1798
|
+
*/
|
|
1799
|
+
maxQty?: number | null;
|
|
1800
|
+
/**
|
|
1801
|
+
* Minimum quantity constraint for token holding.
|
|
1802
|
+
*/
|
|
1803
|
+
minQty?: number | null;
|
|
1804
|
+
/**
|
|
1805
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
1806
|
+
*/
|
|
1807
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
1808
|
+
/**
|
|
1809
|
+
* Flag indicating whether to include only known users.
|
|
1810
|
+
*/
|
|
1811
|
+
onlyKnownUsers?: boolean;
|
|
1812
|
+
/**
|
|
1813
|
+
* Flag indicating whether to include only native tokens.
|
|
1814
|
+
*/
|
|
1815
|
+
onlyNative?: boolean;
|
|
1816
|
+
/**
|
|
1817
|
+
* Flag indicating whether to include only non-listed items.
|
|
1818
|
+
*/
|
|
1819
|
+
onlyNonListed?: boolean;
|
|
1820
|
+
/**
|
|
1821
|
+
* Indicates if only existing users are rewarded.
|
|
1822
|
+
*/
|
|
1823
|
+
onlyRewardExistingUser?: boolean;
|
|
1824
|
+
/**
|
|
1825
|
+
* give points for only one token ownership per contract
|
|
1826
|
+
*/
|
|
1827
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
1830
|
+
*/
|
|
1831
|
+
preGeneratedPostText?: string | null;
|
|
1832
|
+
/**
|
|
1833
|
+
* Promotional code associated with the rule.
|
|
1834
|
+
*/
|
|
1835
|
+
promoCode?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* URL of the CSV file containing promo codes.
|
|
1838
|
+
*/
|
|
1839
|
+
promoCodeCsvUrl?: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* Numbers of the promotional code to be generated.
|
|
1842
|
+
*/
|
|
1843
|
+
promoCodeLength?: number | null;
|
|
1844
|
+
/**
|
|
1845
|
+
* Type of the promotional code.
|
|
1846
|
+
*/
|
|
1847
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
1848
|
+
/**
|
|
1849
|
+
* Array defining ranges and corresponding rewards.
|
|
1850
|
+
*/
|
|
1851
|
+
range?: Array<Metadata.Range>;
|
|
1852
|
+
/**
|
|
1853
|
+
* ID of the Reddit post.
|
|
1854
|
+
*/
|
|
1855
|
+
redditPostId?: string | null;
|
|
1856
|
+
/**
|
|
1857
|
+
* Object defining referral requirements.
|
|
1858
|
+
*/
|
|
1859
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* Lump sum reward given to a referrer.
|
|
1862
|
+
*/
|
|
1863
|
+
referrerReward?: number | null;
|
|
1864
|
+
/**
|
|
1865
|
+
* Loyalty currency ID of the referrer reward.
|
|
1866
|
+
*/
|
|
1867
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
1868
|
+
/**
|
|
1869
|
+
* Flag indicating if the post link is required.
|
|
1870
|
+
*/
|
|
1871
|
+
requirePostLink?: boolean | null;
|
|
1872
|
+
/**
|
|
1873
|
+
* Flag indicating if media metadata is required.
|
|
1874
|
+
*/
|
|
1875
|
+
requirePostMediaLink?: boolean | null;
|
|
1876
|
+
/**
|
|
1877
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
1878
|
+
*/
|
|
1879
|
+
rewardBadgePerRange?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
1882
|
+
*/
|
|
1883
|
+
rewardByBatch?: boolean | null;
|
|
1884
|
+
/**
|
|
1885
|
+
* Criteria to evaluate the reward.
|
|
1886
|
+
*/
|
|
1887
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
1888
|
+
/**
|
|
1889
|
+
* Flag indicating if the reward is rewarded per action.
|
|
1890
|
+
*/
|
|
1891
|
+
rewardPerAction?: boolean | null;
|
|
1892
|
+
/**
|
|
1893
|
+
* Flag indicating if rewards are given per impression.
|
|
1894
|
+
*/
|
|
1895
|
+
rewardPerImpression?: boolean | null;
|
|
1896
|
+
/**
|
|
1897
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1898
|
+
* instead of count.
|
|
1899
|
+
*/
|
|
1900
|
+
rewardPerValue?: boolean;
|
|
1901
|
+
/**
|
|
1902
|
+
* Flag indicating if the rule should reward quality posts.
|
|
1903
|
+
*/
|
|
1904
|
+
rewardQualityPosts?: boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
1907
|
+
*/
|
|
1908
|
+
royaltyAddress?: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* Royalty percentage of the item.
|
|
1911
|
+
*/
|
|
1912
|
+
royaltyPercentage?: number;
|
|
1913
|
+
/**
|
|
1914
|
+
* Currency associated with sales.
|
|
1915
|
+
*/
|
|
1916
|
+
saleCurrency?: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* Percentage reward given for a second-level referral.
|
|
1919
|
+
*/
|
|
1920
|
+
secondReferralReward?: number | null;
|
|
1921
|
+
/**
|
|
1922
|
+
* Flag indicating if the multiplier is skipped.
|
|
1923
|
+
*/
|
|
1924
|
+
skipMultiplier?: boolean | null;
|
|
1925
|
+
/**
|
|
1926
|
+
* Object containing details of the associated smart contract.
|
|
1927
|
+
*/
|
|
1928
|
+
smartContract?: Metadata.SmartContract;
|
|
1929
|
+
/**
|
|
1930
|
+
* Array of snapshot proposals for the rule.
|
|
1931
|
+
*/
|
|
1932
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
1933
|
+
/**
|
|
1934
|
+
* Social media platform associated with the rule.
|
|
1935
|
+
*/
|
|
1936
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | 'GitHub' | 'Reddit' | null;
|
|
1937
|
+
/**
|
|
1938
|
+
* URL of the social platform's logo.
|
|
1939
|
+
*/
|
|
1940
|
+
socialPlatformLogo?: string | null;
|
|
1941
|
+
/**
|
|
1942
|
+
* Name of the social platform.
|
|
1943
|
+
*/
|
|
1944
|
+
socialPlatformName?: string | null;
|
|
1945
|
+
/**
|
|
1946
|
+
* ID of the Steam app.
|
|
1947
|
+
*/
|
|
1948
|
+
steamAppId?: string | null;
|
|
1949
|
+
/**
|
|
1950
|
+
* Array of streak milestones and corresponding rewards.
|
|
1951
|
+
*/
|
|
1952
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
1953
|
+
/**
|
|
1954
|
+
* Metadata for swap loyalty rules
|
|
1955
|
+
*/
|
|
1956
|
+
swap?: Metadata.Swap;
|
|
1957
|
+
/**
|
|
1958
|
+
* ID of the Telegram channel.
|
|
1959
|
+
*/
|
|
1960
|
+
telegramChannelId?: string | null;
|
|
1961
|
+
/**
|
|
1962
|
+
* Time delay in seconds to verify actions.
|
|
1963
|
+
*/
|
|
1964
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
1965
|
+
/**
|
|
1966
|
+
* Flag indicating if all contracts are tracked.
|
|
1967
|
+
*/
|
|
1968
|
+
trackAllContracts?: boolean | null;
|
|
1969
|
+
/**
|
|
1970
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
1971
|
+
* completed once the progress is 100%.
|
|
1972
|
+
*/
|
|
1973
|
+
trackProgress?: boolean | null;
|
|
1974
|
+
/**
|
|
1975
|
+
* URL of the associated Twitter account.
|
|
1976
|
+
*/
|
|
1977
|
+
twitterAccountUrl?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* Hashtag associated with the Twitter post.
|
|
1980
|
+
*/
|
|
1981
|
+
twitterHashtag?: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* URL of the associated Twitter post.
|
|
1984
|
+
*/
|
|
1985
|
+
twitterPostUrl?: string;
|
|
1986
|
+
/**
|
|
1987
|
+
* Unique identifier of the Twitter user.
|
|
1988
|
+
*/
|
|
1989
|
+
twitterUserId?: string;
|
|
1990
|
+
/**
|
|
1991
|
+
* Twitter username of the user.
|
|
1992
|
+
*/
|
|
1993
|
+
twitterUsername?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* Minimum length of the verification text.
|
|
1996
|
+
*/
|
|
1997
|
+
verificationTextMinimumLength?: number | null;
|
|
1998
|
+
/**
|
|
1999
|
+
* Multiplier applied to rewards for verified users.
|
|
2000
|
+
*/
|
|
2001
|
+
verifiedMultiplier?: number | null;
|
|
2002
|
+
/**
|
|
2003
|
+
* Placeholder text for verification input fields.
|
|
2004
|
+
*/
|
|
2005
|
+
verifyPlaceHolderText?: string | null;
|
|
2006
|
+
/**
|
|
2007
|
+
* Type of wallet associated with the rule.
|
|
2008
|
+
*/
|
|
2009
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw' | 'flow_cadence' | 'substrate' | null;
|
|
2010
|
+
/**
|
|
2011
|
+
* ID of the Youtube channel.
|
|
2012
|
+
*/
|
|
2013
|
+
youtubeChannelId?: string | null;
|
|
2014
|
+
/**
|
|
2015
|
+
* ID of the Youtube video.
|
|
2016
|
+
*/
|
|
2017
|
+
youtubeVideoId?: string | null;
|
|
2018
|
+
}
|
|
2019
|
+
namespace Metadata {
|
|
2020
|
+
interface Collection {
|
|
2021
|
+
/**
|
|
2022
|
+
* Blockchain address of the collection.
|
|
2023
|
+
*/
|
|
2024
|
+
address?: string;
|
|
2025
|
+
/**
|
|
2026
|
+
* Multiplier applied to the rewards for this collection.
|
|
2027
|
+
*/
|
|
2028
|
+
multiplier?: number;
|
|
2029
|
+
/**
|
|
2030
|
+
* Blockchain network of the collection.
|
|
2031
|
+
*/
|
|
2032
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Object containing details for the call-to-action.
|
|
2036
|
+
*/
|
|
2037
|
+
interface Cta {
|
|
2038
|
+
/**
|
|
2039
|
+
* Link for the call-to-action.
|
|
2040
|
+
*/
|
|
2041
|
+
href?: string | null;
|
|
2042
|
+
/**
|
|
2043
|
+
* Label for the call-to-action.
|
|
2044
|
+
*/
|
|
2045
|
+
label?: string | null;
|
|
2046
|
+
}
|
|
2047
|
+
interface DiscordServersToJoin {
|
|
2048
|
+
/**
|
|
2049
|
+
* ID of the Discord server to join.
|
|
2050
|
+
*/
|
|
2051
|
+
id?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* Array of Discord channels to join.
|
|
2054
|
+
*/
|
|
2055
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
2056
|
+
/**
|
|
2057
|
+
* Array of roles to assign in the Discord server.
|
|
2058
|
+
*/
|
|
2059
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
2060
|
+
}
|
|
2061
|
+
namespace DiscordServersToJoin {
|
|
2062
|
+
interface Channel {
|
|
2063
|
+
/**
|
|
2064
|
+
* ID of the Discord channel.
|
|
2065
|
+
*/
|
|
2066
|
+
id?: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Array of emojis used in the channel.
|
|
2069
|
+
*/
|
|
2070
|
+
emojis?: Array<Channel.Emoji>;
|
|
2071
|
+
/**
|
|
2072
|
+
* Phrase of text to be present in the discord message
|
|
2073
|
+
*/
|
|
2074
|
+
text?: string;
|
|
2075
|
+
}
|
|
2076
|
+
namespace Channel {
|
|
2077
|
+
interface Emoji {
|
|
2078
|
+
/**
|
|
2079
|
+
* ID of the emoji used in the channel.
|
|
2080
|
+
*/
|
|
2081
|
+
id?: string;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
interface Role {
|
|
2085
|
+
/**
|
|
2086
|
+
* ID of the role in the Discord server.
|
|
2087
|
+
*/
|
|
2088
|
+
id: string;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
interface DripQuestsToComplete {
|
|
2092
|
+
/**
|
|
2093
|
+
* ID of the drip quest to complete.
|
|
2094
|
+
*/
|
|
2095
|
+
id: string;
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2098
|
+
* Liquidity pool details.
|
|
2099
|
+
*/
|
|
2100
|
+
interface Liquidity {
|
|
2101
|
+
/**
|
|
2102
|
+
* Calculation type of the liquidity pool.
|
|
2103
|
+
*/
|
|
2104
|
+
calculationType?: 'fixed' | 'custom';
|
|
2105
|
+
/**
|
|
2106
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
2107
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
2108
|
+
* USD.
|
|
2109
|
+
*/
|
|
2110
|
+
customFunction?: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* Liquidity provided per day in USD
|
|
2113
|
+
*/
|
|
2114
|
+
liquidityPerDay?: number;
|
|
2115
|
+
/**
|
|
2116
|
+
* Blockchain network of the liquidity pool.
|
|
2117
|
+
*/
|
|
2118
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
2119
|
+
/**
|
|
2120
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
2121
|
+
*/
|
|
2122
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
2123
|
+
/**
|
|
2124
|
+
* Array of liquidity pools associated with the rule.
|
|
2125
|
+
*/
|
|
2126
|
+
pools?: Array<Liquidity.Pool>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Protocol of the liquidity pool.
|
|
2129
|
+
*/
|
|
2130
|
+
protocol?: string;
|
|
2131
|
+
}
|
|
2132
|
+
namespace Liquidity {
|
|
2133
|
+
interface Pool {
|
|
2134
|
+
/**
|
|
2135
|
+
* Unique identifier of the liquidity pool.
|
|
2136
|
+
*/
|
|
2137
|
+
id: string;
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
interface Range {
|
|
2141
|
+
/**
|
|
2142
|
+
* Reward amount for this range.
|
|
2143
|
+
*/
|
|
2144
|
+
amount: number;
|
|
2145
|
+
/**
|
|
2146
|
+
* End value of the range.
|
|
2147
|
+
*/
|
|
2148
|
+
endRange: number;
|
|
2149
|
+
/**
|
|
2150
|
+
* Start value of the range.
|
|
2151
|
+
*/
|
|
2152
|
+
startRange: number;
|
|
2153
|
+
/**
|
|
2154
|
+
* ID of the loyalty badge for this range.
|
|
2155
|
+
*/
|
|
2156
|
+
loyaltyBadgeId?: string;
|
|
2157
|
+
/**
|
|
2158
|
+
* Amount of the loyalty multiplier for this range.
|
|
2159
|
+
*/
|
|
2160
|
+
loyaltyMultiplierAmount?: number;
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* Object defining referral requirements.
|
|
2164
|
+
*/
|
|
2165
|
+
interface ReferralRequirements {
|
|
2166
|
+
/**
|
|
2167
|
+
* Flag indicating if achieving points is required.
|
|
2168
|
+
*/
|
|
2169
|
+
achievePoints?: boolean | null;
|
|
2170
|
+
/**
|
|
2171
|
+
* Flag indicating if completing the profile is required.
|
|
2172
|
+
*/
|
|
2173
|
+
completeProfile?: boolean | null;
|
|
2174
|
+
/**
|
|
2175
|
+
* Flag indicating if connecting Discord is required.
|
|
2176
|
+
*/
|
|
2177
|
+
connectDiscord?: boolean | null;
|
|
2178
|
+
/**
|
|
2179
|
+
* Flag indicating if connecting email is required.
|
|
2180
|
+
*/
|
|
2181
|
+
connectEmail?: boolean | null;
|
|
2182
|
+
/**
|
|
2183
|
+
* Flag indicating if connecting Twitter is required.
|
|
2184
|
+
*/
|
|
2185
|
+
connectTwitter?: boolean | null;
|
|
2186
|
+
points?: ReferralRequirements.Points | null;
|
|
2187
|
+
}
|
|
2188
|
+
namespace ReferralRequirements {
|
|
2189
|
+
interface Points {
|
|
2190
|
+
/**
|
|
2191
|
+
* Points required for referral.
|
|
2192
|
+
*/
|
|
2193
|
+
amount?: number | null;
|
|
2194
|
+
/**
|
|
2195
|
+
* ID of the loyalty currency for referral.
|
|
2196
|
+
*/
|
|
2197
|
+
loyaltyCurrecyId?: string | null;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* Object containing details of the associated smart contract.
|
|
2202
|
+
*/
|
|
2203
|
+
interface SmartContract {
|
|
2204
|
+
/**
|
|
2205
|
+
* Mapping of addresses for the smart contract.
|
|
2206
|
+
*/
|
|
2207
|
+
addressMapping?: string | null;
|
|
2208
|
+
/**
|
|
2209
|
+
* Object containing details of the amount multiplier from the event.
|
|
2210
|
+
*/
|
|
2211
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
2212
|
+
/**
|
|
2213
|
+
* ID of the smart contract.
|
|
2214
|
+
*/
|
|
2215
|
+
contractId?: string | null;
|
|
2216
|
+
/**
|
|
2217
|
+
* Criteria to evaluate the smart contract event.
|
|
2218
|
+
*/
|
|
2219
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
2220
|
+
/**
|
|
2221
|
+
* Event emitted by the smart contract.
|
|
2222
|
+
*/
|
|
2223
|
+
event?: string | null;
|
|
2224
|
+
/**
|
|
2225
|
+
* Array of parameters for the smart contract.
|
|
2226
|
+
*/
|
|
2227
|
+
params?: Array<SmartContract.Param> | null;
|
|
2228
|
+
/**
|
|
2229
|
+
* Type of the smart contract interaction.
|
|
2230
|
+
*/
|
|
2231
|
+
type?: 'function' | 'event' | null;
|
|
2232
|
+
}
|
|
2233
|
+
namespace SmartContract {
|
|
2234
|
+
/**
|
|
2235
|
+
* Object containing details of the amount multiplier from the event.
|
|
2236
|
+
*/
|
|
2237
|
+
interface AmountMultiplier {
|
|
2238
|
+
/**
|
|
2239
|
+
* Mapping of the value for the smart contract.
|
|
2240
|
+
*/
|
|
2241
|
+
valueMapping?: string | null;
|
|
2242
|
+
}
|
|
2243
|
+
interface Param {
|
|
2244
|
+
/**
|
|
2245
|
+
* Condition to check for the parameter.
|
|
2246
|
+
*/
|
|
2247
|
+
condition?: string | null;
|
|
2248
|
+
/**
|
|
2249
|
+
* Name of the smart contract parameter.
|
|
2250
|
+
*/
|
|
2251
|
+
name?: string | null;
|
|
2252
|
+
/**
|
|
2253
|
+
* Value of the parameter.
|
|
2254
|
+
*/
|
|
2255
|
+
value?: string | null;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
interface SnapshotProposal {
|
|
2259
|
+
/**
|
|
2260
|
+
* ID of the snapshot proposal.
|
|
2261
|
+
*/
|
|
2262
|
+
id: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* Space associated with the snapshot proposal.
|
|
2265
|
+
*/
|
|
2266
|
+
space: string;
|
|
2267
|
+
}
|
|
2268
|
+
interface StreakArray {
|
|
2269
|
+
/**
|
|
2270
|
+
* Reward amount for achieving the streak milestone.
|
|
2271
|
+
*/
|
|
2272
|
+
streakAmount: number;
|
|
2273
|
+
/**
|
|
2274
|
+
* Milestone required to achieve the streak.
|
|
2275
|
+
*/
|
|
2276
|
+
streakMilestone: number;
|
|
2277
|
+
}
|
|
2278
|
+
/**
|
|
2279
|
+
* Metadata for swap loyalty rules
|
|
2280
|
+
*/
|
|
2281
|
+
interface Swap {
|
|
2282
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
2283
|
+
relayReferrerId?: string;
|
|
2284
|
+
requireCrossChainSwap?: boolean;
|
|
2285
|
+
swappedToChain?: 'any' | number | string;
|
|
2286
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
2287
|
+
tokenMode?: 'any' | 'specific';
|
|
2288
|
+
trackTokenAmount?: boolean;
|
|
2289
|
+
}
|
|
2290
|
+
namespace Swap {
|
|
2291
|
+
interface SwappedToToken {
|
|
2292
|
+
address: string;
|
|
2293
|
+
chainId: string;
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
252
2297
|
}
|
|
253
2298
|
/**
|
|
254
2299
|
* Previous data of the rule before the edit
|
|
@@ -261,7 +2306,7 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
261
2306
|
/**
|
|
262
2307
|
* Amount associated with the loyalty rule
|
|
263
2308
|
*/
|
|
264
|
-
amount: number;
|
|
2309
|
+
amount: number | null;
|
|
265
2310
|
/**
|
|
266
2311
|
* Timestamp when the loyalty rule was created
|
|
267
2312
|
*/
|
|
@@ -270,14 +2315,34 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
270
2315
|
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
271
2316
|
*/
|
|
272
2317
|
deletedAt: string | null;
|
|
2318
|
+
/**
|
|
2319
|
+
* Description of the loyalty rule
|
|
2320
|
+
*/
|
|
2321
|
+
description: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* End time of the loyalty rule
|
|
2324
|
+
*/
|
|
2325
|
+
endTime: string | null;
|
|
273
2326
|
/**
|
|
274
2327
|
* Frequency of the loyalty rule
|
|
275
2328
|
*/
|
|
276
2329
|
frequency: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* Name of the loyalty rule
|
|
2332
|
+
*/
|
|
2333
|
+
name: string;
|
|
277
2334
|
/**
|
|
278
2335
|
* Unique identifier for the organization
|
|
279
2336
|
*/
|
|
280
2337
|
organizationId: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Type of the reward
|
|
2340
|
+
*/
|
|
2341
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
2342
|
+
/**
|
|
2343
|
+
* Start time of the loyalty rule
|
|
2344
|
+
*/
|
|
2345
|
+
startTime: string | null;
|
|
281
2346
|
/**
|
|
282
2347
|
* Type of the loyalty rule
|
|
283
2348
|
*/
|
|
@@ -294,10 +2359,667 @@ export declare namespace RuleEditRestoreResponse {
|
|
|
294
2359
|
* Optional address of the collection
|
|
295
2360
|
*/
|
|
296
2361
|
collectionAddress?: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* URL of the media associated with the loyalty rule
|
|
2364
|
+
*/
|
|
2365
|
+
mediaUrl?: string | null;
|
|
297
2366
|
/**
|
|
298
2367
|
* Optional metadata for the loyalty rule
|
|
299
2368
|
*/
|
|
300
|
-
metadata?:
|
|
2369
|
+
metadata?: {
|
|
2370
|
+
[key: string]: PreviousData.Metadata;
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
namespace PreviousData {
|
|
2374
|
+
interface Metadata {
|
|
2375
|
+
/**
|
|
2376
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
2377
|
+
* any rule completions count as check-in.
|
|
2378
|
+
*/
|
|
2379
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
2380
|
+
/**
|
|
2381
|
+
* Number of tokens per batch.
|
|
2382
|
+
*/
|
|
2383
|
+
batchSize?: number | null;
|
|
2384
|
+
/**
|
|
2385
|
+
* Text displayed on the action button.
|
|
2386
|
+
*/
|
|
2387
|
+
buttonText?: string | null;
|
|
2388
|
+
/**
|
|
2389
|
+
* Flag indicating if commenting is required.
|
|
2390
|
+
*/
|
|
2391
|
+
checkComment?: boolean | null;
|
|
2392
|
+
/**
|
|
2393
|
+
* Flag indicating if liking the post is required.
|
|
2394
|
+
*/
|
|
2395
|
+
checkLike?: boolean | null;
|
|
2396
|
+
/**
|
|
2397
|
+
* Flag indicating if reposting is required.
|
|
2398
|
+
*/
|
|
2399
|
+
checkRepost?: boolean | null;
|
|
2400
|
+
/**
|
|
2401
|
+
* Text to check in the Twitter post, username, or bio.
|
|
2402
|
+
*/
|
|
2403
|
+
checkText?: string | Array<string> | null;
|
|
2404
|
+
/**
|
|
2405
|
+
* Array of collections associated with the rule.
|
|
2406
|
+
*/
|
|
2407
|
+
collection?: Array<Metadata.Collection>;
|
|
2408
|
+
/**
|
|
2409
|
+
* Conditions for completing the profile.
|
|
2410
|
+
*/
|
|
2411
|
+
completeProfileConditions?: {
|
|
2412
|
+
[key: string]: boolean;
|
|
2413
|
+
} | null;
|
|
2414
|
+
/**
|
|
2415
|
+
* Description of the external rule condition (only for external rules)
|
|
2416
|
+
*/
|
|
2417
|
+
conditionDescription?: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* Object containing details for the call-to-action.
|
|
2420
|
+
*/
|
|
2421
|
+
cta?: Metadata.Cta | null;
|
|
2422
|
+
/**
|
|
2423
|
+
* API key for custom rewards integration.
|
|
2424
|
+
*/
|
|
2425
|
+
customRewardsApiKey?: string;
|
|
2426
|
+
/**
|
|
2427
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
2428
|
+
*/
|
|
2429
|
+
directRpc?: boolean;
|
|
2430
|
+
/**
|
|
2431
|
+
* Array of Discord servers, channels, and roles to join.
|
|
2432
|
+
*/
|
|
2433
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
2434
|
+
/**
|
|
2435
|
+
* Array of drip quests required to complete the rule.
|
|
2436
|
+
*/
|
|
2437
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
2438
|
+
/**
|
|
2439
|
+
* Flag indicating whether joining Discord servers is required.
|
|
2440
|
+
*/
|
|
2441
|
+
enableJoinDiscordServers?: boolean | null;
|
|
2442
|
+
/**
|
|
2443
|
+
* Flag indicating whether streaks are enabled.
|
|
2444
|
+
*/
|
|
2445
|
+
enableStreaks?: boolean | null;
|
|
2446
|
+
/**
|
|
2447
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
2448
|
+
*/
|
|
2449
|
+
enableVerifiedMultiplier?: boolean;
|
|
2450
|
+
/**
|
|
2451
|
+
* Type of ERC20 token for the loyalty rule.
|
|
2452
|
+
*/
|
|
2453
|
+
erc20Type?: 'erc20' | 'native';
|
|
2454
|
+
/**
|
|
2455
|
+
* Fill source of the order for the token sale
|
|
2456
|
+
*/
|
|
2457
|
+
fillSource?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Percentage reward given to a user for their first referral.
|
|
2460
|
+
*/
|
|
2461
|
+
firstReferralReward?: number | null;
|
|
2462
|
+
/**
|
|
2463
|
+
* Name of the GitHub branch to check for PR merge.
|
|
2464
|
+
*/
|
|
2465
|
+
githubBranchName?: string | null;
|
|
2466
|
+
/**
|
|
2467
|
+
* URL of the GitHub repository to check for star.
|
|
2468
|
+
*/
|
|
2469
|
+
githubRepoUrl?: string | null;
|
|
2470
|
+
/**
|
|
2471
|
+
* Flag indicating whether the fill source is included.
|
|
2472
|
+
*/
|
|
2473
|
+
hasFillSource?: boolean;
|
|
2474
|
+
/**
|
|
2475
|
+
* Indicates if the item has never been sold.
|
|
2476
|
+
*/
|
|
2477
|
+
hasNeverSold?: boolean;
|
|
2478
|
+
/**
|
|
2479
|
+
* Indicates if the full royalty has been paid for items.
|
|
2480
|
+
*/
|
|
2481
|
+
hasPaidFullRoyalty?: boolean;
|
|
2482
|
+
/**
|
|
2483
|
+
* Flag indicating if the sale currency is included.
|
|
2484
|
+
*/
|
|
2485
|
+
hasSaleCurrency?: boolean;
|
|
2486
|
+
/**
|
|
2487
|
+
* Indicates if the user has a verified Twitter account.
|
|
2488
|
+
*/
|
|
2489
|
+
hasVerifiedTwitter?: boolean;
|
|
2490
|
+
/**
|
|
2491
|
+
* URL of the image associated with the rule.
|
|
2492
|
+
*/
|
|
2493
|
+
imageUrl?: string | null;
|
|
2494
|
+
/**
|
|
2495
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
2496
|
+
*/
|
|
2497
|
+
isCheckInOnEveryTxn?: boolean;
|
|
2498
|
+
/**
|
|
2499
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
2500
|
+
*/
|
|
2501
|
+
isMultiplierApplied?: boolean;
|
|
2502
|
+
/**
|
|
2503
|
+
* Flag indicating if the rule is restricted to new users.
|
|
2504
|
+
*/
|
|
2505
|
+
isRestrictedToNewUsers?: boolean;
|
|
2506
|
+
/**
|
|
2507
|
+
* Flag indicating if rewards are applied retroactively.
|
|
2508
|
+
*/
|
|
2509
|
+
isRetroactive?: boolean | null;
|
|
2510
|
+
/**
|
|
2511
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
2512
|
+
*/
|
|
2513
|
+
isTokenHoldMultiplier?: boolean;
|
|
2514
|
+
/**
|
|
2515
|
+
* Optional link associated with the metadata.
|
|
2516
|
+
*/
|
|
2517
|
+
link?: string | null;
|
|
2518
|
+
/**
|
|
2519
|
+
* Liquidity pool details.
|
|
2520
|
+
*/
|
|
2521
|
+
liquidity?: Metadata.Liquidity;
|
|
2522
|
+
/**
|
|
2523
|
+
* Maximum quantity constraint for token holding.
|
|
2524
|
+
*/
|
|
2525
|
+
maxQty?: number | null;
|
|
2526
|
+
/**
|
|
2527
|
+
* Minimum quantity constraint for token holding.
|
|
2528
|
+
*/
|
|
2529
|
+
minQty?: number | null;
|
|
2530
|
+
/**
|
|
2531
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
2532
|
+
*/
|
|
2533
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
2534
|
+
/**
|
|
2535
|
+
* Flag indicating whether to include only known users.
|
|
2536
|
+
*/
|
|
2537
|
+
onlyKnownUsers?: boolean;
|
|
2538
|
+
/**
|
|
2539
|
+
* Flag indicating whether to include only native tokens.
|
|
2540
|
+
*/
|
|
2541
|
+
onlyNative?: boolean;
|
|
2542
|
+
/**
|
|
2543
|
+
* Flag indicating whether to include only non-listed items.
|
|
2544
|
+
*/
|
|
2545
|
+
onlyNonListed?: boolean;
|
|
2546
|
+
/**
|
|
2547
|
+
* Indicates if only existing users are rewarded.
|
|
2548
|
+
*/
|
|
2549
|
+
onlyRewardExistingUser?: boolean;
|
|
2550
|
+
/**
|
|
2551
|
+
* give points for only one token ownership per contract
|
|
2552
|
+
*/
|
|
2553
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
2554
|
+
/**
|
|
2555
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
2556
|
+
*/
|
|
2557
|
+
preGeneratedPostText?: string | null;
|
|
2558
|
+
/**
|
|
2559
|
+
* Promotional code associated with the rule.
|
|
2560
|
+
*/
|
|
2561
|
+
promoCode?: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* URL of the CSV file containing promo codes.
|
|
2564
|
+
*/
|
|
2565
|
+
promoCodeCsvUrl?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* Numbers of the promotional code to be generated.
|
|
2568
|
+
*/
|
|
2569
|
+
promoCodeLength?: number | null;
|
|
2570
|
+
/**
|
|
2571
|
+
* Type of the promotional code.
|
|
2572
|
+
*/
|
|
2573
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
2574
|
+
/**
|
|
2575
|
+
* Array defining ranges and corresponding rewards.
|
|
2576
|
+
*/
|
|
2577
|
+
range?: Array<Metadata.Range>;
|
|
2578
|
+
/**
|
|
2579
|
+
* ID of the Reddit post.
|
|
2580
|
+
*/
|
|
2581
|
+
redditPostId?: string | null;
|
|
2582
|
+
/**
|
|
2583
|
+
* Object defining referral requirements.
|
|
2584
|
+
*/
|
|
2585
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
2586
|
+
/**
|
|
2587
|
+
* Lump sum reward given to a referrer.
|
|
2588
|
+
*/
|
|
2589
|
+
referrerReward?: number | null;
|
|
2590
|
+
/**
|
|
2591
|
+
* Loyalty currency ID of the referrer reward.
|
|
2592
|
+
*/
|
|
2593
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
2594
|
+
/**
|
|
2595
|
+
* Flag indicating if the post link is required.
|
|
2596
|
+
*/
|
|
2597
|
+
requirePostLink?: boolean | null;
|
|
2598
|
+
/**
|
|
2599
|
+
* Flag indicating if media metadata is required.
|
|
2600
|
+
*/
|
|
2601
|
+
requirePostMediaLink?: boolean | null;
|
|
2602
|
+
/**
|
|
2603
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
2604
|
+
*/
|
|
2605
|
+
rewardBadgePerRange?: boolean;
|
|
2606
|
+
/**
|
|
2607
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
2608
|
+
*/
|
|
2609
|
+
rewardByBatch?: boolean | null;
|
|
2610
|
+
/**
|
|
2611
|
+
* Criteria to evaluate the reward.
|
|
2612
|
+
*/
|
|
2613
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
2614
|
+
/**
|
|
2615
|
+
* Flag indicating if the reward is rewarded per action.
|
|
2616
|
+
*/
|
|
2617
|
+
rewardPerAction?: boolean | null;
|
|
2618
|
+
/**
|
|
2619
|
+
* Flag indicating if rewards are given per impression.
|
|
2620
|
+
*/
|
|
2621
|
+
rewardPerImpression?: boolean | null;
|
|
2622
|
+
/**
|
|
2623
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
2624
|
+
* instead of count.
|
|
2625
|
+
*/
|
|
2626
|
+
rewardPerValue?: boolean;
|
|
2627
|
+
/**
|
|
2628
|
+
* Flag indicating if the rule should reward quality posts.
|
|
2629
|
+
*/
|
|
2630
|
+
rewardQualityPosts?: boolean;
|
|
2631
|
+
/**
|
|
2632
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
2633
|
+
*/
|
|
2634
|
+
royaltyAddress?: string;
|
|
2635
|
+
/**
|
|
2636
|
+
* Royalty percentage of the item.
|
|
2637
|
+
*/
|
|
2638
|
+
royaltyPercentage?: number;
|
|
2639
|
+
/**
|
|
2640
|
+
* Currency associated with sales.
|
|
2641
|
+
*/
|
|
2642
|
+
saleCurrency?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* Percentage reward given for a second-level referral.
|
|
2645
|
+
*/
|
|
2646
|
+
secondReferralReward?: number | null;
|
|
2647
|
+
/**
|
|
2648
|
+
* Flag indicating if the multiplier is skipped.
|
|
2649
|
+
*/
|
|
2650
|
+
skipMultiplier?: boolean | null;
|
|
2651
|
+
/**
|
|
2652
|
+
* Object containing details of the associated smart contract.
|
|
2653
|
+
*/
|
|
2654
|
+
smartContract?: Metadata.SmartContract;
|
|
2655
|
+
/**
|
|
2656
|
+
* Array of snapshot proposals for the rule.
|
|
2657
|
+
*/
|
|
2658
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
2659
|
+
/**
|
|
2660
|
+
* Social media platform associated with the rule.
|
|
2661
|
+
*/
|
|
2662
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | 'GitHub' | 'Reddit' | null;
|
|
2663
|
+
/**
|
|
2664
|
+
* URL of the social platform's logo.
|
|
2665
|
+
*/
|
|
2666
|
+
socialPlatformLogo?: string | null;
|
|
2667
|
+
/**
|
|
2668
|
+
* Name of the social platform.
|
|
2669
|
+
*/
|
|
2670
|
+
socialPlatformName?: string | null;
|
|
2671
|
+
/**
|
|
2672
|
+
* ID of the Steam app.
|
|
2673
|
+
*/
|
|
2674
|
+
steamAppId?: string | null;
|
|
2675
|
+
/**
|
|
2676
|
+
* Array of streak milestones and corresponding rewards.
|
|
2677
|
+
*/
|
|
2678
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
2679
|
+
/**
|
|
2680
|
+
* Metadata for swap loyalty rules
|
|
2681
|
+
*/
|
|
2682
|
+
swap?: Metadata.Swap;
|
|
2683
|
+
/**
|
|
2684
|
+
* ID of the Telegram channel.
|
|
2685
|
+
*/
|
|
2686
|
+
telegramChannelId?: string | null;
|
|
2687
|
+
/**
|
|
2688
|
+
* Time delay in seconds to verify actions.
|
|
2689
|
+
*/
|
|
2690
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
2691
|
+
/**
|
|
2692
|
+
* Flag indicating if all contracts are tracked.
|
|
2693
|
+
*/
|
|
2694
|
+
trackAllContracts?: boolean | null;
|
|
2695
|
+
/**
|
|
2696
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2697
|
+
* completed once the progress is 100%.
|
|
2698
|
+
*/
|
|
2699
|
+
trackProgress?: boolean | null;
|
|
2700
|
+
/**
|
|
2701
|
+
* URL of the associated Twitter account.
|
|
2702
|
+
*/
|
|
2703
|
+
twitterAccountUrl?: string;
|
|
2704
|
+
/**
|
|
2705
|
+
* Hashtag associated with the Twitter post.
|
|
2706
|
+
*/
|
|
2707
|
+
twitterHashtag?: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* URL of the associated Twitter post.
|
|
2710
|
+
*/
|
|
2711
|
+
twitterPostUrl?: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* Unique identifier of the Twitter user.
|
|
2714
|
+
*/
|
|
2715
|
+
twitterUserId?: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* Twitter username of the user.
|
|
2718
|
+
*/
|
|
2719
|
+
twitterUsername?: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* Minimum length of the verification text.
|
|
2722
|
+
*/
|
|
2723
|
+
verificationTextMinimumLength?: number | null;
|
|
2724
|
+
/**
|
|
2725
|
+
* Multiplier applied to rewards for verified users.
|
|
2726
|
+
*/
|
|
2727
|
+
verifiedMultiplier?: number | null;
|
|
2728
|
+
/**
|
|
2729
|
+
* Placeholder text for verification input fields.
|
|
2730
|
+
*/
|
|
2731
|
+
verifyPlaceHolderText?: string | null;
|
|
2732
|
+
/**
|
|
2733
|
+
* Type of wallet associated with the rule.
|
|
2734
|
+
*/
|
|
2735
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw' | 'flow_cadence' | 'substrate' | null;
|
|
2736
|
+
/**
|
|
2737
|
+
* ID of the Youtube channel.
|
|
2738
|
+
*/
|
|
2739
|
+
youtubeChannelId?: string | null;
|
|
2740
|
+
/**
|
|
2741
|
+
* ID of the Youtube video.
|
|
2742
|
+
*/
|
|
2743
|
+
youtubeVideoId?: string | null;
|
|
2744
|
+
}
|
|
2745
|
+
namespace Metadata {
|
|
2746
|
+
interface Collection {
|
|
2747
|
+
/**
|
|
2748
|
+
* Blockchain address of the collection.
|
|
2749
|
+
*/
|
|
2750
|
+
address?: string;
|
|
2751
|
+
/**
|
|
2752
|
+
* Multiplier applied to the rewards for this collection.
|
|
2753
|
+
*/
|
|
2754
|
+
multiplier?: number;
|
|
2755
|
+
/**
|
|
2756
|
+
* Blockchain network of the collection.
|
|
2757
|
+
*/
|
|
2758
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
* Object containing details for the call-to-action.
|
|
2762
|
+
*/
|
|
2763
|
+
interface Cta {
|
|
2764
|
+
/**
|
|
2765
|
+
* Link for the call-to-action.
|
|
2766
|
+
*/
|
|
2767
|
+
href?: string | null;
|
|
2768
|
+
/**
|
|
2769
|
+
* Label for the call-to-action.
|
|
2770
|
+
*/
|
|
2771
|
+
label?: string | null;
|
|
2772
|
+
}
|
|
2773
|
+
interface DiscordServersToJoin {
|
|
2774
|
+
/**
|
|
2775
|
+
* ID of the Discord server to join.
|
|
2776
|
+
*/
|
|
2777
|
+
id?: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* Array of Discord channels to join.
|
|
2780
|
+
*/
|
|
2781
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
2782
|
+
/**
|
|
2783
|
+
* Array of roles to assign in the Discord server.
|
|
2784
|
+
*/
|
|
2785
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
2786
|
+
}
|
|
2787
|
+
namespace DiscordServersToJoin {
|
|
2788
|
+
interface Channel {
|
|
2789
|
+
/**
|
|
2790
|
+
* ID of the Discord channel.
|
|
2791
|
+
*/
|
|
2792
|
+
id?: string;
|
|
2793
|
+
/**
|
|
2794
|
+
* Array of emojis used in the channel.
|
|
2795
|
+
*/
|
|
2796
|
+
emojis?: Array<Channel.Emoji>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Phrase of text to be present in the discord message
|
|
2799
|
+
*/
|
|
2800
|
+
text?: string;
|
|
2801
|
+
}
|
|
2802
|
+
namespace Channel {
|
|
2803
|
+
interface Emoji {
|
|
2804
|
+
/**
|
|
2805
|
+
* ID of the emoji used in the channel.
|
|
2806
|
+
*/
|
|
2807
|
+
id?: string;
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
interface Role {
|
|
2811
|
+
/**
|
|
2812
|
+
* ID of the role in the Discord server.
|
|
2813
|
+
*/
|
|
2814
|
+
id: string;
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
interface DripQuestsToComplete {
|
|
2818
|
+
/**
|
|
2819
|
+
* ID of the drip quest to complete.
|
|
2820
|
+
*/
|
|
2821
|
+
id: string;
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* Liquidity pool details.
|
|
2825
|
+
*/
|
|
2826
|
+
interface Liquidity {
|
|
2827
|
+
/**
|
|
2828
|
+
* Calculation type of the liquidity pool.
|
|
2829
|
+
*/
|
|
2830
|
+
calculationType?: 'fixed' | 'custom';
|
|
2831
|
+
/**
|
|
2832
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
2833
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
2834
|
+
* USD.
|
|
2835
|
+
*/
|
|
2836
|
+
customFunction?: string;
|
|
2837
|
+
/**
|
|
2838
|
+
* Liquidity provided per day in USD
|
|
2839
|
+
*/
|
|
2840
|
+
liquidityPerDay?: number;
|
|
2841
|
+
/**
|
|
2842
|
+
* Blockchain network of the liquidity pool.
|
|
2843
|
+
*/
|
|
2844
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
2845
|
+
/**
|
|
2846
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
2847
|
+
*/
|
|
2848
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
2849
|
+
/**
|
|
2850
|
+
* Array of liquidity pools associated with the rule.
|
|
2851
|
+
*/
|
|
2852
|
+
pools?: Array<Liquidity.Pool>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Protocol of the liquidity pool.
|
|
2855
|
+
*/
|
|
2856
|
+
protocol?: string;
|
|
2857
|
+
}
|
|
2858
|
+
namespace Liquidity {
|
|
2859
|
+
interface Pool {
|
|
2860
|
+
/**
|
|
2861
|
+
* Unique identifier of the liquidity pool.
|
|
2862
|
+
*/
|
|
2863
|
+
id: string;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
interface Range {
|
|
2867
|
+
/**
|
|
2868
|
+
* Reward amount for this range.
|
|
2869
|
+
*/
|
|
2870
|
+
amount: number;
|
|
2871
|
+
/**
|
|
2872
|
+
* End value of the range.
|
|
2873
|
+
*/
|
|
2874
|
+
endRange: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* Start value of the range.
|
|
2877
|
+
*/
|
|
2878
|
+
startRange: number;
|
|
2879
|
+
/**
|
|
2880
|
+
* ID of the loyalty badge for this range.
|
|
2881
|
+
*/
|
|
2882
|
+
loyaltyBadgeId?: string;
|
|
2883
|
+
/**
|
|
2884
|
+
* Amount of the loyalty multiplier for this range.
|
|
2885
|
+
*/
|
|
2886
|
+
loyaltyMultiplierAmount?: number;
|
|
2887
|
+
}
|
|
2888
|
+
/**
|
|
2889
|
+
* Object defining referral requirements.
|
|
2890
|
+
*/
|
|
2891
|
+
interface ReferralRequirements {
|
|
2892
|
+
/**
|
|
2893
|
+
* Flag indicating if achieving points is required.
|
|
2894
|
+
*/
|
|
2895
|
+
achievePoints?: boolean | null;
|
|
2896
|
+
/**
|
|
2897
|
+
* Flag indicating if completing the profile is required.
|
|
2898
|
+
*/
|
|
2899
|
+
completeProfile?: boolean | null;
|
|
2900
|
+
/**
|
|
2901
|
+
* Flag indicating if connecting Discord is required.
|
|
2902
|
+
*/
|
|
2903
|
+
connectDiscord?: boolean | null;
|
|
2904
|
+
/**
|
|
2905
|
+
* Flag indicating if connecting email is required.
|
|
2906
|
+
*/
|
|
2907
|
+
connectEmail?: boolean | null;
|
|
2908
|
+
/**
|
|
2909
|
+
* Flag indicating if connecting Twitter is required.
|
|
2910
|
+
*/
|
|
2911
|
+
connectTwitter?: boolean | null;
|
|
2912
|
+
points?: ReferralRequirements.Points | null;
|
|
2913
|
+
}
|
|
2914
|
+
namespace ReferralRequirements {
|
|
2915
|
+
interface Points {
|
|
2916
|
+
/**
|
|
2917
|
+
* Points required for referral.
|
|
2918
|
+
*/
|
|
2919
|
+
amount?: number | null;
|
|
2920
|
+
/**
|
|
2921
|
+
* ID of the loyalty currency for referral.
|
|
2922
|
+
*/
|
|
2923
|
+
loyaltyCurrecyId?: string | null;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* Object containing details of the associated smart contract.
|
|
2928
|
+
*/
|
|
2929
|
+
interface SmartContract {
|
|
2930
|
+
/**
|
|
2931
|
+
* Mapping of addresses for the smart contract.
|
|
2932
|
+
*/
|
|
2933
|
+
addressMapping?: string | null;
|
|
2934
|
+
/**
|
|
2935
|
+
* Object containing details of the amount multiplier from the event.
|
|
2936
|
+
*/
|
|
2937
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
2938
|
+
/**
|
|
2939
|
+
* ID of the smart contract.
|
|
2940
|
+
*/
|
|
2941
|
+
contractId?: string | null;
|
|
2942
|
+
/**
|
|
2943
|
+
* Criteria to evaluate the smart contract event.
|
|
2944
|
+
*/
|
|
2945
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
2946
|
+
/**
|
|
2947
|
+
* Event emitted by the smart contract.
|
|
2948
|
+
*/
|
|
2949
|
+
event?: string | null;
|
|
2950
|
+
/**
|
|
2951
|
+
* Array of parameters for the smart contract.
|
|
2952
|
+
*/
|
|
2953
|
+
params?: Array<SmartContract.Param> | null;
|
|
2954
|
+
/**
|
|
2955
|
+
* Type of the smart contract interaction.
|
|
2956
|
+
*/
|
|
2957
|
+
type?: 'function' | 'event' | null;
|
|
2958
|
+
}
|
|
2959
|
+
namespace SmartContract {
|
|
2960
|
+
/**
|
|
2961
|
+
* Object containing details of the amount multiplier from the event.
|
|
2962
|
+
*/
|
|
2963
|
+
interface AmountMultiplier {
|
|
2964
|
+
/**
|
|
2965
|
+
* Mapping of the value for the smart contract.
|
|
2966
|
+
*/
|
|
2967
|
+
valueMapping?: string | null;
|
|
2968
|
+
}
|
|
2969
|
+
interface Param {
|
|
2970
|
+
/**
|
|
2971
|
+
* Condition to check for the parameter.
|
|
2972
|
+
*/
|
|
2973
|
+
condition?: string | null;
|
|
2974
|
+
/**
|
|
2975
|
+
* Name of the smart contract parameter.
|
|
2976
|
+
*/
|
|
2977
|
+
name?: string | null;
|
|
2978
|
+
/**
|
|
2979
|
+
* Value of the parameter.
|
|
2980
|
+
*/
|
|
2981
|
+
value?: string | null;
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
interface SnapshotProposal {
|
|
2985
|
+
/**
|
|
2986
|
+
* ID of the snapshot proposal.
|
|
2987
|
+
*/
|
|
2988
|
+
id: string;
|
|
2989
|
+
/**
|
|
2990
|
+
* Space associated with the snapshot proposal.
|
|
2991
|
+
*/
|
|
2992
|
+
space: string;
|
|
2993
|
+
}
|
|
2994
|
+
interface StreakArray {
|
|
2995
|
+
/**
|
|
2996
|
+
* Reward amount for achieving the streak milestone.
|
|
2997
|
+
*/
|
|
2998
|
+
streakAmount: number;
|
|
2999
|
+
/**
|
|
3000
|
+
* Milestone required to achieve the streak.
|
|
3001
|
+
*/
|
|
3002
|
+
streakMilestone: number;
|
|
3003
|
+
}
|
|
3004
|
+
/**
|
|
3005
|
+
* Metadata for swap loyalty rules
|
|
3006
|
+
*/
|
|
3007
|
+
interface Swap {
|
|
3008
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
3009
|
+
relayReferrerId?: string;
|
|
3010
|
+
requireCrossChainSwap?: boolean;
|
|
3011
|
+
swappedToChain?: 'any' | number | string;
|
|
3012
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
3013
|
+
tokenMode?: 'any' | 'specific';
|
|
3014
|
+
trackTokenAmount?: boolean;
|
|
3015
|
+
}
|
|
3016
|
+
namespace Swap {
|
|
3017
|
+
interface SwappedToToken {
|
|
3018
|
+
address: string;
|
|
3019
|
+
chainId: string;
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
301
3023
|
}
|
|
302
3024
|
}
|
|
303
3025
|
export interface RuleEditListParams {
|