@dedot/chaintypes 0.241.0 → 0.243.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.
- package/basilisk/consts.d.ts +25 -82
- package/basilisk/errors.d.ts +42 -130
- package/basilisk/events.d.ts +149 -148
- package/basilisk/index.d.ts +1 -1
- package/basilisk/query.d.ts +32 -125
- package/basilisk/tx.d.ts +115 -579
- package/basilisk/types.d.ts +8389 -8922
- package/basilisk/view-functions.d.ts +32 -1
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +0 -5
- package/paseo-hydration/errors.d.ts +5 -0
- package/paseo-hydration/events.d.ts +11 -1
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +34 -3
- package/paseo-hydration/tx.d.ts +32 -5
- package/paseo-hydration/types.d.ts +45 -7
package/basilisk/tx.d.ts
CHANGED
|
@@ -27,10 +27,6 @@ import type {
|
|
|
27
27
|
PalletBalancesAdjustmentDirection,
|
|
28
28
|
BasiliskRuntimeOriginCaller,
|
|
29
29
|
SpWeightsWeightV2Weight,
|
|
30
|
-
FrameSupportPreimagesBounded,
|
|
31
|
-
PalletDemocracyVoteAccountVote,
|
|
32
|
-
PalletDemocracyConviction,
|
|
33
|
-
PalletDemocracyMetadataOwner,
|
|
34
30
|
OrmlVestingVestingSchedule,
|
|
35
31
|
BasiliskRuntimeSystemProxyType,
|
|
36
32
|
BasiliskRuntimeOpaqueSessionKeys,
|
|
@@ -43,6 +39,7 @@ import type {
|
|
|
43
39
|
PalletStateTrieMigrationProgress,
|
|
44
40
|
PalletConvictionVotingVoteAccountVote,
|
|
45
41
|
PalletConvictionVotingConviction,
|
|
42
|
+
FrameSupportPreimagesBounded,
|
|
46
43
|
FrameSupportScheduleDispatchTime,
|
|
47
44
|
CumulusPrimitivesParachainInherentParachainInherentData,
|
|
48
45
|
XcmVersionedLocation,
|
|
@@ -62,6 +59,8 @@ import type {
|
|
|
62
59
|
BasiliskTraitsRouterAssetPair,
|
|
63
60
|
PalletXykAssetPair,
|
|
64
61
|
PalletLiquidityMiningLoyaltyCurve,
|
|
62
|
+
PalletMigrationsMigrationCursor,
|
|
63
|
+
PalletMigrationsHistoricCleanupSelector,
|
|
65
64
|
XcmVersionedAsset,
|
|
66
65
|
} from './types.js';
|
|
67
66
|
|
|
@@ -926,6 +925,8 @@ export interface ChainTx<
|
|
|
926
925
|
* Emits [`Event::Paid`] if successful.
|
|
927
926
|
*
|
|
928
927
|
* @param {number} index
|
|
928
|
+
*
|
|
929
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
929
930
|
**/
|
|
930
931
|
payout: GenericTxCall<
|
|
931
932
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -962,6 +963,8 @@ export interface ChainTx<
|
|
|
962
963
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
963
964
|
*
|
|
964
965
|
* @param {number} index
|
|
966
|
+
*
|
|
967
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
965
968
|
**/
|
|
966
969
|
checkStatus: GenericTxCall<
|
|
967
970
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -1276,579 +1279,6 @@ export interface ChainTx<
|
|
|
1276
1279
|
**/
|
|
1277
1280
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
1278
1281
|
};
|
|
1279
|
-
/**
|
|
1280
|
-
* Pallet `Democracy`'s transaction calls
|
|
1281
|
-
**/
|
|
1282
|
-
democracy: {
|
|
1283
|
-
/**
|
|
1284
|
-
* Propose a sensitive action to be taken.
|
|
1285
|
-
*
|
|
1286
|
-
* The dispatch origin of this call must be _Signed_ and the sender must
|
|
1287
|
-
* have funds to cover the deposit.
|
|
1288
|
-
*
|
|
1289
|
-
* - `proposal_hash`: The hash of the proposal preimage.
|
|
1290
|
-
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
|
1291
|
-
*
|
|
1292
|
-
* Emits `Proposed`.
|
|
1293
|
-
*
|
|
1294
|
-
* @param {FrameSupportPreimagesBounded} proposal
|
|
1295
|
-
* @param {bigint} value
|
|
1296
|
-
**/
|
|
1297
|
-
propose: GenericTxCall<
|
|
1298
|
-
(
|
|
1299
|
-
proposal: FrameSupportPreimagesBounded,
|
|
1300
|
-
value: bigint,
|
|
1301
|
-
) => ChainSubmittableExtrinsic<
|
|
1302
|
-
{
|
|
1303
|
-
pallet: 'Democracy';
|
|
1304
|
-
palletCall: {
|
|
1305
|
-
name: 'Propose';
|
|
1306
|
-
params: { proposal: FrameSupportPreimagesBounded; value: bigint };
|
|
1307
|
-
};
|
|
1308
|
-
},
|
|
1309
|
-
ChainKnownTypes
|
|
1310
|
-
>
|
|
1311
|
-
>;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Signals agreement with a particular proposal.
|
|
1315
|
-
*
|
|
1316
|
-
* The dispatch origin of this call must be _Signed_ and the sender
|
|
1317
|
-
* must have funds to cover the deposit, equal to the original deposit.
|
|
1318
|
-
*
|
|
1319
|
-
* - `proposal`: The index of the proposal to second.
|
|
1320
|
-
*
|
|
1321
|
-
* @param {number} proposal
|
|
1322
|
-
**/
|
|
1323
|
-
second: GenericTxCall<
|
|
1324
|
-
(proposal: number) => ChainSubmittableExtrinsic<
|
|
1325
|
-
{
|
|
1326
|
-
pallet: 'Democracy';
|
|
1327
|
-
palletCall: {
|
|
1328
|
-
name: 'Second';
|
|
1329
|
-
params: { proposal: number };
|
|
1330
|
-
};
|
|
1331
|
-
},
|
|
1332
|
-
ChainKnownTypes
|
|
1333
|
-
>
|
|
1334
|
-
>;
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1338
|
-
* otherwise it is a vote to keep the status quo.
|
|
1339
|
-
*
|
|
1340
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1341
|
-
*
|
|
1342
|
-
* - `ref_index`: The index of the referendum to vote for.
|
|
1343
|
-
* - `vote`: The vote configuration.
|
|
1344
|
-
*
|
|
1345
|
-
* @param {number} refIndex
|
|
1346
|
-
* @param {PalletDemocracyVoteAccountVote} vote
|
|
1347
|
-
**/
|
|
1348
|
-
vote: GenericTxCall<
|
|
1349
|
-
(
|
|
1350
|
-
refIndex: number,
|
|
1351
|
-
vote: PalletDemocracyVoteAccountVote,
|
|
1352
|
-
) => ChainSubmittableExtrinsic<
|
|
1353
|
-
{
|
|
1354
|
-
pallet: 'Democracy';
|
|
1355
|
-
palletCall: {
|
|
1356
|
-
name: 'Vote';
|
|
1357
|
-
params: { refIndex: number; vote: PalletDemocracyVoteAccountVote };
|
|
1358
|
-
};
|
|
1359
|
-
},
|
|
1360
|
-
ChainKnownTypes
|
|
1361
|
-
>
|
|
1362
|
-
>;
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
|
1366
|
-
* referendum.
|
|
1367
|
-
*
|
|
1368
|
-
* The dispatch origin of this call must be `CancellationOrigin`.
|
|
1369
|
-
*
|
|
1370
|
-
* -`ref_index`: The index of the referendum to cancel.
|
|
1371
|
-
*
|
|
1372
|
-
* Weight: `O(1)`.
|
|
1373
|
-
*
|
|
1374
|
-
* @param {number} refIndex
|
|
1375
|
-
**/
|
|
1376
|
-
emergencyCancel: GenericTxCall<
|
|
1377
|
-
(refIndex: number) => ChainSubmittableExtrinsic<
|
|
1378
|
-
{
|
|
1379
|
-
pallet: 'Democracy';
|
|
1380
|
-
palletCall: {
|
|
1381
|
-
name: 'EmergencyCancel';
|
|
1382
|
-
params: { refIndex: number };
|
|
1383
|
-
};
|
|
1384
|
-
},
|
|
1385
|
-
ChainKnownTypes
|
|
1386
|
-
>
|
|
1387
|
-
>;
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Schedule a referendum to be tabled once it is legal to schedule an external
|
|
1391
|
-
* referendum.
|
|
1392
|
-
*
|
|
1393
|
-
* The dispatch origin of this call must be `ExternalOrigin`.
|
|
1394
|
-
*
|
|
1395
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1396
|
-
*
|
|
1397
|
-
* @param {FrameSupportPreimagesBounded} proposal
|
|
1398
|
-
**/
|
|
1399
|
-
externalPropose: GenericTxCall<
|
|
1400
|
-
(proposal: FrameSupportPreimagesBounded) => ChainSubmittableExtrinsic<
|
|
1401
|
-
{
|
|
1402
|
-
pallet: 'Democracy';
|
|
1403
|
-
palletCall: {
|
|
1404
|
-
name: 'ExternalPropose';
|
|
1405
|
-
params: { proposal: FrameSupportPreimagesBounded };
|
|
1406
|
-
};
|
|
1407
|
-
},
|
|
1408
|
-
ChainKnownTypes
|
|
1409
|
-
>
|
|
1410
|
-
>;
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
|
1414
|
-
* an external referendum.
|
|
1415
|
-
*
|
|
1416
|
-
* The dispatch of this call must be `ExternalMajorityOrigin`.
|
|
1417
|
-
*
|
|
1418
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1419
|
-
*
|
|
1420
|
-
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1421
|
-
* pre-scheduled `external_propose` call.
|
|
1422
|
-
*
|
|
1423
|
-
* Weight: `O(1)`
|
|
1424
|
-
*
|
|
1425
|
-
* @param {FrameSupportPreimagesBounded} proposal
|
|
1426
|
-
**/
|
|
1427
|
-
externalProposeMajority: GenericTxCall<
|
|
1428
|
-
(proposal: FrameSupportPreimagesBounded) => ChainSubmittableExtrinsic<
|
|
1429
|
-
{
|
|
1430
|
-
pallet: 'Democracy';
|
|
1431
|
-
palletCall: {
|
|
1432
|
-
name: 'ExternalProposeMajority';
|
|
1433
|
-
params: { proposal: FrameSupportPreimagesBounded };
|
|
1434
|
-
};
|
|
1435
|
-
},
|
|
1436
|
-
ChainKnownTypes
|
|
1437
|
-
>
|
|
1438
|
-
>;
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
|
1442
|
-
* schedule an external referendum.
|
|
1443
|
-
*
|
|
1444
|
-
* The dispatch of this call must be `ExternalDefaultOrigin`.
|
|
1445
|
-
*
|
|
1446
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1447
|
-
*
|
|
1448
|
-
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1449
|
-
* pre-scheduled `external_propose` call.
|
|
1450
|
-
*
|
|
1451
|
-
* Weight: `O(1)`
|
|
1452
|
-
*
|
|
1453
|
-
* @param {FrameSupportPreimagesBounded} proposal
|
|
1454
|
-
**/
|
|
1455
|
-
externalProposeDefault: GenericTxCall<
|
|
1456
|
-
(proposal: FrameSupportPreimagesBounded) => ChainSubmittableExtrinsic<
|
|
1457
|
-
{
|
|
1458
|
-
pallet: 'Democracy';
|
|
1459
|
-
palletCall: {
|
|
1460
|
-
name: 'ExternalProposeDefault';
|
|
1461
|
-
params: { proposal: FrameSupportPreimagesBounded };
|
|
1462
|
-
};
|
|
1463
|
-
},
|
|
1464
|
-
ChainKnownTypes
|
|
1465
|
-
>
|
|
1466
|
-
>;
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
|
1470
|
-
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
|
1471
|
-
* but it is not a majority-carries referendum then it fails.
|
|
1472
|
-
*
|
|
1473
|
-
* The dispatch of this call must be `FastTrackOrigin`.
|
|
1474
|
-
*
|
|
1475
|
-
* - `proposal_hash`: The hash of the current external proposal.
|
|
1476
|
-
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
|
1477
|
-
* Must be always greater than zero.
|
|
1478
|
-
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
|
1479
|
-
* - `delay`: The number of block after voting has ended in approval and this should be
|
|
1480
|
-
* enacted. This doesn't have a minimum amount.
|
|
1481
|
-
*
|
|
1482
|
-
* Emits `Started`.
|
|
1483
|
-
*
|
|
1484
|
-
* Weight: `O(1)`
|
|
1485
|
-
*
|
|
1486
|
-
* @param {H256} proposalHash
|
|
1487
|
-
* @param {number} votingPeriod
|
|
1488
|
-
* @param {number} delay
|
|
1489
|
-
**/
|
|
1490
|
-
fastTrack: GenericTxCall<
|
|
1491
|
-
(
|
|
1492
|
-
proposalHash: H256,
|
|
1493
|
-
votingPeriod: number,
|
|
1494
|
-
delay: number,
|
|
1495
|
-
) => ChainSubmittableExtrinsic<
|
|
1496
|
-
{
|
|
1497
|
-
pallet: 'Democracy';
|
|
1498
|
-
palletCall: {
|
|
1499
|
-
name: 'FastTrack';
|
|
1500
|
-
params: { proposalHash: H256; votingPeriod: number; delay: number };
|
|
1501
|
-
};
|
|
1502
|
-
},
|
|
1503
|
-
ChainKnownTypes
|
|
1504
|
-
>
|
|
1505
|
-
>;
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* Veto and blacklist the external proposal hash.
|
|
1509
|
-
*
|
|
1510
|
-
* The dispatch origin of this call must be `VetoOrigin`.
|
|
1511
|
-
*
|
|
1512
|
-
* - `proposal_hash`: The preimage hash of the proposal to veto and blacklist.
|
|
1513
|
-
*
|
|
1514
|
-
* Emits `Vetoed`.
|
|
1515
|
-
*
|
|
1516
|
-
* Weight: `O(V + log(V))` where V is number of `existing vetoers`
|
|
1517
|
-
*
|
|
1518
|
-
* @param {H256} proposalHash
|
|
1519
|
-
**/
|
|
1520
|
-
vetoExternal: GenericTxCall<
|
|
1521
|
-
(proposalHash: H256) => ChainSubmittableExtrinsic<
|
|
1522
|
-
{
|
|
1523
|
-
pallet: 'Democracy';
|
|
1524
|
-
palletCall: {
|
|
1525
|
-
name: 'VetoExternal';
|
|
1526
|
-
params: { proposalHash: H256 };
|
|
1527
|
-
};
|
|
1528
|
-
},
|
|
1529
|
-
ChainKnownTypes
|
|
1530
|
-
>
|
|
1531
|
-
>;
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* Remove a referendum.
|
|
1535
|
-
*
|
|
1536
|
-
* The dispatch origin of this call must be _Root_.
|
|
1537
|
-
*
|
|
1538
|
-
* - `ref_index`: The index of the referendum to cancel.
|
|
1539
|
-
*
|
|
1540
|
-
* # Weight: `O(1)`.
|
|
1541
|
-
*
|
|
1542
|
-
* @param {number} refIndex
|
|
1543
|
-
**/
|
|
1544
|
-
cancelReferendum: GenericTxCall<
|
|
1545
|
-
(refIndex: number) => ChainSubmittableExtrinsic<
|
|
1546
|
-
{
|
|
1547
|
-
pallet: 'Democracy';
|
|
1548
|
-
palletCall: {
|
|
1549
|
-
name: 'CancelReferendum';
|
|
1550
|
-
params: { refIndex: number };
|
|
1551
|
-
};
|
|
1552
|
-
},
|
|
1553
|
-
ChainKnownTypes
|
|
1554
|
-
>
|
|
1555
|
-
>;
|
|
1556
|
-
|
|
1557
|
-
/**
|
|
1558
|
-
* Delegate the voting power (with some given conviction) of the sending account.
|
|
1559
|
-
*
|
|
1560
|
-
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
1561
|
-
* time appropriate for the conviction's lock period.
|
|
1562
|
-
*
|
|
1563
|
-
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
1564
|
-
* - be delegating already; or
|
|
1565
|
-
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
1566
|
-
* through `reap_vote` or `unvote`).
|
|
1567
|
-
*
|
|
1568
|
-
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
1569
|
-
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
1570
|
-
* account is undelegated, the funds will be locked for the corresponding period.
|
|
1571
|
-
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
1572
|
-
* be more than the account's current balance.
|
|
1573
|
-
*
|
|
1574
|
-
* Emits `Delegated`.
|
|
1575
|
-
*
|
|
1576
|
-
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1577
|
-
* voted on. Weight is charged as if maximum votes.
|
|
1578
|
-
*
|
|
1579
|
-
* @param {AccountId32Like} to
|
|
1580
|
-
* @param {PalletDemocracyConviction} conviction
|
|
1581
|
-
* @param {bigint} balance
|
|
1582
|
-
**/
|
|
1583
|
-
delegate: GenericTxCall<
|
|
1584
|
-
(
|
|
1585
|
-
to: AccountId32Like,
|
|
1586
|
-
conviction: PalletDemocracyConviction,
|
|
1587
|
-
balance: bigint,
|
|
1588
|
-
) => ChainSubmittableExtrinsic<
|
|
1589
|
-
{
|
|
1590
|
-
pallet: 'Democracy';
|
|
1591
|
-
palletCall: {
|
|
1592
|
-
name: 'Delegate';
|
|
1593
|
-
params: { to: AccountId32Like; conviction: PalletDemocracyConviction; balance: bigint };
|
|
1594
|
-
};
|
|
1595
|
-
},
|
|
1596
|
-
ChainKnownTypes
|
|
1597
|
-
>
|
|
1598
|
-
>;
|
|
1599
|
-
|
|
1600
|
-
/**
|
|
1601
|
-
* Undelegate the voting power of the sending account.
|
|
1602
|
-
*
|
|
1603
|
-
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1604
|
-
* of the conviction with which the delegation was issued.
|
|
1605
|
-
*
|
|
1606
|
-
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1607
|
-
* currently delegating.
|
|
1608
|
-
*
|
|
1609
|
-
* Emits `Undelegated`.
|
|
1610
|
-
*
|
|
1611
|
-
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1612
|
-
* voted on. Weight is charged as if maximum votes.
|
|
1613
|
-
*
|
|
1614
|
-
**/
|
|
1615
|
-
undelegate: GenericTxCall<
|
|
1616
|
-
() => ChainSubmittableExtrinsic<
|
|
1617
|
-
{
|
|
1618
|
-
pallet: 'Democracy';
|
|
1619
|
-
palletCall: {
|
|
1620
|
-
name: 'Undelegate';
|
|
1621
|
-
};
|
|
1622
|
-
},
|
|
1623
|
-
ChainKnownTypes
|
|
1624
|
-
>
|
|
1625
|
-
>;
|
|
1626
|
-
|
|
1627
|
-
/**
|
|
1628
|
-
* Clears all public proposals.
|
|
1629
|
-
*
|
|
1630
|
-
* The dispatch origin of this call must be _Root_.
|
|
1631
|
-
*
|
|
1632
|
-
* Weight: `O(1)`.
|
|
1633
|
-
*
|
|
1634
|
-
**/
|
|
1635
|
-
clearPublicProposals: GenericTxCall<
|
|
1636
|
-
() => ChainSubmittableExtrinsic<
|
|
1637
|
-
{
|
|
1638
|
-
pallet: 'Democracy';
|
|
1639
|
-
palletCall: {
|
|
1640
|
-
name: 'ClearPublicProposals';
|
|
1641
|
-
};
|
|
1642
|
-
},
|
|
1643
|
-
ChainKnownTypes
|
|
1644
|
-
>
|
|
1645
|
-
>;
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* Unlock tokens that have an expired lock.
|
|
1649
|
-
*
|
|
1650
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1651
|
-
*
|
|
1652
|
-
* - `target`: The account to remove the lock on.
|
|
1653
|
-
*
|
|
1654
|
-
* Weight: `O(R)` with R number of vote of target.
|
|
1655
|
-
*
|
|
1656
|
-
* @param {AccountId32Like} target
|
|
1657
|
-
**/
|
|
1658
|
-
unlock: GenericTxCall<
|
|
1659
|
-
(target: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
1660
|
-
{
|
|
1661
|
-
pallet: 'Democracy';
|
|
1662
|
-
palletCall: {
|
|
1663
|
-
name: 'Unlock';
|
|
1664
|
-
params: { target: AccountId32Like };
|
|
1665
|
-
};
|
|
1666
|
-
},
|
|
1667
|
-
ChainKnownTypes
|
|
1668
|
-
>
|
|
1669
|
-
>;
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* Remove a vote for a referendum.
|
|
1673
|
-
*
|
|
1674
|
-
* If:
|
|
1675
|
-
* - the referendum was cancelled, or
|
|
1676
|
-
* - the referendum is ongoing, or
|
|
1677
|
-
* - the referendum has ended such that
|
|
1678
|
-
* - the vote of the account was in opposition to the result; or
|
|
1679
|
-
* - there was no conviction to the account's vote; or
|
|
1680
|
-
* - the account made a split vote
|
|
1681
|
-
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
1682
|
-
* funds being available.
|
|
1683
|
-
*
|
|
1684
|
-
* If, however, the referendum has ended and:
|
|
1685
|
-
* - it finished corresponding to the vote of the account, and
|
|
1686
|
-
* - the account made a standard vote with conviction, and
|
|
1687
|
-
* - the lock period of the conviction is not over
|
|
1688
|
-
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
1689
|
-
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
1690
|
-
* of both the amount locked and the time is it locked for).
|
|
1691
|
-
*
|
|
1692
|
-
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
1693
|
-
* registered for referendum `index`.
|
|
1694
|
-
*
|
|
1695
|
-
* - `index`: The index of referendum of the vote to be removed.
|
|
1696
|
-
*
|
|
1697
|
-
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1698
|
-
* Weight is calculated for the maximum number of vote.
|
|
1699
|
-
*
|
|
1700
|
-
* @param {number} index
|
|
1701
|
-
**/
|
|
1702
|
-
removeVote: GenericTxCall<
|
|
1703
|
-
(index: number) => ChainSubmittableExtrinsic<
|
|
1704
|
-
{
|
|
1705
|
-
pallet: 'Democracy';
|
|
1706
|
-
palletCall: {
|
|
1707
|
-
name: 'RemoveVote';
|
|
1708
|
-
params: { index: number };
|
|
1709
|
-
};
|
|
1710
|
-
},
|
|
1711
|
-
ChainKnownTypes
|
|
1712
|
-
>
|
|
1713
|
-
>;
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Remove a vote for a referendum.
|
|
1717
|
-
*
|
|
1718
|
-
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
1719
|
-
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
1720
|
-
* either because the referendum was cancelled, because the voter lost the referendum or
|
|
1721
|
-
* because the conviction period is over.
|
|
1722
|
-
*
|
|
1723
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1724
|
-
*
|
|
1725
|
-
* - `target`: The account of the vote to be removed; this account must have voted for
|
|
1726
|
-
* referendum `index`.
|
|
1727
|
-
* - `index`: The index of referendum of the vote to be removed.
|
|
1728
|
-
*
|
|
1729
|
-
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1730
|
-
* Weight is calculated for the maximum number of vote.
|
|
1731
|
-
*
|
|
1732
|
-
* @param {AccountId32Like} target
|
|
1733
|
-
* @param {number} index
|
|
1734
|
-
**/
|
|
1735
|
-
removeOtherVote: GenericTxCall<
|
|
1736
|
-
(
|
|
1737
|
-
target: AccountId32Like,
|
|
1738
|
-
index: number,
|
|
1739
|
-
) => ChainSubmittableExtrinsic<
|
|
1740
|
-
{
|
|
1741
|
-
pallet: 'Democracy';
|
|
1742
|
-
palletCall: {
|
|
1743
|
-
name: 'RemoveOtherVote';
|
|
1744
|
-
params: { target: AccountId32Like; index: number };
|
|
1745
|
-
};
|
|
1746
|
-
},
|
|
1747
|
-
ChainKnownTypes
|
|
1748
|
-
>
|
|
1749
|
-
>;
|
|
1750
|
-
|
|
1751
|
-
/**
|
|
1752
|
-
* Permanently place a proposal into the blacklist. This prevents it from ever being
|
|
1753
|
-
* proposed again.
|
|
1754
|
-
*
|
|
1755
|
-
* If called on a queued public or external proposal, then this will result in it being
|
|
1756
|
-
* removed. If the `ref_index` supplied is an active referendum with the proposal hash,
|
|
1757
|
-
* then it will be cancelled.
|
|
1758
|
-
*
|
|
1759
|
-
* The dispatch origin of this call must be `BlacklistOrigin`.
|
|
1760
|
-
*
|
|
1761
|
-
* - `proposal_hash`: The proposal hash to blacklist permanently.
|
|
1762
|
-
* - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be
|
|
1763
|
-
* cancelled.
|
|
1764
|
-
*
|
|
1765
|
-
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
1766
|
-
* reasonable value).
|
|
1767
|
-
*
|
|
1768
|
-
* @param {H256} proposalHash
|
|
1769
|
-
* @param {number | undefined} maybeRefIndex
|
|
1770
|
-
**/
|
|
1771
|
-
blacklist: GenericTxCall<
|
|
1772
|
-
(
|
|
1773
|
-
proposalHash: H256,
|
|
1774
|
-
maybeRefIndex: number | undefined,
|
|
1775
|
-
) => ChainSubmittableExtrinsic<
|
|
1776
|
-
{
|
|
1777
|
-
pallet: 'Democracy';
|
|
1778
|
-
palletCall: {
|
|
1779
|
-
name: 'Blacklist';
|
|
1780
|
-
params: { proposalHash: H256; maybeRefIndex: number | undefined };
|
|
1781
|
-
};
|
|
1782
|
-
},
|
|
1783
|
-
ChainKnownTypes
|
|
1784
|
-
>
|
|
1785
|
-
>;
|
|
1786
|
-
|
|
1787
|
-
/**
|
|
1788
|
-
* Remove a proposal.
|
|
1789
|
-
*
|
|
1790
|
-
* The dispatch origin of this call must be `CancelProposalOrigin`.
|
|
1791
|
-
*
|
|
1792
|
-
* - `prop_index`: The index of the proposal to cancel.
|
|
1793
|
-
*
|
|
1794
|
-
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
|
1795
|
-
*
|
|
1796
|
-
* @param {number} propIndex
|
|
1797
|
-
**/
|
|
1798
|
-
cancelProposal: GenericTxCall<
|
|
1799
|
-
(propIndex: number) => ChainSubmittableExtrinsic<
|
|
1800
|
-
{
|
|
1801
|
-
pallet: 'Democracy';
|
|
1802
|
-
palletCall: {
|
|
1803
|
-
name: 'CancelProposal';
|
|
1804
|
-
params: { propIndex: number };
|
|
1805
|
-
};
|
|
1806
|
-
},
|
|
1807
|
-
ChainKnownTypes
|
|
1808
|
-
>
|
|
1809
|
-
>;
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* Set or clear a metadata of a proposal or a referendum.
|
|
1813
|
-
*
|
|
1814
|
-
* Parameters:
|
|
1815
|
-
* - `origin`: Must correspond to the `MetadataOwner`.
|
|
1816
|
-
* - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
|
|
1817
|
-
* threshold.
|
|
1818
|
-
* - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
|
|
1819
|
-
* threshold.
|
|
1820
|
-
* - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
|
|
1821
|
-
* threshold.
|
|
1822
|
-
* - `Signed` by a creator for a public proposal.
|
|
1823
|
-
* - `Signed` to clear a metadata for a finished referendum.
|
|
1824
|
-
* - `Root` to set a metadata for an ongoing referendum.
|
|
1825
|
-
* - `owner`: an identifier of a metadata owner.
|
|
1826
|
-
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
1827
|
-
*
|
|
1828
|
-
* @param {PalletDemocracyMetadataOwner} owner
|
|
1829
|
-
* @param {H256 | undefined} maybeHash
|
|
1830
|
-
**/
|
|
1831
|
-
setMetadata: GenericTxCall<
|
|
1832
|
-
(
|
|
1833
|
-
owner: PalletDemocracyMetadataOwner,
|
|
1834
|
-
maybeHash: H256 | undefined,
|
|
1835
|
-
) => ChainSubmittableExtrinsic<
|
|
1836
|
-
{
|
|
1837
|
-
pallet: 'Democracy';
|
|
1838
|
-
palletCall: {
|
|
1839
|
-
name: 'SetMetadata';
|
|
1840
|
-
params: { owner: PalletDemocracyMetadataOwner; maybeHash: H256 | undefined };
|
|
1841
|
-
};
|
|
1842
|
-
},
|
|
1843
|
-
ChainKnownTypes
|
|
1844
|
-
>
|
|
1845
|
-
>;
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Generic pallet tx call
|
|
1849
|
-
**/
|
|
1850
|
-
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
1851
|
-
};
|
|
1852
1282
|
/**
|
|
1853
1283
|
* Pallet `TechnicalCommittee`'s transaction calls
|
|
1854
1284
|
**/
|
|
@@ -2392,7 +1822,7 @@ export interface ChainTx<
|
|
|
2392
1822
|
* `pure` with corresponding parameters.
|
|
2393
1823
|
*
|
|
2394
1824
|
* - `spawner`: The account that originally called `pure` to create this account.
|
|
2395
|
-
* - `index`: The disambiguation index originally passed to `
|
|
1825
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
2396
1826
|
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
2397
1827
|
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
2398
1828
|
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
@@ -6021,6 +5451,8 @@ export interface ChainTx<
|
|
|
6021
5451
|
* @param {XcmVersionedLocation} beneficiary
|
|
6022
5452
|
* @param {XcmVersionedAssets} assets
|
|
6023
5453
|
* @param {number} feeAssetItem
|
|
5454
|
+
*
|
|
5455
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
6024
5456
|
**/
|
|
6025
5457
|
teleportAssets: GenericTxCall<
|
|
6026
5458
|
(
|
|
@@ -6081,6 +5513,8 @@ export interface ChainTx<
|
|
|
6081
5513
|
* @param {XcmVersionedLocation} beneficiary
|
|
6082
5514
|
* @param {XcmVersionedAssets} assets
|
|
6083
5515
|
* @param {number} feeAssetItem
|
|
5516
|
+
*
|
|
5517
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
6084
5518
|
**/
|
|
6085
5519
|
reserveTransferAssets: GenericTxCall<
|
|
6086
5520
|
(
|
|
@@ -7031,7 +6465,8 @@ export interface ChainTx<
|
|
|
7031
6465
|
* IF account balance is < min. existential deposit of given currency, and account is allowed to
|
|
7032
6466
|
* be dusted, the remaining balance is transferred to treasury account.
|
|
7033
6467
|
*
|
|
7034
|
-
* In case of AToken, we perform an erc20 dust, which does a wihtdraw all
|
|
6468
|
+
* In case of AToken, we perform an erc20 dust, which does a wihtdraw all to the treasury account
|
|
6469
|
+
* Note that in this case, the treasury will just receive the underlying token, not the atoken variant.
|
|
7035
6470
|
*
|
|
7036
6471
|
* The transaction fee is returned back in case of successful dusting.
|
|
7037
6472
|
*
|
|
@@ -8547,6 +7982,107 @@ export interface ChainTx<
|
|
|
8547
7982
|
**/
|
|
8548
7983
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
8549
7984
|
};
|
|
7985
|
+
/**
|
|
7986
|
+
* Pallet `MultiBlockMigrations`'s transaction calls
|
|
7987
|
+
**/
|
|
7988
|
+
multiBlockMigrations: {
|
|
7989
|
+
/**
|
|
7990
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
7991
|
+
*
|
|
7992
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
7993
|
+
* restarting the migration process in this manner will not call the
|
|
7994
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
7995
|
+
*
|
|
7996
|
+
* @param {PalletMigrationsMigrationCursor | undefined} cursor
|
|
7997
|
+
**/
|
|
7998
|
+
forceSetCursor: GenericTxCall<
|
|
7999
|
+
(cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
|
|
8000
|
+
{
|
|
8001
|
+
pallet: 'MultiBlockMigrations';
|
|
8002
|
+
palletCall: {
|
|
8003
|
+
name: 'ForceSetCursor';
|
|
8004
|
+
params: { cursor: PalletMigrationsMigrationCursor | undefined };
|
|
8005
|
+
};
|
|
8006
|
+
},
|
|
8007
|
+
ChainKnownTypes
|
|
8008
|
+
>
|
|
8009
|
+
>;
|
|
8010
|
+
|
|
8011
|
+
/**
|
|
8012
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
8013
|
+
*
|
|
8014
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
8015
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
8016
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
8017
|
+
* indicates that the current block number plus one should be used.
|
|
8018
|
+
*
|
|
8019
|
+
* @param {number} index
|
|
8020
|
+
* @param {BytesLike | undefined} innerCursor
|
|
8021
|
+
* @param {number | undefined} startedAt
|
|
8022
|
+
**/
|
|
8023
|
+
forceSetActiveCursor: GenericTxCall<
|
|
8024
|
+
(
|
|
8025
|
+
index: number,
|
|
8026
|
+
innerCursor: BytesLike | undefined,
|
|
8027
|
+
startedAt: number | undefined,
|
|
8028
|
+
) => ChainSubmittableExtrinsic<
|
|
8029
|
+
{
|
|
8030
|
+
pallet: 'MultiBlockMigrations';
|
|
8031
|
+
palletCall: {
|
|
8032
|
+
name: 'ForceSetActiveCursor';
|
|
8033
|
+
params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
|
|
8034
|
+
};
|
|
8035
|
+
},
|
|
8036
|
+
ChainKnownTypes
|
|
8037
|
+
>
|
|
8038
|
+
>;
|
|
8039
|
+
|
|
8040
|
+
/**
|
|
8041
|
+
* Forces the onboarding of the migrations.
|
|
8042
|
+
*
|
|
8043
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
8044
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
8045
|
+
*
|
|
8046
|
+
**/
|
|
8047
|
+
forceOnboardMbms: GenericTxCall<
|
|
8048
|
+
() => ChainSubmittableExtrinsic<
|
|
8049
|
+
{
|
|
8050
|
+
pallet: 'MultiBlockMigrations';
|
|
8051
|
+
palletCall: {
|
|
8052
|
+
name: 'ForceOnboardMbms';
|
|
8053
|
+
};
|
|
8054
|
+
},
|
|
8055
|
+
ChainKnownTypes
|
|
8056
|
+
>
|
|
8057
|
+
>;
|
|
8058
|
+
|
|
8059
|
+
/**
|
|
8060
|
+
* Clears the `Historic` set.
|
|
8061
|
+
*
|
|
8062
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
8063
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
8064
|
+
* way that will result in a sensible weight.
|
|
8065
|
+
*
|
|
8066
|
+
* @param {PalletMigrationsHistoricCleanupSelector} selector
|
|
8067
|
+
**/
|
|
8068
|
+
clearHistoric: GenericTxCall<
|
|
8069
|
+
(selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
|
|
8070
|
+
{
|
|
8071
|
+
pallet: 'MultiBlockMigrations';
|
|
8072
|
+
palletCall: {
|
|
8073
|
+
name: 'ClearHistoric';
|
|
8074
|
+
params: { selector: PalletMigrationsHistoricCleanupSelector };
|
|
8075
|
+
};
|
|
8076
|
+
},
|
|
8077
|
+
ChainKnownTypes
|
|
8078
|
+
>
|
|
8079
|
+
>;
|
|
8080
|
+
|
|
8081
|
+
/**
|
|
8082
|
+
* Generic pallet tx call
|
|
8083
|
+
**/
|
|
8084
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
8085
|
+
};
|
|
8550
8086
|
/**
|
|
8551
8087
|
* Pallet `EmaOracle`'s transaction calls
|
|
8552
8088
|
**/
|