@dedot/chaintypes 0.0.1-alpha.37 → 0.0.1-alpha.39
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/astar/consts.d.ts +0 -84
- package/astar/errors.d.ts +0 -136
- package/astar/events.d.ts +2 -122
- package/astar/query.d.ts +0 -122
- package/astar/tx.d.ts +0 -308
- package/astar/types.d.ts +14 -404
- package/moonbeam/rpc.d.ts +0 -44
- package/package.json +2 -2
package/astar/consts.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type {
|
|
|
10
10
|
SpWeightsWeightV2Weight,
|
|
11
11
|
PalletContractsSchedule,
|
|
12
12
|
PalletContractsEnvironment,
|
|
13
|
-
FrameSupportPalletId,
|
|
14
13
|
} from './types';
|
|
15
14
|
|
|
16
15
|
export interface ChainConsts extends GenericChainConsts {
|
|
@@ -693,87 +692,4 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
693
692
|
**/
|
|
694
693
|
[name: string]: any;
|
|
695
694
|
};
|
|
696
|
-
/**
|
|
697
|
-
* Pallet `DappsStaking`'s constants
|
|
698
|
-
**/
|
|
699
|
-
dappsStaking: {
|
|
700
|
-
/**
|
|
701
|
-
* Number of blocks per era.
|
|
702
|
-
**/
|
|
703
|
-
blockPerEra: number;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Deposit that will be reserved as part of new contract registration.
|
|
707
|
-
**/
|
|
708
|
-
registerDeposit: bigint;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Maximum number of unique stakers per contract.
|
|
712
|
-
**/
|
|
713
|
-
maxNumberOfStakersPerContract: number;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Minimum amount user must have staked on contract.
|
|
717
|
-
* User can stake less if they already have the minimum staking amount staked on that particular contract.
|
|
718
|
-
**/
|
|
719
|
-
minimumStakingAmount: bigint;
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Dapps staking pallet Id
|
|
723
|
-
**/
|
|
724
|
-
palletId: FrameSupportPalletId;
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Minimum amount that should be left on staker account after staking.
|
|
728
|
-
* Serves as a safeguard to prevent users from locking their entire free balance.
|
|
729
|
-
**/
|
|
730
|
-
minimumRemainingAmount: bigint;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Max number of unlocking chunks per account Id <-> contract Id pairing.
|
|
734
|
-
* If value is zero, unlocking becomes impossible.
|
|
735
|
-
**/
|
|
736
|
-
maxUnlockingChunks: number;
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Number of eras that need to pass until unstaked value can be withdrawn.
|
|
740
|
-
* Current era is always counted as full era (regardless how much blocks are remaining).
|
|
741
|
-
* When set to `0`, it's equal to having no unbonding period.
|
|
742
|
-
**/
|
|
743
|
-
unbondingPeriod: number;
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Max number of unique `EraStake` values that can exist for a `(staker, contract)` pairing.
|
|
747
|
-
* When stakers claims rewards, they will either keep the number of `EraStake` values the same or they will reduce them by one.
|
|
748
|
-
* Stakers cannot add an additional `EraStake` value by calling `bond&stake` or `unbond&unstake` if they've reached the max number of values.
|
|
749
|
-
*
|
|
750
|
-
* This ensures that history doesn't grow indefinitely - if there are too many chunks, stakers should first claim their former rewards
|
|
751
|
-
* before adding additional `EraStake` values.
|
|
752
|
-
**/
|
|
753
|
-
maxEraStakeValues: number;
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Number of eras that need to pass until dApp rewards for the unregistered contracts can be burned.
|
|
757
|
-
* Developer can still claim rewards after this period has passed, iff it hasn't been burned yet.
|
|
758
|
-
*
|
|
759
|
-
* For example, if retention is set to `2` and current era is `10`, it means that all unclaimed rewards bellow era `8` can be burned.
|
|
760
|
-
**/
|
|
761
|
-
unregisteredDappRewardRetention: number;
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* Can be used to force pallet into permanent maintenance mode.
|
|
765
|
-
**/
|
|
766
|
-
forcePalletDisabled: boolean;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* The fee that will be charged for claiming rewards on behalf of a staker.
|
|
770
|
-
* This amount will be transferred from the staker over to the caller.
|
|
771
|
-
**/
|
|
772
|
-
delegateClaimFee: bigint;
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Generic pallet constant
|
|
776
|
-
**/
|
|
777
|
-
[name: string]: any;
|
|
778
|
-
};
|
|
779
695
|
}
|
package/astar/errors.d.ts
CHANGED
|
@@ -1461,142 +1461,6 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1461
1461
|
**/
|
|
1462
1462
|
ZeroPrice: GenericPalletError;
|
|
1463
1463
|
|
|
1464
|
-
/**
|
|
1465
|
-
* Generic pallet error
|
|
1466
|
-
**/
|
|
1467
|
-
[error: string]: GenericPalletError;
|
|
1468
|
-
};
|
|
1469
|
-
/**
|
|
1470
|
-
* Pallet `DappsStaking`'s errors
|
|
1471
|
-
**/
|
|
1472
|
-
dappsStaking: {
|
|
1473
|
-
/**
|
|
1474
|
-
* Disabled
|
|
1475
|
-
**/
|
|
1476
|
-
Disabled: GenericPalletError;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* No change in maintenance mode
|
|
1480
|
-
**/
|
|
1481
|
-
NoMaintenanceModeChange: GenericPalletError;
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* Upgrade is too heavy, reduce the weight parameter.
|
|
1485
|
-
**/
|
|
1486
|
-
UpgradeTooHeavy: GenericPalletError;
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* Can not stake with zero value.
|
|
1490
|
-
**/
|
|
1491
|
-
StakingWithNoValue: GenericPalletError;
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* Can not stake with value less than minimum staking value
|
|
1495
|
-
**/
|
|
1496
|
-
InsufficientValue: GenericPalletError;
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* Number of stakers per contract exceeded.
|
|
1500
|
-
**/
|
|
1501
|
-
MaxNumberOfStakersExceeded: GenericPalletError;
|
|
1502
|
-
|
|
1503
|
-
/**
|
|
1504
|
-
* Targets must be operated contracts
|
|
1505
|
-
**/
|
|
1506
|
-
NotOperatedContract: GenericPalletError;
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* Contract isn't staked.
|
|
1510
|
-
**/
|
|
1511
|
-
NotStakedContract: GenericPalletError;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Contract isn't unregistered.
|
|
1515
|
-
**/
|
|
1516
|
-
NotUnregisteredContract: GenericPalletError;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* Unclaimed rewards should be claimed before withdrawing stake.
|
|
1520
|
-
**/
|
|
1521
|
-
UnclaimedRewardsRemaining: GenericPalletError;
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Unstaking a contract with zero value
|
|
1525
|
-
**/
|
|
1526
|
-
UnstakingWithNoValue: GenericPalletError;
|
|
1527
|
-
|
|
1528
|
-
/**
|
|
1529
|
-
* There are no previously unbonded funds that can be unstaked and withdrawn.
|
|
1530
|
-
**/
|
|
1531
|
-
NothingToWithdraw: GenericPalletError;
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* The contract is already registered by other account
|
|
1535
|
-
**/
|
|
1536
|
-
AlreadyRegisteredContract: GenericPalletError;
|
|
1537
|
-
|
|
1538
|
-
/**
|
|
1539
|
-
* This account was already used to register contract
|
|
1540
|
-
**/
|
|
1541
|
-
AlreadyUsedDeveloperAccount: GenericPalletError;
|
|
1542
|
-
|
|
1543
|
-
/**
|
|
1544
|
-
* Smart contract not owned by the account id.
|
|
1545
|
-
**/
|
|
1546
|
-
NotOwnedContract: GenericPalletError;
|
|
1547
|
-
|
|
1548
|
-
/**
|
|
1549
|
-
* Report issue on github if this is ever emitted
|
|
1550
|
-
**/
|
|
1551
|
-
UnknownEraReward: GenericPalletError;
|
|
1552
|
-
|
|
1553
|
-
/**
|
|
1554
|
-
* Report issue on github if this is ever emitted
|
|
1555
|
-
**/
|
|
1556
|
-
UnexpectedStakeInfoEra: GenericPalletError;
|
|
1557
|
-
|
|
1558
|
-
/**
|
|
1559
|
-
* Contract has too many unlocking chunks. Withdraw the existing chunks if possible
|
|
1560
|
-
* or wait for current chunks to complete unlocking process to withdraw them.
|
|
1561
|
-
**/
|
|
1562
|
-
TooManyUnlockingChunks: GenericPalletError;
|
|
1563
|
-
|
|
1564
|
-
/**
|
|
1565
|
-
* Contract already claimed in this era and reward is distributed
|
|
1566
|
-
**/
|
|
1567
|
-
AlreadyClaimedInThisEra: GenericPalletError;
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* Era parameter is out of bounds
|
|
1571
|
-
**/
|
|
1572
|
-
EraOutOfBounds: GenericPalletError;
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* Too many active `EraStake` values for (staker, contract) pairing.
|
|
1576
|
-
* Claim existing rewards to fix this problem.
|
|
1577
|
-
**/
|
|
1578
|
-
TooManyEraStakeValues: GenericPalletError;
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* Account is not actively staking
|
|
1582
|
-
**/
|
|
1583
|
-
NotActiveStaker: GenericPalletError;
|
|
1584
|
-
|
|
1585
|
-
/**
|
|
1586
|
-
* Transfering nomination to the same contract
|
|
1587
|
-
**/
|
|
1588
|
-
NominationTransferToSameContract: GenericPalletError;
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* Decommission is in progress so this call is not allowed.
|
|
1592
|
-
**/
|
|
1593
|
-
DecommissionInProgress: GenericPalletError;
|
|
1594
|
-
|
|
1595
|
-
/**
|
|
1596
|
-
* Delegated claim call is not allowed if both the staker & caller are the same accounts.
|
|
1597
|
-
**/
|
|
1598
|
-
ClaimForCallerAccount: GenericPalletError;
|
|
1599
|
-
|
|
1600
1464
|
/**
|
|
1601
1465
|
* Generic pallet error
|
|
1602
1466
|
**/
|
package/astar/events.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ import type {
|
|
|
35
35
|
EthereumLog,
|
|
36
36
|
EvmCoreErrorExitReason,
|
|
37
37
|
PalletContractsOrigin,
|
|
38
|
-
PalletDappsStakingRewardDestination,
|
|
39
38
|
} from './types';
|
|
40
39
|
|
|
41
40
|
export interface ChainEvents extends GenericChainEvents {
|
|
@@ -1710,128 +1709,9 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1710
1709
|
**/
|
|
1711
1710
|
dappStakingMigration: {
|
|
1712
1711
|
/**
|
|
1713
|
-
* Number of
|
|
1712
|
+
* Number of staking info entries translated
|
|
1714
1713
|
**/
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* Number of entries deleted from v2
|
|
1719
|
-
**/
|
|
1720
|
-
EntriesDeleted: GenericPalletEvent<'DappStakingMigration', 'EntriesDeleted', number>;
|
|
1721
|
-
|
|
1722
|
-
/**
|
|
1723
|
-
* Generic pallet event
|
|
1724
|
-
**/
|
|
1725
|
-
[prop: string]: GenericPalletEvent;
|
|
1726
|
-
};
|
|
1727
|
-
/**
|
|
1728
|
-
* Pallet `DappsStaking`'s events
|
|
1729
|
-
**/
|
|
1730
|
-
dappsStaking: {
|
|
1731
|
-
/**
|
|
1732
|
-
* Account has bonded and staked funds on a smart contract.
|
|
1733
|
-
**/
|
|
1734
|
-
BondAndStake: GenericPalletEvent<
|
|
1735
|
-
'DappsStaking',
|
|
1736
|
-
'BondAndStake',
|
|
1737
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, bigint]
|
|
1738
|
-
>;
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* Account has unbonded & unstaked some funds. Unbonding process begins.
|
|
1742
|
-
**/
|
|
1743
|
-
UnbondAndUnstake: GenericPalletEvent<
|
|
1744
|
-
'DappsStaking',
|
|
1745
|
-
'UnbondAndUnstake',
|
|
1746
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, bigint]
|
|
1747
|
-
>;
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
* Account has fully withdrawn all staked amount from an unregistered contract.
|
|
1751
|
-
**/
|
|
1752
|
-
WithdrawFromUnregistered: GenericPalletEvent<
|
|
1753
|
-
'DappsStaking',
|
|
1754
|
-
'WithdrawFromUnregistered',
|
|
1755
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, bigint]
|
|
1756
|
-
>;
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* Account has withdrawn unbonded funds.
|
|
1760
|
-
**/
|
|
1761
|
-
Withdrawn: GenericPalletEvent<'DappsStaking', 'Withdrawn', [AccountId32, bigint]>;
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* New contract added for staking.
|
|
1765
|
-
**/
|
|
1766
|
-
NewContract: GenericPalletEvent<
|
|
1767
|
-
'DappsStaking',
|
|
1768
|
-
'NewContract',
|
|
1769
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract]
|
|
1770
|
-
>;
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* Contract removed from dapps staking.
|
|
1774
|
-
**/
|
|
1775
|
-
ContractRemoved: GenericPalletEvent<
|
|
1776
|
-
'DappsStaking',
|
|
1777
|
-
'ContractRemoved',
|
|
1778
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract]
|
|
1779
|
-
>;
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
* New dapps staking era. Distribute era rewards to contracts.
|
|
1783
|
-
**/
|
|
1784
|
-
NewDappStakingEra: GenericPalletEvent<'DappsStaking', 'NewDappStakingEra', number>;
|
|
1785
|
-
|
|
1786
|
-
/**
|
|
1787
|
-
* Reward paid to staker or developer.
|
|
1788
|
-
**/
|
|
1789
|
-
Reward: GenericPalletEvent<
|
|
1790
|
-
'DappsStaking',
|
|
1791
|
-
'Reward',
|
|
1792
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, number, bigint]
|
|
1793
|
-
>;
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* Maintenance mode has been enabled or disabled
|
|
1797
|
-
**/
|
|
1798
|
-
MaintenanceMode: GenericPalletEvent<'DappsStaking', 'MaintenanceMode', boolean>;
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* Reward handling modified
|
|
1802
|
-
**/
|
|
1803
|
-
RewardDestination: GenericPalletEvent<
|
|
1804
|
-
'DappsStaking',
|
|
1805
|
-
'RewardDestination',
|
|
1806
|
-
[AccountId32, PalletDappsStakingRewardDestination]
|
|
1807
|
-
>;
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* Nomination part has been transfered from one contract to another.
|
|
1811
|
-
*
|
|
1812
|
-
* \(staker account, origin smart contract, amount, target smart contract\)
|
|
1813
|
-
**/
|
|
1814
|
-
NominationTransfer: GenericPalletEvent<
|
|
1815
|
-
'DappsStaking',
|
|
1816
|
-
'NominationTransfer',
|
|
1817
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, bigint, AstarPrimitivesDappStakingSmartContract]
|
|
1818
|
-
>;
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* Stale, unclaimed reward from an unregistered contract has been burned.
|
|
1822
|
-
*
|
|
1823
|
-
* \(developer account, smart contract, era, amount burned\)
|
|
1824
|
-
**/
|
|
1825
|
-
StaleRewardBurned: GenericPalletEvent<
|
|
1826
|
-
'DappsStaking',
|
|
1827
|
-
'StaleRewardBurned',
|
|
1828
|
-
[AccountId32, AstarPrimitivesDappStakingSmartContract, number, bigint]
|
|
1829
|
-
>;
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Pallet is being decommissioned.
|
|
1833
|
-
**/
|
|
1834
|
-
Decommission: GenericPalletEvent<'DappsStaking', 'Decommission', null>;
|
|
1714
|
+
SingularStakingInfoTranslated: GenericPalletEvent<'DappStakingMigration', 'SingularStakingInfoTranslated', number>;
|
|
1835
1715
|
|
|
1836
1716
|
/**
|
|
1837
1717
|
* Generic pallet event
|
package/astar/query.d.ts
CHANGED
|
@@ -90,14 +90,6 @@ import type {
|
|
|
90
90
|
PalletContractsStorageContractInfo,
|
|
91
91
|
PalletContractsStorageDeletionQueueManager,
|
|
92
92
|
PalletDappStakingMigrationMigrationState,
|
|
93
|
-
PalletDappsStakingAccountLedger,
|
|
94
|
-
PalletDappsStakingRewardInfo,
|
|
95
|
-
PalletDappsStakingForcing,
|
|
96
|
-
PalletDappsStakingDAppInfo,
|
|
97
|
-
PalletDappsStakingEraInfo,
|
|
98
|
-
PalletDappsStakingContractStakeInfo,
|
|
99
|
-
PalletDappsStakingStakerInfo,
|
|
100
|
-
PalletDappsStakingVersion,
|
|
101
93
|
} from './types';
|
|
102
94
|
|
|
103
95
|
export interface ChainStorage extends GenericChainStorage {
|
|
@@ -1685,120 +1677,6 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1685
1677
|
**/
|
|
1686
1678
|
migrationStateStorage: GenericStorageQuery<() => PalletDappStakingMigrationMigrationState>;
|
|
1687
1679
|
|
|
1688
|
-
/**
|
|
1689
|
-
* Generic pallet storage query
|
|
1690
|
-
**/
|
|
1691
|
-
[storage: string]: GenericStorageQuery;
|
|
1692
|
-
};
|
|
1693
|
-
/**
|
|
1694
|
-
* Pallet `DappsStaking`'s storage queries
|
|
1695
|
-
**/
|
|
1696
|
-
dappsStaking: {
|
|
1697
|
-
/**
|
|
1698
|
-
* Denotes whether pallet is disabled (in maintenance mode) or not
|
|
1699
|
-
*
|
|
1700
|
-
* @param {Callback<boolean> =} callback
|
|
1701
|
-
**/
|
|
1702
|
-
palletDisabled: GenericStorageQuery<() => boolean>;
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Denotes whether pallet decommissioning has started or not.
|
|
1706
|
-
*
|
|
1707
|
-
* @param {Callback<boolean> =} callback
|
|
1708
|
-
**/
|
|
1709
|
-
decommissionStarted: GenericStorageQuery<() => boolean>;
|
|
1710
|
-
|
|
1711
|
-
/**
|
|
1712
|
-
* General information about the staker (non-smart-contract specific).
|
|
1713
|
-
*
|
|
1714
|
-
* @param {AccountId32Like} arg
|
|
1715
|
-
* @param {Callback<PalletDappsStakingAccountLedger> =} callback
|
|
1716
|
-
**/
|
|
1717
|
-
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappsStakingAccountLedger>;
|
|
1718
|
-
|
|
1719
|
-
/**
|
|
1720
|
-
* The current era index.
|
|
1721
|
-
*
|
|
1722
|
-
* @param {Callback<number> =} callback
|
|
1723
|
-
**/
|
|
1724
|
-
currentEra: GenericStorageQuery<() => number>;
|
|
1725
|
-
|
|
1726
|
-
/**
|
|
1727
|
-
* Accumulator for block rewards during an era. It is reset at every new era
|
|
1728
|
-
*
|
|
1729
|
-
* @param {Callback<PalletDappsStakingRewardInfo> =} callback
|
|
1730
|
-
**/
|
|
1731
|
-
blockRewardAccumulator: GenericStorageQuery<() => PalletDappsStakingRewardInfo>;
|
|
1732
|
-
|
|
1733
|
-
/**
|
|
1734
|
-
* Mode of era forcing.
|
|
1735
|
-
*
|
|
1736
|
-
* @param {Callback<PalletDappsStakingForcing> =} callback
|
|
1737
|
-
**/
|
|
1738
|
-
forceEra: GenericStorageQuery<() => PalletDappsStakingForcing>;
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* Stores the block number of when the next era starts
|
|
1742
|
-
*
|
|
1743
|
-
* @param {Callback<number> =} callback
|
|
1744
|
-
**/
|
|
1745
|
-
nextEraStartingBlock: GenericStorageQuery<() => number>;
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* Simple map where developer account points to their smart contract
|
|
1749
|
-
*
|
|
1750
|
-
* @param {AccountId32Like} arg
|
|
1751
|
-
* @param {Callback<AstarPrimitivesDappStakingSmartContract | undefined> =} callback
|
|
1752
|
-
**/
|
|
1753
|
-
registeredDevelopers: GenericStorageQuery<
|
|
1754
|
-
(arg: AccountId32Like) => AstarPrimitivesDappStakingSmartContract | undefined
|
|
1755
|
-
>;
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* Simple map where smart contract points to basic info about it (e.g. developer address, state)
|
|
1759
|
-
*
|
|
1760
|
-
* @param {AstarPrimitivesDappStakingSmartContract} arg
|
|
1761
|
-
* @param {Callback<PalletDappsStakingDAppInfo | undefined> =} callback
|
|
1762
|
-
**/
|
|
1763
|
-
registeredDapps: GenericStorageQuery<
|
|
1764
|
-
(arg: AstarPrimitivesDappStakingSmartContract) => PalletDappsStakingDAppInfo | undefined
|
|
1765
|
-
>;
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
* General information about an era like TVL, total staked value, rewards.
|
|
1769
|
-
*
|
|
1770
|
-
* @param {number} arg
|
|
1771
|
-
* @param {Callback<PalletDappsStakingEraInfo | undefined> =} callback
|
|
1772
|
-
**/
|
|
1773
|
-
generalEraInfo: GenericStorageQuery<(arg: number) => PalletDappsStakingEraInfo | undefined>;
|
|
1774
|
-
|
|
1775
|
-
/**
|
|
1776
|
-
* Staking information about contract in a particular era.
|
|
1777
|
-
*
|
|
1778
|
-
* @param {[AstarPrimitivesDappStakingSmartContract, number]} arg
|
|
1779
|
-
* @param {Callback<PalletDappsStakingContractStakeInfo | undefined> =} callback
|
|
1780
|
-
**/
|
|
1781
|
-
contractEraStake: GenericStorageQuery<
|
|
1782
|
-
(arg: [AstarPrimitivesDappStakingSmartContract, number]) => PalletDappsStakingContractStakeInfo | undefined
|
|
1783
|
-
>;
|
|
1784
|
-
|
|
1785
|
-
/**
|
|
1786
|
-
* Info about stakers stakes on particular contracts.
|
|
1787
|
-
*
|
|
1788
|
-
* @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
|
|
1789
|
-
* @param {Callback<PalletDappsStakingStakerInfo> =} callback
|
|
1790
|
-
**/
|
|
1791
|
-
generalStakerInfo: GenericStorageQuery<
|
|
1792
|
-
(arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract]) => PalletDappsStakingStakerInfo
|
|
1793
|
-
>;
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* Stores the current pallet storage version.
|
|
1797
|
-
*
|
|
1798
|
-
* @param {Callback<PalletDappsStakingVersion> =} callback
|
|
1799
|
-
**/
|
|
1800
|
-
storageVersion: GenericStorageQuery<() => PalletDappsStakingVersion>;
|
|
1801
|
-
|
|
1802
1680
|
/**
|
|
1803
1681
|
* Generic pallet storage query
|
|
1804
1682
|
**/
|
package/astar/tx.d.ts
CHANGED
|
@@ -44,8 +44,6 @@ import type {
|
|
|
44
44
|
StagingXcmVersionedMultiAsset,
|
|
45
45
|
EthereumTransactionTransactionV2,
|
|
46
46
|
PalletContractsWasmDeterminism,
|
|
47
|
-
PalletDappsStakingRewardDestination,
|
|
48
|
-
PalletDappsStakingContractStakeInfo,
|
|
49
47
|
} from './types';
|
|
50
48
|
|
|
51
49
|
export type ChainSubmittableExtrinsic<T extends IRuntimeTxCall = AstarRuntimeRuntimeCallLike> = Extrinsic<
|
|
@@ -3706,312 +3704,6 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
3706
3704
|
}>
|
|
3707
3705
|
>;
|
|
3708
3706
|
|
|
3709
|
-
/**
|
|
3710
|
-
* Generic pallet tx call
|
|
3711
|
-
**/
|
|
3712
|
-
[callName: string]: GenericTxCall<TxCall>;
|
|
3713
|
-
};
|
|
3714
|
-
/**
|
|
3715
|
-
* Pallet `DappsStaking`'s transaction calls
|
|
3716
|
-
**/
|
|
3717
|
-
dappsStaking: {
|
|
3718
|
-
/**
|
|
3719
|
-
* See [`Pallet::register`].
|
|
3720
|
-
*
|
|
3721
|
-
* @param {AccountId32Like} developer
|
|
3722
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3723
|
-
**/
|
|
3724
|
-
register: GenericTxCall<
|
|
3725
|
-
(
|
|
3726
|
-
developer: AccountId32Like,
|
|
3727
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3728
|
-
) => ChainSubmittableExtrinsic<{
|
|
3729
|
-
pallet: 'DappsStaking';
|
|
3730
|
-
palletCall: {
|
|
3731
|
-
name: 'Register';
|
|
3732
|
-
params: { developer: AccountId32Like; contractId: AstarPrimitivesDappStakingSmartContract };
|
|
3733
|
-
};
|
|
3734
|
-
}>
|
|
3735
|
-
>;
|
|
3736
|
-
|
|
3737
|
-
/**
|
|
3738
|
-
* See [`Pallet::unregister`].
|
|
3739
|
-
*
|
|
3740
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3741
|
-
**/
|
|
3742
|
-
unregister: GenericTxCall<
|
|
3743
|
-
(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
3744
|
-
pallet: 'DappsStaking';
|
|
3745
|
-
palletCall: {
|
|
3746
|
-
name: 'Unregister';
|
|
3747
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract };
|
|
3748
|
-
};
|
|
3749
|
-
}>
|
|
3750
|
-
>;
|
|
3751
|
-
|
|
3752
|
-
/**
|
|
3753
|
-
* See [`Pallet::withdraw_from_unregistered`].
|
|
3754
|
-
*
|
|
3755
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3756
|
-
**/
|
|
3757
|
-
withdrawFromUnregistered: GenericTxCall<
|
|
3758
|
-
(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
3759
|
-
pallet: 'DappsStaking';
|
|
3760
|
-
palletCall: {
|
|
3761
|
-
name: 'WithdrawFromUnregistered';
|
|
3762
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract };
|
|
3763
|
-
};
|
|
3764
|
-
}>
|
|
3765
|
-
>;
|
|
3766
|
-
|
|
3767
|
-
/**
|
|
3768
|
-
* See [`Pallet::bond_and_stake`].
|
|
3769
|
-
*
|
|
3770
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3771
|
-
* @param {bigint} value
|
|
3772
|
-
**/
|
|
3773
|
-
bondAndStake: GenericTxCall<
|
|
3774
|
-
(
|
|
3775
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3776
|
-
value: bigint,
|
|
3777
|
-
) => ChainSubmittableExtrinsic<{
|
|
3778
|
-
pallet: 'DappsStaking';
|
|
3779
|
-
palletCall: {
|
|
3780
|
-
name: 'BondAndStake';
|
|
3781
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint };
|
|
3782
|
-
};
|
|
3783
|
-
}>
|
|
3784
|
-
>;
|
|
3785
|
-
|
|
3786
|
-
/**
|
|
3787
|
-
* See [`Pallet::unbond_and_unstake`].
|
|
3788
|
-
*
|
|
3789
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3790
|
-
* @param {bigint} value
|
|
3791
|
-
**/
|
|
3792
|
-
unbondAndUnstake: GenericTxCall<
|
|
3793
|
-
(
|
|
3794
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3795
|
-
value: bigint,
|
|
3796
|
-
) => ChainSubmittableExtrinsic<{
|
|
3797
|
-
pallet: 'DappsStaking';
|
|
3798
|
-
palletCall: {
|
|
3799
|
-
name: 'UnbondAndUnstake';
|
|
3800
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint };
|
|
3801
|
-
};
|
|
3802
|
-
}>
|
|
3803
|
-
>;
|
|
3804
|
-
|
|
3805
|
-
/**
|
|
3806
|
-
* See [`Pallet::withdraw_unbonded`].
|
|
3807
|
-
*
|
|
3808
|
-
**/
|
|
3809
|
-
withdrawUnbonded: GenericTxCall<
|
|
3810
|
-
() => ChainSubmittableExtrinsic<{
|
|
3811
|
-
pallet: 'DappsStaking';
|
|
3812
|
-
palletCall: {
|
|
3813
|
-
name: 'WithdrawUnbonded';
|
|
3814
|
-
};
|
|
3815
|
-
}>
|
|
3816
|
-
>;
|
|
3817
|
-
|
|
3818
|
-
/**
|
|
3819
|
-
* See [`Pallet::nomination_transfer`].
|
|
3820
|
-
*
|
|
3821
|
-
* @param {AstarPrimitivesDappStakingSmartContract} originContractId
|
|
3822
|
-
* @param {bigint} value
|
|
3823
|
-
* @param {AstarPrimitivesDappStakingSmartContract} targetContractId
|
|
3824
|
-
**/
|
|
3825
|
-
nominationTransfer: GenericTxCall<
|
|
3826
|
-
(
|
|
3827
|
-
originContractId: AstarPrimitivesDappStakingSmartContract,
|
|
3828
|
-
value: bigint,
|
|
3829
|
-
targetContractId: AstarPrimitivesDappStakingSmartContract,
|
|
3830
|
-
) => ChainSubmittableExtrinsic<{
|
|
3831
|
-
pallet: 'DappsStaking';
|
|
3832
|
-
palletCall: {
|
|
3833
|
-
name: 'NominationTransfer';
|
|
3834
|
-
params: {
|
|
3835
|
-
originContractId: AstarPrimitivesDappStakingSmartContract;
|
|
3836
|
-
value: bigint;
|
|
3837
|
-
targetContractId: AstarPrimitivesDappStakingSmartContract;
|
|
3838
|
-
};
|
|
3839
|
-
};
|
|
3840
|
-
}>
|
|
3841
|
-
>;
|
|
3842
|
-
|
|
3843
|
-
/**
|
|
3844
|
-
* See [`Pallet::claim_staker`].
|
|
3845
|
-
*
|
|
3846
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3847
|
-
**/
|
|
3848
|
-
claimStaker: GenericTxCall<
|
|
3849
|
-
(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
3850
|
-
pallet: 'DappsStaking';
|
|
3851
|
-
palletCall: {
|
|
3852
|
-
name: 'ClaimStaker';
|
|
3853
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract };
|
|
3854
|
-
};
|
|
3855
|
-
}>
|
|
3856
|
-
>;
|
|
3857
|
-
|
|
3858
|
-
/**
|
|
3859
|
-
* See [`Pallet::claim_dapp`].
|
|
3860
|
-
*
|
|
3861
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3862
|
-
* @param {number} era
|
|
3863
|
-
**/
|
|
3864
|
-
claimDapp: GenericTxCall<
|
|
3865
|
-
(
|
|
3866
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3867
|
-
era: number,
|
|
3868
|
-
) => ChainSubmittableExtrinsic<{
|
|
3869
|
-
pallet: 'DappsStaking';
|
|
3870
|
-
palletCall: {
|
|
3871
|
-
name: 'ClaimDapp';
|
|
3872
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number };
|
|
3873
|
-
};
|
|
3874
|
-
}>
|
|
3875
|
-
>;
|
|
3876
|
-
|
|
3877
|
-
/**
|
|
3878
|
-
* See [`Pallet::force_new_era`].
|
|
3879
|
-
*
|
|
3880
|
-
**/
|
|
3881
|
-
forceNewEra: GenericTxCall<
|
|
3882
|
-
() => ChainSubmittableExtrinsic<{
|
|
3883
|
-
pallet: 'DappsStaking';
|
|
3884
|
-
palletCall: {
|
|
3885
|
-
name: 'ForceNewEra';
|
|
3886
|
-
};
|
|
3887
|
-
}>
|
|
3888
|
-
>;
|
|
3889
|
-
|
|
3890
|
-
/**
|
|
3891
|
-
* See [`Pallet::maintenance_mode`].
|
|
3892
|
-
*
|
|
3893
|
-
* @param {boolean} enableMaintenance
|
|
3894
|
-
**/
|
|
3895
|
-
maintenanceMode: GenericTxCall<
|
|
3896
|
-
(enableMaintenance: boolean) => ChainSubmittableExtrinsic<{
|
|
3897
|
-
pallet: 'DappsStaking';
|
|
3898
|
-
palletCall: {
|
|
3899
|
-
name: 'MaintenanceMode';
|
|
3900
|
-
params: { enableMaintenance: boolean };
|
|
3901
|
-
};
|
|
3902
|
-
}>
|
|
3903
|
-
>;
|
|
3904
|
-
|
|
3905
|
-
/**
|
|
3906
|
-
* See [`Pallet::set_reward_destination`].
|
|
3907
|
-
*
|
|
3908
|
-
* @param {PalletDappsStakingRewardDestination} rewardDestination
|
|
3909
|
-
**/
|
|
3910
|
-
setRewardDestination: GenericTxCall<
|
|
3911
|
-
(rewardDestination: PalletDappsStakingRewardDestination) => ChainSubmittableExtrinsic<{
|
|
3912
|
-
pallet: 'DappsStaking';
|
|
3913
|
-
palletCall: {
|
|
3914
|
-
name: 'SetRewardDestination';
|
|
3915
|
-
params: { rewardDestination: PalletDappsStakingRewardDestination };
|
|
3916
|
-
};
|
|
3917
|
-
}>
|
|
3918
|
-
>;
|
|
3919
|
-
|
|
3920
|
-
/**
|
|
3921
|
-
* See [`Pallet::set_contract_stake_info`].
|
|
3922
|
-
*
|
|
3923
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contract
|
|
3924
|
-
* @param {number} era
|
|
3925
|
-
* @param {PalletDappsStakingContractStakeInfo} contractStakeInfo
|
|
3926
|
-
**/
|
|
3927
|
-
setContractStakeInfo: GenericTxCall<
|
|
3928
|
-
(
|
|
3929
|
-
contract: AstarPrimitivesDappStakingSmartContract,
|
|
3930
|
-
era: number,
|
|
3931
|
-
contractStakeInfo: PalletDappsStakingContractStakeInfo,
|
|
3932
|
-
) => ChainSubmittableExtrinsic<{
|
|
3933
|
-
pallet: 'DappsStaking';
|
|
3934
|
-
palletCall: {
|
|
3935
|
-
name: 'SetContractStakeInfo';
|
|
3936
|
-
params: {
|
|
3937
|
-
contract: AstarPrimitivesDappStakingSmartContract;
|
|
3938
|
-
era: number;
|
|
3939
|
-
contractStakeInfo: PalletDappsStakingContractStakeInfo;
|
|
3940
|
-
};
|
|
3941
|
-
};
|
|
3942
|
-
}>
|
|
3943
|
-
>;
|
|
3944
|
-
|
|
3945
|
-
/**
|
|
3946
|
-
* See [`Pallet::burn_stale_reward`].
|
|
3947
|
-
*
|
|
3948
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3949
|
-
* @param {number} era
|
|
3950
|
-
**/
|
|
3951
|
-
burnStaleReward: GenericTxCall<
|
|
3952
|
-
(
|
|
3953
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3954
|
-
era: number,
|
|
3955
|
-
) => ChainSubmittableExtrinsic<{
|
|
3956
|
-
pallet: 'DappsStaking';
|
|
3957
|
-
palletCall: {
|
|
3958
|
-
name: 'BurnStaleReward';
|
|
3959
|
-
params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number };
|
|
3960
|
-
};
|
|
3961
|
-
}>
|
|
3962
|
-
>;
|
|
3963
|
-
|
|
3964
|
-
/**
|
|
3965
|
-
* See [`Pallet::claim_staker_for`].
|
|
3966
|
-
*
|
|
3967
|
-
* @param {AccountId32Like} staker
|
|
3968
|
-
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
3969
|
-
**/
|
|
3970
|
-
claimStakerFor: GenericTxCall<
|
|
3971
|
-
(
|
|
3972
|
-
staker: AccountId32Like,
|
|
3973
|
-
contractId: AstarPrimitivesDappStakingSmartContract,
|
|
3974
|
-
) => ChainSubmittableExtrinsic<{
|
|
3975
|
-
pallet: 'DappsStaking';
|
|
3976
|
-
palletCall: {
|
|
3977
|
-
name: 'ClaimStakerFor';
|
|
3978
|
-
params: { staker: AccountId32Like; contractId: AstarPrimitivesDappStakingSmartContract };
|
|
3979
|
-
};
|
|
3980
|
-
}>
|
|
3981
|
-
>;
|
|
3982
|
-
|
|
3983
|
-
/**
|
|
3984
|
-
* See [`Pallet::set_reward_destination_for`].
|
|
3985
|
-
*
|
|
3986
|
-
* @param {AccountId32Like} staker
|
|
3987
|
-
* @param {PalletDappsStakingRewardDestination} rewardDestination
|
|
3988
|
-
**/
|
|
3989
|
-
setRewardDestinationFor: GenericTxCall<
|
|
3990
|
-
(
|
|
3991
|
-
staker: AccountId32Like,
|
|
3992
|
-
rewardDestination: PalletDappsStakingRewardDestination,
|
|
3993
|
-
) => ChainSubmittableExtrinsic<{
|
|
3994
|
-
pallet: 'DappsStaking';
|
|
3995
|
-
palletCall: {
|
|
3996
|
-
name: 'SetRewardDestinationFor';
|
|
3997
|
-
params: { staker: AccountId32Like; rewardDestination: PalletDappsStakingRewardDestination };
|
|
3998
|
-
};
|
|
3999
|
-
}>
|
|
4000
|
-
>;
|
|
4001
|
-
|
|
4002
|
-
/**
|
|
4003
|
-
* See [`Pallet::decommission`].
|
|
4004
|
-
*
|
|
4005
|
-
**/
|
|
4006
|
-
decommission: GenericTxCall<
|
|
4007
|
-
() => ChainSubmittableExtrinsic<{
|
|
4008
|
-
pallet: 'DappsStaking';
|
|
4009
|
-
palletCall: {
|
|
4010
|
-
name: 'Decommission';
|
|
4011
|
-
};
|
|
4012
|
-
}>
|
|
4013
|
-
>;
|
|
4014
|
-
|
|
4015
3707
|
/**
|
|
4016
3708
|
* Generic pallet tx call
|
|
4017
3709
|
**/
|
package/astar/types.d.ts
CHANGED
|
@@ -78,8 +78,7 @@ export type AstarRuntimeRuntimeEvent =
|
|
|
78
78
|
| { pallet: 'Contracts'; palletEvent: PalletContractsEvent }
|
|
79
79
|
| { pallet: 'Sudo'; palletEvent: PalletSudoEvent }
|
|
80
80
|
| { pallet: 'StaticPriceProvider'; palletEvent: PalletStaticPriceProviderEvent }
|
|
81
|
-
| { pallet: 'DappStakingMigration'; palletEvent: PalletDappStakingMigrationEvent }
|
|
82
|
-
| { pallet: 'DappsStaking'; palletEvent: PalletDappsStakingPalletEvent };
|
|
81
|
+
| { pallet: 'DappStakingMigration'; palletEvent: PalletDappStakingMigrationEvent };
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
84
|
* Event for the System pallet.
|
|
@@ -1827,79 +1826,9 @@ export type PalletStaticPriceProviderEvent =
|
|
|
1827
1826
|
**/
|
|
1828
1827
|
export type PalletDappStakingMigrationEvent =
|
|
1829
1828
|
/**
|
|
1830
|
-
* Number of
|
|
1829
|
+
* Number of staking info entries translated
|
|
1831
1830
|
**/
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Number of entries deleted from v2
|
|
1835
|
-
**/
|
|
1836
|
-
| { name: 'EntriesDeleted'; data: number };
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* The `Event` enum of this pallet
|
|
1840
|
-
**/
|
|
1841
|
-
export type PalletDappsStakingPalletEvent =
|
|
1842
|
-
/**
|
|
1843
|
-
* Account has bonded and staked funds on a smart contract.
|
|
1844
|
-
**/
|
|
1845
|
-
| { name: 'BondAndStake'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract, bigint] }
|
|
1846
|
-
/**
|
|
1847
|
-
* Account has unbonded & unstaked some funds. Unbonding process begins.
|
|
1848
|
-
**/
|
|
1849
|
-
| { name: 'UnbondAndUnstake'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract, bigint] }
|
|
1850
|
-
/**
|
|
1851
|
-
* Account has fully withdrawn all staked amount from an unregistered contract.
|
|
1852
|
-
**/
|
|
1853
|
-
| { name: 'WithdrawFromUnregistered'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract, bigint] }
|
|
1854
|
-
/**
|
|
1855
|
-
* Account has withdrawn unbonded funds.
|
|
1856
|
-
**/
|
|
1857
|
-
| { name: 'Withdrawn'; data: [AccountId32, bigint] }
|
|
1858
|
-
/**
|
|
1859
|
-
* New contract added for staking.
|
|
1860
|
-
**/
|
|
1861
|
-
| { name: 'NewContract'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract] }
|
|
1862
|
-
/**
|
|
1863
|
-
* Contract removed from dapps staking.
|
|
1864
|
-
**/
|
|
1865
|
-
| { name: 'ContractRemoved'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract] }
|
|
1866
|
-
/**
|
|
1867
|
-
* New dapps staking era. Distribute era rewards to contracts.
|
|
1868
|
-
**/
|
|
1869
|
-
| { name: 'NewDappStakingEra'; data: number }
|
|
1870
|
-
/**
|
|
1871
|
-
* Reward paid to staker or developer.
|
|
1872
|
-
**/
|
|
1873
|
-
| { name: 'Reward'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract, number, bigint] }
|
|
1874
|
-
/**
|
|
1875
|
-
* Maintenance mode has been enabled or disabled
|
|
1876
|
-
**/
|
|
1877
|
-
| { name: 'MaintenanceMode'; data: boolean }
|
|
1878
|
-
/**
|
|
1879
|
-
* Reward handling modified
|
|
1880
|
-
**/
|
|
1881
|
-
| { name: 'RewardDestination'; data: [AccountId32, PalletDappsStakingRewardDestination] }
|
|
1882
|
-
/**
|
|
1883
|
-
* Nomination part has been transfered from one contract to another.
|
|
1884
|
-
*
|
|
1885
|
-
* \(staker account, origin smart contract, amount, target smart contract\)
|
|
1886
|
-
**/
|
|
1887
|
-
| {
|
|
1888
|
-
name: 'NominationTransfer';
|
|
1889
|
-
data: [AccountId32, AstarPrimitivesDappStakingSmartContract, bigint, AstarPrimitivesDappStakingSmartContract];
|
|
1890
|
-
}
|
|
1891
|
-
/**
|
|
1892
|
-
* Stale, unclaimed reward from an unregistered contract has been burned.
|
|
1893
|
-
*
|
|
1894
|
-
* \(developer account, smart contract, era, amount burned\)
|
|
1895
|
-
**/
|
|
1896
|
-
| { name: 'StaleRewardBurned'; data: [AccountId32, AstarPrimitivesDappStakingSmartContract, number, bigint] }
|
|
1897
|
-
/**
|
|
1898
|
-
* Pallet is being decommissioned.
|
|
1899
|
-
**/
|
|
1900
|
-
| { name: 'Decommission' };
|
|
1901
|
-
|
|
1902
|
-
export type PalletDappsStakingRewardDestination = 'FreeBalance' | 'StakeBalance';
|
|
1831
|
+
{ name: 'SingularStakingInfoTranslated'; data: number };
|
|
1903
1832
|
|
|
1904
1833
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
1905
1834
|
|
|
@@ -2115,8 +2044,7 @@ export type AstarRuntimeRuntimeCall =
|
|
|
2115
2044
|
| { pallet: 'Contracts'; palletCall: PalletContractsCall }
|
|
2116
2045
|
| { pallet: 'Sudo'; palletCall: PalletSudoCall }
|
|
2117
2046
|
| { pallet: 'StaticPriceProvider'; palletCall: PalletStaticPriceProviderCall }
|
|
2118
|
-
| { pallet: 'DappStakingMigration'; palletCall: PalletDappStakingMigrationCall }
|
|
2119
|
-
| { pallet: 'DappsStaking'; palletCall: PalletDappsStakingPalletCall };
|
|
2047
|
+
| { pallet: 'DappStakingMigration'; palletCall: PalletDappStakingMigrationCall };
|
|
2120
2048
|
|
|
2121
2049
|
export type AstarRuntimeRuntimeCallLike =
|
|
2122
2050
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -2146,8 +2074,7 @@ export type AstarRuntimeRuntimeCallLike =
|
|
|
2146
2074
|
| { pallet: 'Contracts'; palletCall: PalletContractsCallLike }
|
|
2147
2075
|
| { pallet: 'Sudo'; palletCall: PalletSudoCallLike }
|
|
2148
2076
|
| { pallet: 'StaticPriceProvider'; palletCall: PalletStaticPriceProviderCallLike }
|
|
2149
|
-
| { pallet: 'DappStakingMigration'; palletCall: PalletDappStakingMigrationCallLike }
|
|
2150
|
-
| { pallet: 'DappsStaking'; palletCall: PalletDappsStakingPalletCallLike };
|
|
2077
|
+
| { pallet: 'DappStakingMigration'; palletCall: PalletDappStakingMigrationCallLike };
|
|
2151
2078
|
|
|
2152
2079
|
/**
|
|
2153
2080
|
* Identity pallet declaration.
|
|
@@ -4432,189 +4359,6 @@ export type PalletDappStakingMigrationCallLike =
|
|
|
4432
4359
|
**/
|
|
4433
4360
|
{ name: 'Migrate'; params: { weightLimit?: SpWeightsWeightV2Weight | undefined } };
|
|
4434
4361
|
|
|
4435
|
-
/**
|
|
4436
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4437
|
-
**/
|
|
4438
|
-
export type PalletDappsStakingPalletCall =
|
|
4439
|
-
/**
|
|
4440
|
-
* See [`Pallet::register`].
|
|
4441
|
-
**/
|
|
4442
|
-
| { name: 'Register'; params: { developer: AccountId32; contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4443
|
-
/**
|
|
4444
|
-
* See [`Pallet::unregister`].
|
|
4445
|
-
**/
|
|
4446
|
-
| { name: 'Unregister'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4447
|
-
/**
|
|
4448
|
-
* See [`Pallet::withdraw_from_unregistered`].
|
|
4449
|
-
**/
|
|
4450
|
-
| { name: 'WithdrawFromUnregistered'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4451
|
-
/**
|
|
4452
|
-
* See [`Pallet::bond_and_stake`].
|
|
4453
|
-
**/
|
|
4454
|
-
| { name: 'BondAndStake'; params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint } }
|
|
4455
|
-
/**
|
|
4456
|
-
* See [`Pallet::unbond_and_unstake`].
|
|
4457
|
-
**/
|
|
4458
|
-
| { name: 'UnbondAndUnstake'; params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint } }
|
|
4459
|
-
/**
|
|
4460
|
-
* See [`Pallet::withdraw_unbonded`].
|
|
4461
|
-
**/
|
|
4462
|
-
| { name: 'WithdrawUnbonded' }
|
|
4463
|
-
/**
|
|
4464
|
-
* See [`Pallet::nomination_transfer`].
|
|
4465
|
-
**/
|
|
4466
|
-
| {
|
|
4467
|
-
name: 'NominationTransfer';
|
|
4468
|
-
params: {
|
|
4469
|
-
originContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4470
|
-
value: bigint;
|
|
4471
|
-
targetContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4472
|
-
};
|
|
4473
|
-
}
|
|
4474
|
-
/**
|
|
4475
|
-
* See [`Pallet::claim_staker`].
|
|
4476
|
-
**/
|
|
4477
|
-
| { name: 'ClaimStaker'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4478
|
-
/**
|
|
4479
|
-
* See [`Pallet::claim_dapp`].
|
|
4480
|
-
**/
|
|
4481
|
-
| { name: 'ClaimDapp'; params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number } }
|
|
4482
|
-
/**
|
|
4483
|
-
* See [`Pallet::force_new_era`].
|
|
4484
|
-
**/
|
|
4485
|
-
| { name: 'ForceNewEra' }
|
|
4486
|
-
/**
|
|
4487
|
-
* See [`Pallet::maintenance_mode`].
|
|
4488
|
-
**/
|
|
4489
|
-
| { name: 'MaintenanceMode'; params: { enableMaintenance: boolean } }
|
|
4490
|
-
/**
|
|
4491
|
-
* See [`Pallet::set_reward_destination`].
|
|
4492
|
-
**/
|
|
4493
|
-
| { name: 'SetRewardDestination'; params: { rewardDestination: PalletDappsStakingRewardDestination } }
|
|
4494
|
-
/**
|
|
4495
|
-
* See [`Pallet::set_contract_stake_info`].
|
|
4496
|
-
**/
|
|
4497
|
-
| {
|
|
4498
|
-
name: 'SetContractStakeInfo';
|
|
4499
|
-
params: {
|
|
4500
|
-
contract: AstarPrimitivesDappStakingSmartContract;
|
|
4501
|
-
era: number;
|
|
4502
|
-
contractStakeInfo: PalletDappsStakingContractStakeInfo;
|
|
4503
|
-
};
|
|
4504
|
-
}
|
|
4505
|
-
/**
|
|
4506
|
-
* See [`Pallet::burn_stale_reward`].
|
|
4507
|
-
**/
|
|
4508
|
-
| { name: 'BurnStaleReward'; params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number } }
|
|
4509
|
-
/**
|
|
4510
|
-
* See [`Pallet::claim_staker_for`].
|
|
4511
|
-
**/
|
|
4512
|
-
| { name: 'ClaimStakerFor'; params: { staker: AccountId32; contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4513
|
-
/**
|
|
4514
|
-
* See [`Pallet::set_reward_destination_for`].
|
|
4515
|
-
**/
|
|
4516
|
-
| {
|
|
4517
|
-
name: 'SetRewardDestinationFor';
|
|
4518
|
-
params: { staker: AccountId32; rewardDestination: PalletDappsStakingRewardDestination };
|
|
4519
|
-
}
|
|
4520
|
-
/**
|
|
4521
|
-
* See [`Pallet::decommission`].
|
|
4522
|
-
**/
|
|
4523
|
-
| { name: 'Decommission' };
|
|
4524
|
-
|
|
4525
|
-
export type PalletDappsStakingPalletCallLike =
|
|
4526
|
-
/**
|
|
4527
|
-
* See [`Pallet::register`].
|
|
4528
|
-
**/
|
|
4529
|
-
| { name: 'Register'; params: { developer: AccountId32Like; contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4530
|
-
/**
|
|
4531
|
-
* See [`Pallet::unregister`].
|
|
4532
|
-
**/
|
|
4533
|
-
| { name: 'Unregister'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4534
|
-
/**
|
|
4535
|
-
* See [`Pallet::withdraw_from_unregistered`].
|
|
4536
|
-
**/
|
|
4537
|
-
| { name: 'WithdrawFromUnregistered'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4538
|
-
/**
|
|
4539
|
-
* See [`Pallet::bond_and_stake`].
|
|
4540
|
-
**/
|
|
4541
|
-
| { name: 'BondAndStake'; params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint } }
|
|
4542
|
-
/**
|
|
4543
|
-
* See [`Pallet::unbond_and_unstake`].
|
|
4544
|
-
**/
|
|
4545
|
-
| { name: 'UnbondAndUnstake'; params: { contractId: AstarPrimitivesDappStakingSmartContract; value: bigint } }
|
|
4546
|
-
/**
|
|
4547
|
-
* See [`Pallet::withdraw_unbonded`].
|
|
4548
|
-
**/
|
|
4549
|
-
| { name: 'WithdrawUnbonded' }
|
|
4550
|
-
/**
|
|
4551
|
-
* See [`Pallet::nomination_transfer`].
|
|
4552
|
-
**/
|
|
4553
|
-
| {
|
|
4554
|
-
name: 'NominationTransfer';
|
|
4555
|
-
params: {
|
|
4556
|
-
originContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4557
|
-
value: bigint;
|
|
4558
|
-
targetContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4559
|
-
};
|
|
4560
|
-
}
|
|
4561
|
-
/**
|
|
4562
|
-
* See [`Pallet::claim_staker`].
|
|
4563
|
-
**/
|
|
4564
|
-
| { name: 'ClaimStaker'; params: { contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4565
|
-
/**
|
|
4566
|
-
* See [`Pallet::claim_dapp`].
|
|
4567
|
-
**/
|
|
4568
|
-
| { name: 'ClaimDapp'; params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number } }
|
|
4569
|
-
/**
|
|
4570
|
-
* See [`Pallet::force_new_era`].
|
|
4571
|
-
**/
|
|
4572
|
-
| { name: 'ForceNewEra' }
|
|
4573
|
-
/**
|
|
4574
|
-
* See [`Pallet::maintenance_mode`].
|
|
4575
|
-
**/
|
|
4576
|
-
| { name: 'MaintenanceMode'; params: { enableMaintenance: boolean } }
|
|
4577
|
-
/**
|
|
4578
|
-
* See [`Pallet::set_reward_destination`].
|
|
4579
|
-
**/
|
|
4580
|
-
| { name: 'SetRewardDestination'; params: { rewardDestination: PalletDappsStakingRewardDestination } }
|
|
4581
|
-
/**
|
|
4582
|
-
* See [`Pallet::set_contract_stake_info`].
|
|
4583
|
-
**/
|
|
4584
|
-
| {
|
|
4585
|
-
name: 'SetContractStakeInfo';
|
|
4586
|
-
params: {
|
|
4587
|
-
contract: AstarPrimitivesDappStakingSmartContract;
|
|
4588
|
-
era: number;
|
|
4589
|
-
contractStakeInfo: PalletDappsStakingContractStakeInfo;
|
|
4590
|
-
};
|
|
4591
|
-
}
|
|
4592
|
-
/**
|
|
4593
|
-
* See [`Pallet::burn_stale_reward`].
|
|
4594
|
-
**/
|
|
4595
|
-
| { name: 'BurnStaleReward'; params: { contractId: AstarPrimitivesDappStakingSmartContract; era: number } }
|
|
4596
|
-
/**
|
|
4597
|
-
* See [`Pallet::claim_staker_for`].
|
|
4598
|
-
**/
|
|
4599
|
-
| { name: 'ClaimStakerFor'; params: { staker: AccountId32Like; contractId: AstarPrimitivesDappStakingSmartContract } }
|
|
4600
|
-
/**
|
|
4601
|
-
* See [`Pallet::set_reward_destination_for`].
|
|
4602
|
-
**/
|
|
4603
|
-
| {
|
|
4604
|
-
name: 'SetRewardDestinationFor';
|
|
4605
|
-
params: { staker: AccountId32Like; rewardDestination: PalletDappsStakingRewardDestination };
|
|
4606
|
-
}
|
|
4607
|
-
/**
|
|
4608
|
-
* See [`Pallet::decommission`].
|
|
4609
|
-
**/
|
|
4610
|
-
| { name: 'Decommission' };
|
|
4611
|
-
|
|
4612
|
-
export type PalletDappsStakingContractStakeInfo = {
|
|
4613
|
-
total: bigint;
|
|
4614
|
-
numberOfStakers: number;
|
|
4615
|
-
contractRewardClaimed: boolean;
|
|
4616
|
-
};
|
|
4617
|
-
|
|
4618
4362
|
export type AstarRuntimeOriginCaller =
|
|
4619
4363
|
| { tag: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
4620
4364
|
| { tag: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
@@ -5081,7 +4825,11 @@ export type PalletDappStakingV3UnlockingChunk = { amount: bigint; unlockBlock: n
|
|
|
5081
4825
|
|
|
5082
4826
|
export type PalletDappStakingV3StakeAmount = { voting: bigint; buildAndEarn: bigint; era: number; period: number };
|
|
5083
4827
|
|
|
5084
|
-
export type PalletDappStakingV3SingularStakingInfo = {
|
|
4828
|
+
export type PalletDappStakingV3SingularStakingInfo = {
|
|
4829
|
+
previousStaked: PalletDappStakingV3StakeAmount;
|
|
4830
|
+
staked: PalletDappStakingV3StakeAmount;
|
|
4831
|
+
loyalStaker: boolean;
|
|
4832
|
+
};
|
|
5085
4833
|
|
|
5086
4834
|
export type PalletDappStakingV3ContractStakeAmount = {
|
|
5087
4835
|
staked: PalletDappStakingV3StakeAmount;
|
|
@@ -6223,146 +5971,9 @@ export type PalletStaticPriceProviderError =
|
|
|
6223
5971
|
'ZeroPrice';
|
|
6224
5972
|
|
|
6225
5973
|
export type PalletDappStakingMigrationMigrationState =
|
|
6226
|
-
| 'NotInProgress'
|
|
6227
|
-
| '
|
|
6228
|
-
| '
|
|
6229
|
-
| 'Cleanup'
|
|
6230
|
-
| 'Finished';
|
|
6231
|
-
|
|
6232
|
-
export type PalletDappsStakingAccountLedger = {
|
|
6233
|
-
locked: bigint;
|
|
6234
|
-
unbondingInfo: PalletDappsStakingUnbondingInfo;
|
|
6235
|
-
rewardDestination: PalletDappsStakingRewardDestination;
|
|
6236
|
-
};
|
|
6237
|
-
|
|
6238
|
-
export type PalletDappsStakingUnbondingInfo = { unlockingChunks: Array<PalletDappsStakingUnlockingChunk> };
|
|
6239
|
-
|
|
6240
|
-
export type PalletDappsStakingUnlockingChunk = { amount: bigint; unlockEra: number };
|
|
6241
|
-
|
|
6242
|
-
export type PalletDappsStakingRewardInfo = { stakers: bigint; dapps: bigint };
|
|
6243
|
-
|
|
6244
|
-
export type PalletDappsStakingForcing = 'NotForcing' | 'ForceNew';
|
|
6245
|
-
|
|
6246
|
-
export type PalletDappsStakingDAppInfo = { developer: AccountId32; state: PalletDappsStakingDAppState };
|
|
6247
|
-
|
|
6248
|
-
export type PalletDappsStakingDAppState = { tag: 'Registered' } | { tag: 'Unregistered'; value: number };
|
|
6249
|
-
|
|
6250
|
-
export type PalletDappsStakingEraInfo = { rewards: PalletDappsStakingRewardInfo; staked: bigint; locked: bigint };
|
|
6251
|
-
|
|
6252
|
-
export type PalletDappsStakingStakerInfo = { stakes: Array<PalletDappsStakingEraStake> };
|
|
6253
|
-
|
|
6254
|
-
export type PalletDappsStakingEraStake = { staked: bigint; era: number };
|
|
6255
|
-
|
|
6256
|
-
export type PalletDappsStakingVersion = 'V100' | 'V200' | 'V300' | 'V400';
|
|
6257
|
-
|
|
6258
|
-
export type FrameSupportPalletId = FixedBytes<8>;
|
|
6259
|
-
|
|
6260
|
-
/**
|
|
6261
|
-
* The `Error` enum of this pallet.
|
|
6262
|
-
**/
|
|
6263
|
-
export type PalletDappsStakingPalletError =
|
|
6264
|
-
/**
|
|
6265
|
-
* Disabled
|
|
6266
|
-
**/
|
|
6267
|
-
| 'Disabled'
|
|
6268
|
-
/**
|
|
6269
|
-
* No change in maintenance mode
|
|
6270
|
-
**/
|
|
6271
|
-
| 'NoMaintenanceModeChange'
|
|
6272
|
-
/**
|
|
6273
|
-
* Upgrade is too heavy, reduce the weight parameter.
|
|
6274
|
-
**/
|
|
6275
|
-
| 'UpgradeTooHeavy'
|
|
6276
|
-
/**
|
|
6277
|
-
* Can not stake with zero value.
|
|
6278
|
-
**/
|
|
6279
|
-
| 'StakingWithNoValue'
|
|
6280
|
-
/**
|
|
6281
|
-
* Can not stake with value less than minimum staking value
|
|
6282
|
-
**/
|
|
6283
|
-
| 'InsufficientValue'
|
|
6284
|
-
/**
|
|
6285
|
-
* Number of stakers per contract exceeded.
|
|
6286
|
-
**/
|
|
6287
|
-
| 'MaxNumberOfStakersExceeded'
|
|
6288
|
-
/**
|
|
6289
|
-
* Targets must be operated contracts
|
|
6290
|
-
**/
|
|
6291
|
-
| 'NotOperatedContract'
|
|
6292
|
-
/**
|
|
6293
|
-
* Contract isn't staked.
|
|
6294
|
-
**/
|
|
6295
|
-
| 'NotStakedContract'
|
|
6296
|
-
/**
|
|
6297
|
-
* Contract isn't unregistered.
|
|
6298
|
-
**/
|
|
6299
|
-
| 'NotUnregisteredContract'
|
|
6300
|
-
/**
|
|
6301
|
-
* Unclaimed rewards should be claimed before withdrawing stake.
|
|
6302
|
-
**/
|
|
6303
|
-
| 'UnclaimedRewardsRemaining'
|
|
6304
|
-
/**
|
|
6305
|
-
* Unstaking a contract with zero value
|
|
6306
|
-
**/
|
|
6307
|
-
| 'UnstakingWithNoValue'
|
|
6308
|
-
/**
|
|
6309
|
-
* There are no previously unbonded funds that can be unstaked and withdrawn.
|
|
6310
|
-
**/
|
|
6311
|
-
| 'NothingToWithdraw'
|
|
6312
|
-
/**
|
|
6313
|
-
* The contract is already registered by other account
|
|
6314
|
-
**/
|
|
6315
|
-
| 'AlreadyRegisteredContract'
|
|
6316
|
-
/**
|
|
6317
|
-
* This account was already used to register contract
|
|
6318
|
-
**/
|
|
6319
|
-
| 'AlreadyUsedDeveloperAccount'
|
|
6320
|
-
/**
|
|
6321
|
-
* Smart contract not owned by the account id.
|
|
6322
|
-
**/
|
|
6323
|
-
| 'NotOwnedContract'
|
|
6324
|
-
/**
|
|
6325
|
-
* Report issue on github if this is ever emitted
|
|
6326
|
-
**/
|
|
6327
|
-
| 'UnknownEraReward'
|
|
6328
|
-
/**
|
|
6329
|
-
* Report issue on github if this is ever emitted
|
|
6330
|
-
**/
|
|
6331
|
-
| 'UnexpectedStakeInfoEra'
|
|
6332
|
-
/**
|
|
6333
|
-
* Contract has too many unlocking chunks. Withdraw the existing chunks if possible
|
|
6334
|
-
* or wait for current chunks to complete unlocking process to withdraw them.
|
|
6335
|
-
**/
|
|
6336
|
-
| 'TooManyUnlockingChunks'
|
|
6337
|
-
/**
|
|
6338
|
-
* Contract already claimed in this era and reward is distributed
|
|
6339
|
-
**/
|
|
6340
|
-
| 'AlreadyClaimedInThisEra'
|
|
6341
|
-
/**
|
|
6342
|
-
* Era parameter is out of bounds
|
|
6343
|
-
**/
|
|
6344
|
-
| 'EraOutOfBounds'
|
|
6345
|
-
/**
|
|
6346
|
-
* Too many active `EraStake` values for (staker, contract) pairing.
|
|
6347
|
-
* Claim existing rewards to fix this problem.
|
|
6348
|
-
**/
|
|
6349
|
-
| 'TooManyEraStakeValues'
|
|
6350
|
-
/**
|
|
6351
|
-
* Account is not actively staking
|
|
6352
|
-
**/
|
|
6353
|
-
| 'NotActiveStaker'
|
|
6354
|
-
/**
|
|
6355
|
-
* Transfering nomination to the same contract
|
|
6356
|
-
**/
|
|
6357
|
-
| 'NominationTransferToSameContract'
|
|
6358
|
-
/**
|
|
6359
|
-
* Decommission is in progress so this call is not allowed.
|
|
6360
|
-
**/
|
|
6361
|
-
| 'DecommissionInProgress'
|
|
6362
|
-
/**
|
|
6363
|
-
* Delegated claim call is not allowed if both the staker & caller are the same accounts.
|
|
6364
|
-
**/
|
|
6365
|
-
| 'ClaimForCallerAccount';
|
|
5974
|
+
| { tag: 'NotInProgress' }
|
|
5975
|
+
| { tag: 'SingularStakingInfo'; value: Bytes }
|
|
5976
|
+
| { tag: 'Finished' };
|
|
6366
5977
|
|
|
6367
5978
|
export type SpRuntimeMultiSignature =
|
|
6368
5979
|
| { tag: 'Ed25519'; value: SpCoreEd25519Signature }
|
|
@@ -6546,5 +6157,4 @@ export type AstarRuntimeRuntimeError =
|
|
|
6546
6157
|
| { tag: 'DynamicEvmBaseFee'; value: PalletDynamicEvmBaseFeeError }
|
|
6547
6158
|
| { tag: 'Contracts'; value: PalletContractsError }
|
|
6548
6159
|
| { tag: 'Sudo'; value: PalletSudoError }
|
|
6549
|
-
| { tag: 'StaticPriceProvider'; value: PalletStaticPriceProviderError }
|
|
6550
|
-
| { tag: 'DappsStaking'; value: PalletDappsStakingPalletError };
|
|
6160
|
+
| { tag: 'StaticPriceProvider'; value: PalletStaticPriceProviderError };
|
package/moonbeam/rpc.d.ts
CHANGED
|
@@ -307,24 +307,6 @@ export interface RpcCalls extends GenericRpcCalls {
|
|
|
307
307
|
|
|
308
308
|
[method: string]: GenericRpcCall;
|
|
309
309
|
};
|
|
310
|
-
debug: {
|
|
311
|
-
/**
|
|
312
|
-
* @rpcname: debug_traceBlockByHash
|
|
313
|
-
**/
|
|
314
|
-
traceBlockByHash: GenericRpcCall;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @rpcname: debug_traceBlockByNumber
|
|
318
|
-
**/
|
|
319
|
-
traceBlockByNumber: GenericRpcCall;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* @rpcname: debug_traceTransaction
|
|
323
|
-
**/
|
|
324
|
-
traceTransaction: GenericRpcCall;
|
|
325
|
-
|
|
326
|
-
[method: string]: GenericRpcCall;
|
|
327
|
-
};
|
|
328
310
|
eth: {
|
|
329
311
|
/**
|
|
330
312
|
* @rpcname: eth_accounts
|
|
@@ -960,14 +942,6 @@ export interface RpcCalls extends GenericRpcCalls {
|
|
|
960
942
|
|
|
961
943
|
[method: string]: GenericRpcCall;
|
|
962
944
|
};
|
|
963
|
-
trace: {
|
|
964
|
-
/**
|
|
965
|
-
* @rpcname: trace_filter
|
|
966
|
-
**/
|
|
967
|
-
filter: GenericRpcCall;
|
|
968
|
-
|
|
969
|
-
[method: string]: GenericRpcCall;
|
|
970
|
-
};
|
|
971
945
|
transaction: {
|
|
972
946
|
/**
|
|
973
947
|
* @rpcname: transaction_unstable_submitAndWatch
|
|
@@ -981,24 +955,6 @@ export interface RpcCalls extends GenericRpcCalls {
|
|
|
981
955
|
|
|
982
956
|
[method: string]: GenericRpcCall;
|
|
983
957
|
};
|
|
984
|
-
txpool: {
|
|
985
|
-
/**
|
|
986
|
-
* @rpcname: txpool_content
|
|
987
|
-
**/
|
|
988
|
-
content: GenericRpcCall;
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* @rpcname: txpool_inspect
|
|
992
|
-
**/
|
|
993
|
-
inspect: GenericRpcCall;
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* @rpcname: txpool_status
|
|
997
|
-
**/
|
|
998
|
-
status: GenericRpcCall;
|
|
999
|
-
|
|
1000
|
-
[method: string]: GenericRpcCall;
|
|
1001
|
-
};
|
|
1002
958
|
web3: {
|
|
1003
959
|
/**
|
|
1004
960
|
* @rpcname: web3_clientVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.39",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "dist"
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "0fdae485f5417959c281a7a0195d169918d3a33b",
|
|
24
24
|
"module": "./index.js",
|
|
25
25
|
"types": "./index.d.ts"
|
|
26
26
|
}
|