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