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