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