@idosgames/core 0.21.4 → 0.21.5
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 +14 -0
- package/dist/{RealtimeSession-wV_8qMas.d.cts → RealtimeSession-BBJ3gAb8.d.cts} +1 -1
- package/dist/{RealtimeSession-C5VICo95.d.ts → RealtimeSession-D7evucmN.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,20 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.21.5] - 2026-10-10
|
|
18
|
+
|
|
19
|
+
Daily caps on crypto rewards are the publisher's own setting now. Additive — nothing that worked changes.
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- `CryptoServerGrantPolicy.RefuseOverCap` (optional boolean) in the title config model. With a daily
|
|
24
|
+
reward cap set (`PerPlayerDailyTokens` / `TitleDailyTokens`), `true` makes the engine refuse a reward
|
|
25
|
+
over the cap with `CRYPTO_SERVER_GRANT_CAP_EXCEEDED:{currency}` instead of granting it as the
|
|
26
|
+
currency's IOU (the default). Both caps and this choice are editable for the title token (Main) too.
|
|
27
|
+
- `@idosgames/react` 0.4.6: `errorText()` (`@idosgames/react/ui`) turns that refusal into
|
|
28
|
+
"Today's reward limit is reached — come back tomorrow" / «Суточный лимит наград исчерпан — приходите
|
|
29
|
+
завтра» instead of showing the raw code.
|
|
30
|
+
|
|
17
31
|
## [0.21.4] - 2026-10-09
|
|
18
32
|
|
|
19
33
|
A 429 now waits exactly as long as the server says. Backwards-compatible: against an older server
|
|
@@ -146,7 +146,7 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; RefuseOverCap?: null | boolean; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|
|
@@ -146,7 +146,7 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; RefuseOverCap?: null | boolean; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|