@dedot/chaintypes 0.260.0 → 0.262.0

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.
@@ -945,6 +945,50 @@ export interface ChainErrors extends GenericChainErrors {
945
945
  **/
946
946
  [error: string]: GenericPalletError;
947
947
  };
948
+ /**
949
+ * Pallet `MetaTx`'s errors
950
+ **/
951
+ metaTx: {
952
+ /**
953
+ * Invalid proof (e.g. signature).
954
+ **/
955
+ BadProof: GenericPalletError;
956
+
957
+ /**
958
+ * The meta transaction is not yet valid (e.g. nonce too high).
959
+ **/
960
+ Future: GenericPalletError;
961
+
962
+ /**
963
+ * The meta transaction is outdated (e.g. nonce too low).
964
+ **/
965
+ Stale: GenericPalletError;
966
+
967
+ /**
968
+ * The meta transactions's birth block is ancient.
969
+ **/
970
+ AncientBirthBlock: GenericPalletError;
971
+
972
+ /**
973
+ * The transaction extension did not authorize any origin.
974
+ **/
975
+ UnknownOrigin: GenericPalletError;
976
+
977
+ /**
978
+ * The meta transaction is invalid.
979
+ **/
980
+ Invalid: GenericPalletError;
981
+
982
+ /**
983
+ * The meta transaction length is invalid.
984
+ **/
985
+ InvalidLength: GenericPalletError;
986
+
987
+ /**
988
+ * Generic pallet error
989
+ **/
990
+ [error: string]: GenericPalletError;
991
+ };
948
992
  /**
949
993
  * Pallet `Assets`'s errors
950
994
  **/
@@ -2205,6 +2249,11 @@ export interface ChainErrors extends GenericChainErrors {
2205
2249
  **/
2206
2250
  EcdsaRecoveryFailed: GenericPalletError;
2207
2251
 
2252
+ /**
2253
+ * Manual mapping is disabled when auto-mapping is enabled.
2254
+ **/
2255
+ AutoMappingEnabled: GenericPalletError;
2256
+
2208
2257
  /**
2209
2258
  * Generic pallet error
2210
2259
  **/
@@ -2318,6 +2367,85 @@ export interface ChainErrors extends GenericChainErrors {
2318
2367
  **/
2319
2368
  [error: string]: GenericPalletError;
2320
2369
  };
2370
+ /**
2371
+ * Pallet `Psm`'s errors
2372
+ **/
2373
+ psm: {
2374
+ /**
2375
+ * PSM doesn't have enough external stablecoin for redemption.
2376
+ **/
2377
+ InsufficientReserve: GenericPalletError;
2378
+
2379
+ /**
2380
+ * Swap would exceed PSM debt ceiling.
2381
+ **/
2382
+ ExceedsMaxPsmDebt: GenericPalletError;
2383
+
2384
+ /**
2385
+ * Swap amount below minimum threshold.
2386
+ **/
2387
+ BelowMinimumSwap: GenericPalletError;
2388
+
2389
+ /**
2390
+ * Minting operations are disabled (circuit breaker level >= 1).
2391
+ **/
2392
+ MintingStopped: GenericPalletError;
2393
+
2394
+ /**
2395
+ * All swap operations are disabled (circuit breaker level = 2).
2396
+ **/
2397
+ AllSwapsStopped: GenericPalletError;
2398
+
2399
+ /**
2400
+ * Asset is not an approved external stablecoin.
2401
+ **/
2402
+ UnsupportedAsset: GenericPalletError;
2403
+
2404
+ /**
2405
+ * Mint would exceed system-wide maximum pUSD issuance.
2406
+ **/
2407
+ ExceedsMaxIssuance: GenericPalletError;
2408
+
2409
+ /**
2410
+ * Asset is already in the approved list.
2411
+ **/
2412
+ AssetAlreadyApproved: GenericPalletError;
2413
+
2414
+ /**
2415
+ * Cannot remove asset: not in approved list.
2416
+ **/
2417
+ AssetNotApproved: GenericPalletError;
2418
+
2419
+ /**
2420
+ * Cannot remove asset: has non-zero PSM debt.
2421
+ **/
2422
+ AssetHasDebt: GenericPalletError;
2423
+
2424
+ /**
2425
+ * Operation requires Full manager level (GeneralAdmin), not Emergency.
2426
+ **/
2427
+ InsufficientPrivilege: GenericPalletError;
2428
+
2429
+ /**
2430
+ * Maximum number of approved external assets reached.
2431
+ **/
2432
+ TooManyAssets: GenericPalletError;
2433
+
2434
+ /**
2435
+ * External asset decimals do not match the stable asset decimals.
2436
+ **/
2437
+ DecimalsMismatch: GenericPalletError;
2438
+
2439
+ /**
2440
+ * An unexpected invariant violation occurred. This should be reported.
2441
+ **/
2442
+ Unexpected: GenericPalletError;
2443
+
2444
+ /**
2445
+ * Generic pallet error
2446
+ **/
2447
+ [error: string]: GenericPalletError;
2448
+ };
2321
2449
  /**
2322
2450
  * Pallet `StateTrieMigration`'s errors
2323
2451
  **/
@@ -2553,6 +2681,16 @@ export interface ChainErrors extends GenericChainErrors {
2553
2681
  **/
2554
2682
  CancelledSlash: GenericPalletError;
2555
2683
 
2684
+ /**
2685
+ * Commission is higher than the allowed maximum `MaxCommission`.
2686
+ **/
2687
+ CommissionTooHigh: GenericPalletError;
2688
+
2689
+ /**
2690
+ * Era has no reward pot but legacy minting is disabled.
2691
+ **/
2692
+ LegacyMintingDisabled: GenericPalletError;
2693
+
2556
2694
  /**
2557
2695
  * Generic pallet error
2558
2696
  **/
@@ -3344,6 +3482,25 @@ export interface ChainErrors extends GenericChainErrors {
3344
3482
  **/
3345
3483
  [error: string]: GenericPalletError;
3346
3484
  };
3485
+ /**
3486
+ * Pallet `Dap`'s errors
3487
+ **/
3488
+ dap: {
3489
+ /**
3490
+ * A key in the budget allocation does not match any registered recipient.
3491
+ **/
3492
+ UnknownBudgetKey: GenericPalletError;
3493
+
3494
+ /**
3495
+ * Budget allocation percentages do not sum to exactly 100%.
3496
+ **/
3497
+ BudgetNotExact: GenericPalletError;
3498
+
3499
+ /**
3500
+ * Generic pallet error
3501
+ **/
3502
+ [error: string]: GenericPalletError;
3503
+ };
3347
3504
  /**
3348
3505
  * Pallet `AssetConversionMigration`'s errors
3349
3506
  **/
@@ -34,10 +34,15 @@ import type {
34
34
  PalletMultisigTimepoint,
35
35
  AssetHubWestendRuntimeProxyType,
36
36
  PalletProxyDepositKind,
37
+ FrameSupportDispatchPostDispatchInfo,
38
+ SpRuntimeDispatchErrorWithPostInfo,
39
+ AssetHubWestendRuntimeRuntimeParametersKey,
40
+ AssetHubWestendRuntimeRuntimeParametersValue,
37
41
  PalletNftsAttributeNamespace,
38
42
  PalletNftsPriceWithDirection,
39
43
  PalletNftsPalletAttributes,
40
44
  AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
45
+ PalletPsmCircuitBreakerLevel,
41
46
  PalletStateTrieMigrationMigrationCompute,
42
47
  PalletStateTrieMigrationError,
43
48
  PalletStakingAsyncRewardDestination,
@@ -55,10 +60,9 @@ import type {
55
60
  PalletConvictionVotingVoteAccountVote,
56
61
  FrameSupportPreimagesBounded,
57
62
  PalletConvictionVotingTally,
58
- FrameSupportDispatchPostDispatchInfo,
59
- SpRuntimeDispatchErrorWithPostInfo,
60
63
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
61
64
  ParachainsCommonPayVersionedLocatableAccount,
65
+ PalletDapUnexpectedKind,
62
66
  } from './types.js';
63
67
 
64
68
  export interface ChainEvents extends GenericChainEvents {
@@ -1600,6 +1604,62 @@ export interface ChainEvents extends GenericChainEvents {
1600
1604
  **/
1601
1605
  [prop: string]: GenericPalletEvent;
1602
1606
  };
1607
+ /**
1608
+ * Pallet `MetaTx`'s events
1609
+ **/
1610
+ metaTx: {
1611
+ /**
1612
+ * A meta transaction has been dispatched.
1613
+ *
1614
+ * Contains the dispatch result of the meta transaction along with post-dispatch
1615
+ * information.
1616
+ **/
1617
+ Dispatched: GenericPalletEvent<
1618
+ 'MetaTx',
1619
+ 'Dispatched',
1620
+ { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
1621
+ >;
1622
+
1623
+ /**
1624
+ * Generic pallet event
1625
+ **/
1626
+ [prop: string]: GenericPalletEvent;
1627
+ };
1628
+ /**
1629
+ * Pallet `Parameters`'s events
1630
+ **/
1631
+ parameters: {
1632
+ /**
1633
+ * A Parameter was set.
1634
+ *
1635
+ * Is also emitted when the value was not changed.
1636
+ **/
1637
+ Updated: GenericPalletEvent<
1638
+ 'Parameters',
1639
+ 'Updated',
1640
+ {
1641
+ /**
1642
+ * The key that was updated.
1643
+ **/
1644
+ key: AssetHubWestendRuntimeRuntimeParametersKey;
1645
+
1646
+ /**
1647
+ * The old value before this call.
1648
+ **/
1649
+ oldValue?: AssetHubWestendRuntimeRuntimeParametersValue | undefined;
1650
+
1651
+ /**
1652
+ * The new value after this call.
1653
+ **/
1654
+ newValue?: AssetHubWestendRuntimeRuntimeParametersValue | undefined;
1655
+ }
1656
+ >;
1657
+
1658
+ /**
1659
+ * Generic pallet event
1660
+ **/
1661
+ [prop: string]: GenericPalletEvent;
1662
+ };
1603
1663
  /**
1604
1664
  * Pallet `Assets`'s events
1605
1665
  **/
@@ -3322,6 +3382,88 @@ export interface ChainEvents extends GenericChainEvents {
3322
3382
  **/
3323
3383
  [prop: string]: GenericPalletEvent;
3324
3384
  };
3385
+ /**
3386
+ * Pallet `Psm`'s events
3387
+ **/
3388
+ psm: {
3389
+ /**
3390
+ * User swapped external stablecoin for pUSD.
3391
+ **/
3392
+ Minted: GenericPalletEvent<
3393
+ 'Psm',
3394
+ 'Minted',
3395
+ { who: AccountId32; assetId: number; externalAmount: bigint; pusdReceived: bigint; fee: bigint }
3396
+ >;
3397
+
3398
+ /**
3399
+ * User swapped pUSD for external stablecoin.
3400
+ **/
3401
+ Redeemed: GenericPalletEvent<
3402
+ 'Psm',
3403
+ 'Redeemed',
3404
+ { who: AccountId32; assetId: number; pusdPaid: bigint; externalReceived: bigint; fee: bigint }
3405
+ >;
3406
+
3407
+ /**
3408
+ * Minting fee updated for an asset by governance.
3409
+ **/
3410
+ MintingFeeUpdated: GenericPalletEvent<
3411
+ 'Psm',
3412
+ 'MintingFeeUpdated',
3413
+ { assetId: number; oldValue: Permill; newValue: Permill }
3414
+ >;
3415
+
3416
+ /**
3417
+ * Redemption fee updated for an asset by governance.
3418
+ **/
3419
+ RedemptionFeeUpdated: GenericPalletEvent<
3420
+ 'Psm',
3421
+ 'RedemptionFeeUpdated',
3422
+ { assetId: number; oldValue: Permill; newValue: Permill }
3423
+ >;
3424
+
3425
+ /**
3426
+ * Max PSM debt ratio updated by governance.
3427
+ **/
3428
+ MaxPsmDebtOfTotalUpdated: GenericPalletEvent<
3429
+ 'Psm',
3430
+ 'MaxPsmDebtOfTotalUpdated',
3431
+ { oldValue: Permill; newValue: Permill }
3432
+ >;
3433
+
3434
+ /**
3435
+ * Per-asset debt ceiling weight updated by governance.
3436
+ **/
3437
+ AssetCeilingWeightUpdated: GenericPalletEvent<
3438
+ 'Psm',
3439
+ 'AssetCeilingWeightUpdated',
3440
+ { assetId: number; oldValue: Permill; newValue: Permill }
3441
+ >;
3442
+
3443
+ /**
3444
+ * Per-asset circuit breaker status updated.
3445
+ **/
3446
+ AssetStatusUpdated: GenericPalletEvent<
3447
+ 'Psm',
3448
+ 'AssetStatusUpdated',
3449
+ { assetId: number; status: PalletPsmCircuitBreakerLevel }
3450
+ >;
3451
+
3452
+ /**
3453
+ * An external asset was added to the approved list.
3454
+ **/
3455
+ ExternalAssetAdded: GenericPalletEvent<'Psm', 'ExternalAssetAdded', { assetId: number }>;
3456
+
3457
+ /**
3458
+ * An external asset was removed from the approved list.
3459
+ **/
3460
+ ExternalAssetRemoved: GenericPalletEvent<'Psm', 'ExternalAssetRemoved', { assetId: number }>;
3461
+
3462
+ /**
3463
+ * Generic pallet event
3464
+ **/
3465
+ [prop: string]: GenericPalletEvent;
3466
+ };
3325
3467
  /**
3326
3468
  * Pallet `StateTrieMigration`'s events
3327
3469
  **/
@@ -3361,8 +3503,11 @@ export interface ChainEvents extends GenericChainEvents {
3361
3503
  **/
3362
3504
  staking: {
3363
3505
  /**
3364
- * The era payout has been set; the first balance is the validator-payout; the second is
3365
- * the remainder from the maximum amount of reward.
3506
+ * The era payout has been set.
3507
+ *
3508
+ * In non-minting mode, `validator_payout` is the staker reward budget
3509
+ * snapshotted from the general pot, and `remainder` is always zero.
3510
+ * In legacy minting mode, both fields reflect the `EraPayout` computation.
3366
3511
  **/
3367
3512
  EraPaid: GenericPalletEvent<'Staking', 'EraPaid', { eraIndex: number; validatorPayout: bigint; remainder: bigint }>;
3368
3513
 
@@ -4626,6 +4771,53 @@ export interface ChainEvents extends GenericChainEvents {
4626
4771
  **/
4627
4772
  [prop: string]: GenericPalletEvent;
4628
4773
  };
4774
+ /**
4775
+ * Pallet `Dap`'s events
4776
+ **/
4777
+ dap: {
4778
+ /**
4779
+ * Inflation dripped and distributed to budget recipients.
4780
+ **/
4781
+ IssuanceMinted: GenericPalletEvent<
4782
+ 'Dap',
4783
+ 'IssuanceMinted',
4784
+ {
4785
+ /**
4786
+ * Total amount minted in this drip.
4787
+ **/
4788
+ totalMinted: bigint;
4789
+
4790
+ /**
4791
+ * Elapsed time (ms) since last drip.
4792
+ **/
4793
+ elapsedMillis: bigint;
4794
+ }
4795
+ >;
4796
+
4797
+ /**
4798
+ * Budget allocation was updated via governance.
4799
+ **/
4800
+ BudgetAllocationUpdated: GenericPalletEvent<
4801
+ 'Dap',
4802
+ 'BudgetAllocationUpdated',
4803
+ {
4804
+ /**
4805
+ * The new budget allocation map.
4806
+ **/
4807
+ allocations: Array<[Bytes, Perbill]>;
4808
+ }
4809
+ >;
4810
+
4811
+ /**
4812
+ * An unexpected/defensive event was triggered.
4813
+ **/
4814
+ Unexpected: GenericPalletEvent<'Dap', 'Unexpected', PalletDapUnexpectedKind>;
4815
+
4816
+ /**
4817
+ * Generic pallet event
4818
+ **/
4819
+ [prop: string]: GenericPalletEvent;
4820
+ };
4629
4821
  /**
4630
4822
  * Pallet `AssetConversionMigration`'s events
4631
4823
  **/
@@ -54,7 +54,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
54
54
 
55
55
  /**
56
56
  * @name: WestendAssetHubApi
57
- * @specVersion: 1022002
57
+ * @specVersion: 1022004
58
58
  **/
59
59
  export interface WestendAssetHubApi extends GenericSubstrateApi {
60
60
  rpc: ChainJsonRpcApis;
@@ -13,6 +13,7 @@ import type {
13
13
  FixedBytes,
14
14
  H160,
15
15
  U256,
16
+ Permill,
16
17
  Perbill,
17
18
  Percent,
18
19
  } from 'dedot/codecs';
@@ -74,6 +75,8 @@ import type {
74
75
  PalletMultisigMultisig,
75
76
  PalletProxyProxyDefinition,
76
77
  PalletProxyAnnouncement,
78
+ AssetHubWestendRuntimeRuntimeParametersValue,
79
+ AssetHubWestendRuntimeRuntimeParametersKey,
77
80
  PalletAssetsAssetDetails,
78
81
  PalletAssetsAssetAccount,
79
82
  PalletAssetsApproval,
@@ -106,6 +109,7 @@ import type {
106
109
  PalletAssetRewardsPoolStakerInfo,
107
110
  PalletAssetRewardsPoolInfo,
108
111
  FrameSupportTokensFungibleHoldConsideration,
112
+ PalletPsmCircuitBreakerLevel,
109
113
  PalletStateTrieMigrationMigrationTask,
110
114
  PalletStateTrieMigrationMigrationLimits,
111
115
  PalletStakingAsyncLedgerStakingLedger,
@@ -1532,6 +1536,26 @@ export interface ChainStorage extends GenericChainStorage {
1532
1536
  **/
1533
1537
  [storage: string]: GenericStorageQuery;
1534
1538
  };
1539
+ /**
1540
+ * Pallet `Parameters`'s storage queries
1541
+ **/
1542
+ parameters: {
1543
+ /**
1544
+ * Stored parameters.
1545
+ *
1546
+ * @param {AssetHubWestendRuntimeRuntimeParametersKey} arg
1547
+ * @param {Callback<AssetHubWestendRuntimeRuntimeParametersValue | undefined> =} callback
1548
+ **/
1549
+ parameters: GenericStorageQuery<
1550
+ (arg: AssetHubWestendRuntimeRuntimeParametersKey) => AssetHubWestendRuntimeRuntimeParametersValue | undefined,
1551
+ AssetHubWestendRuntimeRuntimeParametersKey
1552
+ >;
1553
+
1554
+ /**
1555
+ * Generic pallet storage query
1556
+ **/
1557
+ [storage: string]: GenericStorageQuery;
1558
+ };
1535
1559
  /**
1536
1560
  * Pallet `Assets`'s storage queries
1537
1561
  **/
@@ -2388,6 +2412,71 @@ export interface ChainStorage extends GenericChainStorage {
2388
2412
  **/
2389
2413
  [storage: string]: GenericStorageQuery;
2390
2414
  };
2415
+ /**
2416
+ * Pallet `Psm`'s storage queries
2417
+ **/
2418
+ psm: {
2419
+ /**
2420
+ * pUSD minted through PSM per external asset.
2421
+ *
2422
+ * @param {number} arg
2423
+ * @param {Callback<bigint> =} callback
2424
+ **/
2425
+ psmDebt: GenericStorageQuery<(arg: number) => bigint, number>;
2426
+
2427
+ /**
2428
+ * Fee for external → pUSD swaps (minting) per asset. Suggested value is 0.5%.
2429
+ *
2430
+ * @param {number} arg
2431
+ * @param {Callback<Permill> =} callback
2432
+ **/
2433
+ mintingFee: GenericStorageQuery<(arg: number) => Permill, number>;
2434
+
2435
+ /**
2436
+ * Fee for pUSD → external swaps (redemption) per asset. Suggested value is 0.5%.
2437
+ *
2438
+ * @param {number} arg
2439
+ * @param {Callback<Permill> =} callback
2440
+ **/
2441
+ redemptionFee: GenericStorageQuery<(arg: number) => Permill, number>;
2442
+
2443
+ /**
2444
+ * Max PSM debt as percentage of MaximumIssuance (global ceiling).
2445
+ *
2446
+ * @param {Callback<Permill> =} callback
2447
+ **/
2448
+ maxPsmDebtOfTotal: GenericStorageQuery<() => Permill>;
2449
+
2450
+ /**
2451
+ * Per-asset ceiling weight. Weights are normalized against the sum of all weights.
2452
+ * Zero means minting is disabled for this asset.
2453
+ *
2454
+ * @param {number} arg
2455
+ * @param {Callback<Permill> =} callback
2456
+ **/
2457
+ assetCeilingWeight: GenericStorageQuery<(arg: number) => Permill, number>;
2458
+
2459
+ /**
2460
+ * Set of approved external stablecoin asset IDs with their operational status.
2461
+ * Key existence indicates the asset is approved; the value is the circuit breaker level.
2462
+ *
2463
+ * @param {number} arg
2464
+ * @param {Callback<PalletPsmCircuitBreakerLevel | undefined> =} callback
2465
+ **/
2466
+ externalAssets: GenericStorageQuery<(arg: number) => PalletPsmCircuitBreakerLevel | undefined, number>;
2467
+
2468
+ /**
2469
+ * Counter for the related counted storage map
2470
+ *
2471
+ * @param {Callback<number> =} callback
2472
+ **/
2473
+ counterForExternalAssets: GenericStorageQuery<() => number>;
2474
+
2475
+ /**
2476
+ * Generic pallet storage query
2477
+ **/
2478
+ [storage: string]: GenericStorageQuery;
2479
+ };
2391
2480
  /**
2392
2481
  * Pallet `StateTrieMigration`'s storage queries
2393
2482
  **/
@@ -2476,6 +2565,28 @@ export interface ChainStorage extends GenericChainStorage {
2476
2565
  **/
2477
2566
  minCommission: GenericStorageQuery<() => Perbill>;
2478
2567
 
2568
+ /**
2569
+ * The maximum commission that validators can set.
2570
+ *
2571
+ * If not set, defaults to `Perbill::one()` (100%), i.e. no upper limit.
2572
+ *
2573
+ * @param {Callback<Perbill> =} callback
2574
+ **/
2575
+ maxCommission: GenericStorageQuery<() => Perbill>;
2576
+
2577
+ /**
2578
+ * Safety guard: the era from which legacy minting is permanently disabled on the
2579
+ * payout side. **Irreversible** — once set, should never be cleared.
2580
+ *
2581
+ * Separate from [`Config::DisableMinting`] which controls the `end_era` path.
2582
+ * This storage guards against minting during payout for eras that were created
2583
+ * in DAP mode. Set automatically by `end_era_dap` on first successful pot snapshot.
2584
+ * In legacy mode (Kusama), this is never set and the guard is inactive.
2585
+ *
2586
+ * @param {Callback<number | undefined> =} callback
2587
+ **/
2588
+ disableMintingGuard: GenericStorageQuery<() => number | undefined>;
2589
+
2479
2590
  /**
2480
2591
  * Whether nominators are slashable or not.
2481
2592
  *
@@ -2731,9 +2842,11 @@ export interface ChainStorage extends GenericChainStorage {
2731
2842
  >;
2732
2843
 
2733
2844
  /**
2734
- * The total validator era payout for the last [`Config::HistoryDepth`] eras.
2845
+ * The total staker reward budget for each era within [`Config::HistoryDepth`].
2735
2846
  *
2736
- * Eras that haven't finished yet or has been removed doesn't have reward.
2847
+ * Set at era finalization:
2848
+ * - in non-minting mode this is the snapshot of the era pot balance before any payouts.
2849
+ * - in legacy mode it comes from `EraPayout`, with rewards minted on the fly.
2737
2850
  *
2738
2851
  * @param {number} arg
2739
2852
  * @param {Callback<bigint | undefined> =} callback
@@ -2768,7 +2881,8 @@ export interface ChainStorage extends GenericChainStorage {
2768
2881
  /**
2769
2882
  * Maximum staked rewards, i.e. the percentage of the era inflation that
2770
2883
  * is used for stake rewards.
2771
- * See [Era payout](./index.html#era-payout).
2884
+ *
2885
+ * Only used in legacy minting mode (`DisableMinting = false`).
2772
2886
  *
2773
2887
  * @param {Callback<Percent | undefined> =} callback
2774
2888
  **/
@@ -2819,7 +2933,8 @@ export interface ChainStorage extends GenericChainStorage {
2819
2933
  * - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
2820
2934
  * if not already present.
2821
2935
  * - When all offences for an era are processed, it is **removed** from this list.
2822
- * - The maximum length of this vector is bounded by `BondingDuration`.
2936
+ * - The maximum length of this vector is bounded by `BondingDuration +
2937
+ * OFFENCE_QUEUE_ERAS_BOUND`.
2823
2938
  *
2824
2939
  * This eliminates the need for expensive iteration and sorting when fetching the next offence
2825
2940
  * to process.
@@ -3801,6 +3916,35 @@ export interface ChainStorage extends GenericChainStorage {
3801
3916
  **/
3802
3917
  [storage: string]: GenericStorageQuery;
3803
3918
  };
3919
+ /**
3920
+ * Pallet `Dap`'s storage queries
3921
+ **/
3922
+ dap: {
3923
+ /**
3924
+ * Budget allocation map: `BudgetKey -> Perbill`.
3925
+ *
3926
+ * Keys must correspond to registered `BudgetRecipients`. Sum of values must be
3927
+ * exactly `Perbill::one()` (100%). Recipients not included receive nothing.
3928
+ *
3929
+ * @param {Callback<Array<[Bytes, Perbill]>> =} callback
3930
+ **/
3931
+ budgetAllocation: GenericStorageQuery<() => Array<[Bytes, Perbill]>>;
3932
+
3933
+ /**
3934
+ * Timestamp (ms) of the last issuance drip.
3935
+ *
3936
+ * On existing chains, this must be seeded via
3937
+ * [`migrations::MigrateV1ToV2`] to prevent incorrect minting on the first drip.
3938
+ *
3939
+ * @param {Callback<bigint> =} callback
3940
+ **/
3941
+ lastIssuanceTimestamp: GenericStorageQuery<() => bigint>;
3942
+
3943
+ /**
3944
+ * Generic pallet storage query
3945
+ **/
3946
+ [storage: string]: GenericStorageQuery;
3947
+ };
3804
3948
  /**
3805
3949
  * Pallet `AhOps`'s storage queries
3806
3950
  **/
@@ -1129,6 +1129,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
1129
1129
  **/
1130
1130
  blockGasLimit: GenericRuntimeApiMethod<() => Promise<U256>>;
1131
1131
 
1132
+ /**
1133
+ * Returns the block gas limit as calculated from the weights.
1134
+ *
1135
+ * @callname: ReviveApi_max_extrinsic_weight_in_gas
1136
+ **/
1137
+ maxExtrinsicWeightInGas: GenericRuntimeApiMethod<() => Promise<U256>>;
1138
+
1132
1139
  /**
1133
1140
  * Returns the free balance of the given `[H160]` address, using EVM decimals.
1134
1141
  *
@@ -1233,6 +1240,24 @@ export interface RuntimeApis extends GenericRuntimeApis {
1233
1240
  ) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
1234
1241
  >;
1235
1242
 
1243
+ /**
1244
+ * Estimates the amount of gas that a transactions requires.
1245
+ *
1246
+ * This function estimates the gas of the transaction according to the same binary search
1247
+ * algorithm that's implemented in Geth. It stops when with an acceptable error ratio of
1248
+ * 1.5% so that the algorithm terminates early.
1249
+ *
1250
+ * @callname: ReviveApi_eth_estimate_gas
1251
+ * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
1252
+ * @param {PalletReviveEvmApiRpcTypesDryRunConfig} config
1253
+ **/
1254
+ ethEstimateGas: GenericRuntimeApiMethod<
1255
+ (
1256
+ tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
1257
+ config: PalletReviveEvmApiRpcTypesDryRunConfig,
1258
+ ) => Promise<Result<U256, PalletRevivePrimitivesEthTransactError>>
1259
+ >;
1260
+
1236
1261
  /**
1237
1262
  * Upload new code without instantiating a contract from it.
1238
1263
  *