@snagsolutions/sdk 0.1.0-alpha.43 → 0.1.0-alpha.44
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 +10 -0
- package/package.json +1 -1
- package/resources/loyalty/rule-edits.d.ts +2036 -4
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +5 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +529 -1
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/src/resources/loyalty/rule-edits.ts +2672 -4
- package/src/resources/loyalty/rule-groups.ts +6 -0
- package/src/resources/loyalty/rules.ts +692 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -364,6 +364,11 @@ export declare namespace RuleCreateResponse {
|
|
|
364
364
|
* Flag indicating if all contracts are tracked.
|
|
365
365
|
*/
|
|
366
366
|
trackAllContracts?: boolean | null;
|
|
367
|
+
/**
|
|
368
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
369
|
+
* completed once the progress is 100%.
|
|
370
|
+
*/
|
|
371
|
+
trackProgress?: boolean | null;
|
|
367
372
|
/**
|
|
368
373
|
* URL of the associated Twitter account.
|
|
369
374
|
*/
|
|
@@ -977,6 +982,11 @@ export declare namespace RuleUpdateResponse {
|
|
|
977
982
|
* Flag indicating if all contracts are tracked.
|
|
978
983
|
*/
|
|
979
984
|
trackAllContracts?: boolean | null;
|
|
985
|
+
/**
|
|
986
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
987
|
+
* completed once the progress is 100%.
|
|
988
|
+
*/
|
|
989
|
+
trackProgress?: boolean | null;
|
|
980
990
|
/**
|
|
981
991
|
* URL of the associated Twitter account.
|
|
982
992
|
*/
|
|
@@ -1327,10 +1337,518 @@ export declare namespace RuleListResponse {
|
|
|
1327
1337
|
* Optional address of the collection
|
|
1328
1338
|
*/
|
|
1329
1339
|
collectionAddress?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* URL of the media associated with the loyalty rule
|
|
1342
|
+
*/
|
|
1343
|
+
mediaUrl?: string | null;
|
|
1330
1344
|
/**
|
|
1331
1345
|
* Optional metadata for the loyalty rule
|
|
1332
1346
|
*/
|
|
1333
|
-
metadata?: Record<string,
|
|
1347
|
+
metadata?: Record<string, Data.Metadata>;
|
|
1348
|
+
}
|
|
1349
|
+
namespace Data {
|
|
1350
|
+
interface Metadata {
|
|
1351
|
+
/**
|
|
1352
|
+
* Text displayed on the action button.
|
|
1353
|
+
*/
|
|
1354
|
+
buttonText?: string | null;
|
|
1355
|
+
/**
|
|
1356
|
+
* Flag indicating if commenting is required.
|
|
1357
|
+
*/
|
|
1358
|
+
checkComment?: boolean | null;
|
|
1359
|
+
/**
|
|
1360
|
+
* Flag indicating if liking the post is required.
|
|
1361
|
+
*/
|
|
1362
|
+
checkLike?: boolean | null;
|
|
1363
|
+
/**
|
|
1364
|
+
* Flag indicating if reposting is required.
|
|
1365
|
+
*/
|
|
1366
|
+
checkRepost?: boolean | null;
|
|
1367
|
+
/**
|
|
1368
|
+
* Text to check in the Twitter post, username, or bio.
|
|
1369
|
+
*/
|
|
1370
|
+
checkText?: string | null;
|
|
1371
|
+
/**
|
|
1372
|
+
* Array of collections associated with the rule.
|
|
1373
|
+
*/
|
|
1374
|
+
collection?: Array<Metadata.Collection>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Conditions for completing the profile.
|
|
1377
|
+
*/
|
|
1378
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
1379
|
+
/**
|
|
1380
|
+
* Object containing details for the call-to-action.
|
|
1381
|
+
*/
|
|
1382
|
+
cta?: Metadata.Cta | null;
|
|
1383
|
+
/**
|
|
1384
|
+
* API key for custom rewards integration.
|
|
1385
|
+
*/
|
|
1386
|
+
customRewardsApiKey?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Array of Discord servers, channels, and roles to join.
|
|
1389
|
+
*/
|
|
1390
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
1391
|
+
/**
|
|
1392
|
+
* Array of drip quests required to complete the rule.
|
|
1393
|
+
*/
|
|
1394
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Flag indicating whether joining Discord servers is required.
|
|
1397
|
+
*/
|
|
1398
|
+
enableJoinDiscordServers?: boolean | null;
|
|
1399
|
+
/**
|
|
1400
|
+
* Flag indicating whether streaks are enabled.
|
|
1401
|
+
*/
|
|
1402
|
+
enableStreaks?: boolean | null;
|
|
1403
|
+
/**
|
|
1404
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
1405
|
+
*/
|
|
1406
|
+
enableVerifiedMultiplier?: boolean;
|
|
1407
|
+
/**
|
|
1408
|
+
* Fill source of the order for the token sale
|
|
1409
|
+
*/
|
|
1410
|
+
fillSource?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Percentage reward given to a user for their first referral.
|
|
1413
|
+
*/
|
|
1414
|
+
firstReferralReward?: number | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Flag indicating whether the fill source is included.
|
|
1417
|
+
*/
|
|
1418
|
+
hasFillSource?: boolean;
|
|
1419
|
+
/**
|
|
1420
|
+
* Indicates if the item has never been sold.
|
|
1421
|
+
*/
|
|
1422
|
+
hasNeverSold?: boolean;
|
|
1423
|
+
/**
|
|
1424
|
+
* Flag indicating whether the order source is included.
|
|
1425
|
+
*/
|
|
1426
|
+
hasOrderSource?: boolean;
|
|
1427
|
+
/**
|
|
1428
|
+
* Indicates if the full royalty has been paid for items.
|
|
1429
|
+
*/
|
|
1430
|
+
hasPaidFullRoyalty?: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Flag indicating if the sale currency is included.
|
|
1433
|
+
*/
|
|
1434
|
+
hasSaleCurrency?: boolean;
|
|
1435
|
+
/**
|
|
1436
|
+
* Indicates if the user has a verified Twitter account.
|
|
1437
|
+
*/
|
|
1438
|
+
hasVerifiedTwitter?: boolean;
|
|
1439
|
+
/**
|
|
1440
|
+
* URL of the image associated with the rule.
|
|
1441
|
+
*/
|
|
1442
|
+
imageUrl?: string | null;
|
|
1443
|
+
/**
|
|
1444
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
1445
|
+
*/
|
|
1446
|
+
isMultiplierApplied?: boolean;
|
|
1447
|
+
/**
|
|
1448
|
+
* Flag indicating if rewards are applied retroactively.
|
|
1449
|
+
*/
|
|
1450
|
+
isRetroactive?: boolean | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
1453
|
+
*/
|
|
1454
|
+
isTokenHoldMultiplier?: boolean;
|
|
1455
|
+
/**
|
|
1456
|
+
* Optional link associated with the metadata.
|
|
1457
|
+
*/
|
|
1458
|
+
link?: string | null;
|
|
1459
|
+
/**
|
|
1460
|
+
* Maximum quantity constraint for token holding.
|
|
1461
|
+
*/
|
|
1462
|
+
maxQty?: number | null;
|
|
1463
|
+
/**
|
|
1464
|
+
* Minimum quantity constraint for token holding.
|
|
1465
|
+
*/
|
|
1466
|
+
minQty?: number | null;
|
|
1467
|
+
/**
|
|
1468
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
1469
|
+
*/
|
|
1470
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Flag indicating whether to include only known users.
|
|
1473
|
+
*/
|
|
1474
|
+
onlyKnownUsers?: boolean;
|
|
1475
|
+
/**
|
|
1476
|
+
* Flag indicating whether to include only native tokens.
|
|
1477
|
+
*/
|
|
1478
|
+
onlyNative?: boolean;
|
|
1479
|
+
/**
|
|
1480
|
+
* Flag indicating whether to include only non-listed items.
|
|
1481
|
+
*/
|
|
1482
|
+
onlyNonListed?: boolean;
|
|
1483
|
+
/**
|
|
1484
|
+
* Indicates if only existing users are rewarded.
|
|
1485
|
+
*/
|
|
1486
|
+
onlyRewardExistingUser?: boolean;
|
|
1487
|
+
/**
|
|
1488
|
+
* give points for only one token ownership per contract
|
|
1489
|
+
*/
|
|
1490
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* Order source of the order for the token sale
|
|
1493
|
+
*/
|
|
1494
|
+
orderSource?: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* Promotional code associated with the rule.
|
|
1497
|
+
*/
|
|
1498
|
+
promoCode?: string;
|
|
1499
|
+
/**
|
|
1500
|
+
* Array defining ranges and corresponding rewards.
|
|
1501
|
+
*/
|
|
1502
|
+
range?: Array<Metadata.Range>;
|
|
1503
|
+
/**
|
|
1504
|
+
* Object defining referral requirements.
|
|
1505
|
+
*/
|
|
1506
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* Lump sum reward given to a referrer.
|
|
1509
|
+
*/
|
|
1510
|
+
referrerReward?: number | null;
|
|
1511
|
+
/**
|
|
1512
|
+
* Flag indicating if rewards are given per impression.
|
|
1513
|
+
*/
|
|
1514
|
+
rewardPerImpression?: boolean | null;
|
|
1515
|
+
/**
|
|
1516
|
+
* Currency associated with sales.
|
|
1517
|
+
*/
|
|
1518
|
+
saleCurrency?: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* Percentage reward given for a second-level referral.
|
|
1521
|
+
*/
|
|
1522
|
+
secondReferralReward?: number | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* Flag indicating if the multiplier is skipped.
|
|
1525
|
+
*/
|
|
1526
|
+
skipMultiplier?: boolean | null;
|
|
1527
|
+
/**
|
|
1528
|
+
* Object containing details of the associated smart contract.
|
|
1529
|
+
*/
|
|
1530
|
+
smartContract?: Metadata.SmartContract;
|
|
1531
|
+
/**
|
|
1532
|
+
* Array of snapshot proposals for the rule.
|
|
1533
|
+
*/
|
|
1534
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
1535
|
+
/**
|
|
1536
|
+
* Social media platform associated with the rule.
|
|
1537
|
+
*/
|
|
1538
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | null;
|
|
1539
|
+
/**
|
|
1540
|
+
* URL of the social platform's logo.
|
|
1541
|
+
*/
|
|
1542
|
+
socialPlatformLogo?: string | null;
|
|
1543
|
+
/**
|
|
1544
|
+
* Name of the social platform.
|
|
1545
|
+
*/
|
|
1546
|
+
socialPlatformName?: string | null;
|
|
1547
|
+
/**
|
|
1548
|
+
* ID of the Steam app.
|
|
1549
|
+
*/
|
|
1550
|
+
steamAppId?: string | null;
|
|
1551
|
+
/**
|
|
1552
|
+
* Array of streak milestones and corresponding rewards.
|
|
1553
|
+
*/
|
|
1554
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
1555
|
+
/**
|
|
1556
|
+
* ID of the Telegram channel.
|
|
1557
|
+
*/
|
|
1558
|
+
telegramChannelId?: string | null;
|
|
1559
|
+
/**
|
|
1560
|
+
* Time delay in seconds to verify actions.
|
|
1561
|
+
*/
|
|
1562
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
1563
|
+
/**
|
|
1564
|
+
* Flag indicating if all contracts are tracked.
|
|
1565
|
+
*/
|
|
1566
|
+
trackAllContracts?: boolean | null;
|
|
1567
|
+
/**
|
|
1568
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
1569
|
+
* completed once the progress is 100%.
|
|
1570
|
+
*/
|
|
1571
|
+
trackProgress?: boolean | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* URL of the associated Twitter account.
|
|
1574
|
+
*/
|
|
1575
|
+
twitterAccountUrl?: string;
|
|
1576
|
+
/**
|
|
1577
|
+
* Hashtag associated with the Twitter post.
|
|
1578
|
+
*/
|
|
1579
|
+
twitterHashtag?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* URL of the associated Twitter post.
|
|
1582
|
+
*/
|
|
1583
|
+
twitterPostUrl?: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Unique identifier of the Twitter user.
|
|
1586
|
+
*/
|
|
1587
|
+
twitterUserId?: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* Twitter username of the user.
|
|
1590
|
+
*/
|
|
1591
|
+
twitterUsername?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* Minimum length of the verification text.
|
|
1594
|
+
*/
|
|
1595
|
+
verificationTextMinimumLength?: number | null;
|
|
1596
|
+
/**
|
|
1597
|
+
* Multiplier applied to rewards for verified users.
|
|
1598
|
+
*/
|
|
1599
|
+
verifiedMultiplier?: number | null;
|
|
1600
|
+
/**
|
|
1601
|
+
* Placeholder text for verification input fields.
|
|
1602
|
+
*/
|
|
1603
|
+
verifyPlaceHolderText?: string | null;
|
|
1604
|
+
/**
|
|
1605
|
+
* Type of wallet associated with the rule.
|
|
1606
|
+
*/
|
|
1607
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
1608
|
+
}
|
|
1609
|
+
namespace Metadata {
|
|
1610
|
+
interface Collection {
|
|
1611
|
+
/**
|
|
1612
|
+
* Blockchain address of the collection.
|
|
1613
|
+
*/
|
|
1614
|
+
address?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* Multiplier applied to the rewards for this collection.
|
|
1617
|
+
*/
|
|
1618
|
+
multiplier?: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* Blockchain network of the collection.
|
|
1621
|
+
*/
|
|
1622
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Object containing details for the call-to-action.
|
|
1626
|
+
*/
|
|
1627
|
+
interface Cta {
|
|
1628
|
+
/**
|
|
1629
|
+
* Link for the call-to-action.
|
|
1630
|
+
*/
|
|
1631
|
+
href?: string | null;
|
|
1632
|
+
/**
|
|
1633
|
+
* Label for the call-to-action.
|
|
1634
|
+
*/
|
|
1635
|
+
label?: string | null;
|
|
1636
|
+
}
|
|
1637
|
+
interface DiscordServersToJoin {
|
|
1638
|
+
/**
|
|
1639
|
+
* ID of the Discord server to join.
|
|
1640
|
+
*/
|
|
1641
|
+
id?: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* Array of Discord channels to join.
|
|
1644
|
+
*/
|
|
1645
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Array of roles to assign in the Discord server.
|
|
1648
|
+
*/
|
|
1649
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
1650
|
+
}
|
|
1651
|
+
namespace DiscordServersToJoin {
|
|
1652
|
+
interface Channel {
|
|
1653
|
+
/**
|
|
1654
|
+
* ID of the Discord channel.
|
|
1655
|
+
*/
|
|
1656
|
+
id?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Array of emojis used in the channel.
|
|
1659
|
+
*/
|
|
1660
|
+
emojis?: Array<Channel.Emoji>;
|
|
1661
|
+
/**
|
|
1662
|
+
* Phrase of text to be present in the discord message
|
|
1663
|
+
*/
|
|
1664
|
+
text?: string;
|
|
1665
|
+
}
|
|
1666
|
+
namespace Channel {
|
|
1667
|
+
interface Emoji {
|
|
1668
|
+
/**
|
|
1669
|
+
* ID of the emoji used in the channel.
|
|
1670
|
+
*/
|
|
1671
|
+
id?: string;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
interface Role {
|
|
1675
|
+
/**
|
|
1676
|
+
* ID of the role in the Discord server.
|
|
1677
|
+
*/
|
|
1678
|
+
id: string;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
interface DripQuestsToComplete {
|
|
1682
|
+
/**
|
|
1683
|
+
* ID of the drip quest to complete.
|
|
1684
|
+
*/
|
|
1685
|
+
id: string;
|
|
1686
|
+
}
|
|
1687
|
+
interface Range {
|
|
1688
|
+
/**
|
|
1689
|
+
* Reward amount for this range.
|
|
1690
|
+
*/
|
|
1691
|
+
amount: number;
|
|
1692
|
+
/**
|
|
1693
|
+
* End value of the range.
|
|
1694
|
+
*/
|
|
1695
|
+
endRange: number;
|
|
1696
|
+
/**
|
|
1697
|
+
* Start value of the range.
|
|
1698
|
+
*/
|
|
1699
|
+
startRange: number;
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Object defining referral requirements.
|
|
1703
|
+
*/
|
|
1704
|
+
interface ReferralRequirements {
|
|
1705
|
+
/**
|
|
1706
|
+
* Flag indicating if achieving points is required.
|
|
1707
|
+
*/
|
|
1708
|
+
achievePoints?: boolean | null;
|
|
1709
|
+
/**
|
|
1710
|
+
* Flag indicating if completing the profile is required.
|
|
1711
|
+
*/
|
|
1712
|
+
completeProfile?: boolean | null;
|
|
1713
|
+
/**
|
|
1714
|
+
* Flag indicating if connecting Discord is required.
|
|
1715
|
+
*/
|
|
1716
|
+
connectDiscord?: boolean | null;
|
|
1717
|
+
/**
|
|
1718
|
+
* Flag indicating if connecting email is required.
|
|
1719
|
+
*/
|
|
1720
|
+
connectEmail?: boolean | null;
|
|
1721
|
+
/**
|
|
1722
|
+
* Flag indicating if connecting Twitter is required.
|
|
1723
|
+
*/
|
|
1724
|
+
connectTwitter?: boolean | null;
|
|
1725
|
+
points?: ReferralRequirements.Points | null;
|
|
1726
|
+
}
|
|
1727
|
+
namespace ReferralRequirements {
|
|
1728
|
+
interface Points {
|
|
1729
|
+
/**
|
|
1730
|
+
* Points required for referral.
|
|
1731
|
+
*/
|
|
1732
|
+
amount?: number | null;
|
|
1733
|
+
/**
|
|
1734
|
+
* ID of the loyalty currency for referral.
|
|
1735
|
+
*/
|
|
1736
|
+
loyaltyCurrecyId?: string | null;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Object containing details of the associated smart contract.
|
|
1741
|
+
*/
|
|
1742
|
+
interface SmartContract {
|
|
1743
|
+
/**
|
|
1744
|
+
* ABI of the smart contract.
|
|
1745
|
+
*/
|
|
1746
|
+
abi?: string | null;
|
|
1747
|
+
/**
|
|
1748
|
+
* Mapping of addresses for the smart contract.
|
|
1749
|
+
*/
|
|
1750
|
+
addressMapping?: string | null;
|
|
1751
|
+
/**
|
|
1752
|
+
* Array of bonus details applied to the rule.
|
|
1753
|
+
*/
|
|
1754
|
+
bonus?: Array<SmartContract.Bonus> | null;
|
|
1755
|
+
/**
|
|
1756
|
+
* ID of the smart contract.
|
|
1757
|
+
*/
|
|
1758
|
+
contractId?: string | null;
|
|
1759
|
+
/**
|
|
1760
|
+
* Criteria to evaluate the smart contract event.
|
|
1761
|
+
*/
|
|
1762
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
1763
|
+
/**
|
|
1764
|
+
* Time range applied to the rule.
|
|
1765
|
+
*/
|
|
1766
|
+
customRange?: SmartContract.CustomRange | null;
|
|
1767
|
+
/**
|
|
1768
|
+
* Event emitted by the smart contract.
|
|
1769
|
+
*/
|
|
1770
|
+
event?: string | null;
|
|
1771
|
+
/**
|
|
1772
|
+
* Maximum value allowed for the parameter.
|
|
1773
|
+
*/
|
|
1774
|
+
max?: number | null;
|
|
1775
|
+
/**
|
|
1776
|
+
* Array of parameters for the smart contract.
|
|
1777
|
+
*/
|
|
1778
|
+
params?: Array<SmartContract.Param> | null;
|
|
1779
|
+
/**
|
|
1780
|
+
* Flag indicating if a bonus is applied.
|
|
1781
|
+
*/
|
|
1782
|
+
withBonus?: boolean | null;
|
|
1783
|
+
/**
|
|
1784
|
+
* Flag indicating if a custom range is applied.
|
|
1785
|
+
*/
|
|
1786
|
+
withCustomRange?: boolean | null;
|
|
1787
|
+
/**
|
|
1788
|
+
* Flag indicating if a maximum limit is applied.
|
|
1789
|
+
*/
|
|
1790
|
+
withMax?: boolean | null;
|
|
1791
|
+
}
|
|
1792
|
+
namespace SmartContract {
|
|
1793
|
+
interface Bonus {
|
|
1794
|
+
/**
|
|
1795
|
+
* Amount of the bonus.
|
|
1796
|
+
*/
|
|
1797
|
+
amount?: number | null;
|
|
1798
|
+
/**
|
|
1799
|
+
* Number of times the bonus is applied.
|
|
1800
|
+
*/
|
|
1801
|
+
count?: number | null;
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* Time range applied to the rule.
|
|
1805
|
+
*/
|
|
1806
|
+
interface CustomRange {
|
|
1807
|
+
/**
|
|
1808
|
+
* End time of the custom range.
|
|
1809
|
+
*/
|
|
1810
|
+
endsAt?: string | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* Start time of the custom range.
|
|
1813
|
+
*/
|
|
1814
|
+
startsAt?: string | null;
|
|
1815
|
+
}
|
|
1816
|
+
interface Param {
|
|
1817
|
+
/**
|
|
1818
|
+
* Condition to check for the parameter.
|
|
1819
|
+
*/
|
|
1820
|
+
condition?: string | null;
|
|
1821
|
+
/**
|
|
1822
|
+
* Name of the smart contract parameter.
|
|
1823
|
+
*/
|
|
1824
|
+
name?: string | null;
|
|
1825
|
+
/**
|
|
1826
|
+
* Value of the parameter.
|
|
1827
|
+
*/
|
|
1828
|
+
value?: string | null;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
interface SnapshotProposal {
|
|
1832
|
+
/**
|
|
1833
|
+
* ID of the snapshot proposal.
|
|
1834
|
+
*/
|
|
1835
|
+
id: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* Space associated with the snapshot proposal.
|
|
1838
|
+
*/
|
|
1839
|
+
space: string;
|
|
1840
|
+
}
|
|
1841
|
+
interface StreakArray {
|
|
1842
|
+
/**
|
|
1843
|
+
* Reward amount for achieving the streak milestone.
|
|
1844
|
+
*/
|
|
1845
|
+
streakAmount: number;
|
|
1846
|
+
/**
|
|
1847
|
+
* Milestone required to achieve the streak.
|
|
1848
|
+
*/
|
|
1849
|
+
streakMilestone: number;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1334
1852
|
}
|
|
1335
1853
|
}
|
|
1336
1854
|
export interface RuleDeleteResponse {
|
|
@@ -1682,6 +2200,11 @@ export declare namespace RuleCreateParams {
|
|
|
1682
2200
|
* Flag indicating if all contracts are tracked.
|
|
1683
2201
|
*/
|
|
1684
2202
|
trackAllContracts?: boolean | null;
|
|
2203
|
+
/**
|
|
2204
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2205
|
+
* completed once the progress is 100%.
|
|
2206
|
+
*/
|
|
2207
|
+
trackProgress?: boolean | null;
|
|
1685
2208
|
/**
|
|
1686
2209
|
* URL of the associated Twitter account.
|
|
1687
2210
|
*/
|
|
@@ -2294,6 +2817,11 @@ export declare namespace RuleUpdateParams {
|
|
|
2294
2817
|
* Flag indicating if all contracts are tracked.
|
|
2295
2818
|
*/
|
|
2296
2819
|
trackAllContracts?: boolean | null;
|
|
2820
|
+
/**
|
|
2821
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2822
|
+
* completed once the progress is 100%.
|
|
2823
|
+
*/
|
|
2824
|
+
trackProgress?: boolean | null;
|
|
2297
2825
|
/**
|
|
2298
2826
|
* URL of the associated Twitter account.
|
|
2299
2827
|
*/
|