@dedot/chaintypes 0.42.0 → 0.44.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/astar/consts.d.ts +350 -2
- package/astar/errors.d.ts +661 -5
- package/astar/events.d.ts +949 -4
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +662 -42
- package/astar/runtime.d.ts +60 -8
- package/astar/tx.d.ts +3136 -88
- package/astar/types.d.ts +2650 -242
- package/package.json +3 -3
- package/paseo/index.d.ts +1 -1
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/runtime.d.ts +6 -14
- package/westend-asset-hub/tx.d.ts +1 -1
- package/westend-asset-hub/types.d.ts +34 -5
package/astar/types.d.ts
CHANGED
|
@@ -59,12 +59,13 @@ export type AstarRuntimeRuntimeEvent =
|
|
|
59
59
|
| { pallet: 'Identity'; palletEvent: PalletIdentityEvent }
|
|
60
60
|
| { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
|
|
61
61
|
| { pallet: 'Proxy'; palletEvent: PalletProxyEvent }
|
|
62
|
+
| { pallet: 'Scheduler'; palletEvent: PalletSchedulerEvent }
|
|
62
63
|
| { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent }
|
|
63
64
|
| { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
|
|
64
65
|
| { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
|
|
65
66
|
| { pallet: 'Vesting'; palletEvent: PalletVestingEvent }
|
|
66
67
|
| { pallet: 'Inflation'; palletEvent: PalletInflationEvent }
|
|
67
|
-
| { pallet: 'DappStaking'; palletEvent:
|
|
68
|
+
| { pallet: 'DappStaking'; palletEvent: PalletDappStakingEvent }
|
|
68
69
|
| { pallet: 'Assets'; palletEvent: PalletAssetsEvent }
|
|
69
70
|
| { pallet: 'PriceAggregator'; palletEvent: PalletPriceAggregatorEvent }
|
|
70
71
|
| { pallet: 'Oracle'; palletEvent: OrmlOracleModuleEvent }
|
|
@@ -81,7 +82,19 @@ export type AstarRuntimeRuntimeEvent =
|
|
|
81
82
|
| { pallet: 'Ethereum'; palletEvent: PalletEthereumEvent }
|
|
82
83
|
| { pallet: 'DynamicEvmBaseFee'; palletEvent: PalletDynamicEvmBaseFeeEvent }
|
|
83
84
|
| { pallet: 'Contracts'; palletEvent: PalletContractsEvent }
|
|
84
|
-
| { pallet: '
|
|
85
|
+
| { pallet: 'Preimage'; palletEvent: PalletPreimageEvent }
|
|
86
|
+
| { pallet: 'Sudo'; palletEvent: PalletSudoEvent }
|
|
87
|
+
| { pallet: 'CouncilMembership'; palletEvent: PalletMembershipEvent }
|
|
88
|
+
| { pallet: 'TechnicalCommitteeMembership'; palletEvent: PalletMembershipEvent }
|
|
89
|
+
| { pallet: 'CommunityCouncilMembership'; palletEvent: PalletMembershipEvent }
|
|
90
|
+
| { pallet: 'Council'; palletEvent: PalletCollectiveEvent }
|
|
91
|
+
| { pallet: 'TechnicalCommittee'; palletEvent: PalletCollectiveEvent }
|
|
92
|
+
| { pallet: 'CommunityCouncil'; palletEvent: PalletCollectiveEvent }
|
|
93
|
+
| { pallet: 'Democracy'; palletEvent: PalletDemocracyEvent }
|
|
94
|
+
| { pallet: 'Treasury'; palletEvent: PalletTreasuryEvent }
|
|
95
|
+
| { pallet: 'CommunityTreasury'; palletEvent: PalletTreasuryEvent }
|
|
96
|
+
| { pallet: 'CollectiveProxy'; palletEvent: PalletCollectiveProxyEvent }
|
|
97
|
+
| { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent };
|
|
85
98
|
|
|
86
99
|
/**
|
|
87
100
|
* Event for the System pallet.
|
|
@@ -316,7 +329,56 @@ export type AstarRuntimeProxyType =
|
|
|
316
329
|
| 'IdentityJudgement'
|
|
317
330
|
| 'CancelProxy'
|
|
318
331
|
| 'DappStaking'
|
|
319
|
-
| 'StakerRewardClaim'
|
|
332
|
+
| 'StakerRewardClaim'
|
|
333
|
+
| 'Governance';
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Events type.
|
|
337
|
+
**/
|
|
338
|
+
export type PalletSchedulerEvent =
|
|
339
|
+
/**
|
|
340
|
+
* Scheduled some task.
|
|
341
|
+
**/
|
|
342
|
+
| { name: 'Scheduled'; data: { when: number; index: number } }
|
|
343
|
+
/**
|
|
344
|
+
* Canceled some task.
|
|
345
|
+
**/
|
|
346
|
+
| { name: 'Canceled'; data: { when: number; index: number } }
|
|
347
|
+
/**
|
|
348
|
+
* Dispatched some task.
|
|
349
|
+
**/
|
|
350
|
+
| {
|
|
351
|
+
name: 'Dispatched';
|
|
352
|
+
data: { task: [number, number]; id?: FixedBytes<32> | undefined; result: Result<[], DispatchError> };
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Set a retry configuration for some task.
|
|
356
|
+
**/
|
|
357
|
+
| {
|
|
358
|
+
name: 'RetrySet';
|
|
359
|
+
data: { task: [number, number]; id?: FixedBytes<32> | undefined; period: number; retries: number };
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Cancel a retry configuration for some task.
|
|
363
|
+
**/
|
|
364
|
+
| { name: 'RetryCancelled'; data: { task: [number, number]; id?: FixedBytes<32> | undefined } }
|
|
365
|
+
/**
|
|
366
|
+
* The call for the provided hash was not found so the task has been aborted.
|
|
367
|
+
**/
|
|
368
|
+
| { name: 'CallUnavailable'; data: { task: [number, number]; id?: FixedBytes<32> | undefined } }
|
|
369
|
+
/**
|
|
370
|
+
* The given task was unable to be renewed since the agenda is full at that block.
|
|
371
|
+
**/
|
|
372
|
+
| { name: 'PeriodicFailed'; data: { task: [number, number]; id?: FixedBytes<32> | undefined } }
|
|
373
|
+
/**
|
|
374
|
+
* The given task was unable to be retried since the agenda is full at that block or there
|
|
375
|
+
* was not enough weight to reschedule it.
|
|
376
|
+
**/
|
|
377
|
+
| { name: 'RetryFailed'; data: { task: [number, number]; id?: FixedBytes<32> | undefined } }
|
|
378
|
+
/**
|
|
379
|
+
* The given task can never be executed since it is overweight.
|
|
380
|
+
**/
|
|
381
|
+
| { name: 'PermanentlyOverweight'; data: { task: [number, number]; id?: FixedBytes<32> | undefined } };
|
|
320
382
|
|
|
321
383
|
/**
|
|
322
384
|
* The `Event` enum of this pallet
|
|
@@ -512,7 +574,7 @@ export type PalletInflationInflationConfiguration = {
|
|
|
512
574
|
/**
|
|
513
575
|
* The `Event` enum of this pallet
|
|
514
576
|
**/
|
|
515
|
-
export type
|
|
577
|
+
export type PalletDappStakingEvent =
|
|
516
578
|
/**
|
|
517
579
|
* Maintenance mode has been either enabled or disabled.
|
|
518
580
|
**/
|
|
@@ -524,7 +586,7 @@ export type PalletDappStakingV3Event =
|
|
|
524
586
|
/**
|
|
525
587
|
* New subperiod has started.
|
|
526
588
|
**/
|
|
527
|
-
| { name: 'NewSubperiod'; data: { subperiod:
|
|
589
|
+
| { name: 'NewSubperiod'; data: { subperiod: PalletDappStakingSubperiod; number: number } }
|
|
528
590
|
/**
|
|
529
591
|
* A smart contract has been registered for dApp staking
|
|
530
592
|
**/
|
|
@@ -624,15 +686,15 @@ export type PalletDappStakingV3Event =
|
|
|
624
686
|
/**
|
|
625
687
|
* Privileged origin has forced a new era and possibly a subperiod to start from next block.
|
|
626
688
|
**/
|
|
627
|
-
| { name: 'Force'; data: { forcingType:
|
|
689
|
+
| { name: 'Force'; data: { forcingType: PalletDappStakingForcingType } };
|
|
628
690
|
|
|
629
|
-
export type
|
|
691
|
+
export type PalletDappStakingSubperiod = 'Voting' | 'BuildAndEarn';
|
|
630
692
|
|
|
631
693
|
export type AstarPrimitivesDappStakingSmartContract =
|
|
632
694
|
| { type: 'Evm'; value: H160 }
|
|
633
695
|
| { type: 'Wasm'; value: AccountId32 };
|
|
634
696
|
|
|
635
|
-
export type
|
|
697
|
+
export type PalletDappStakingForcingType = 'Era' | 'Subperiod';
|
|
636
698
|
|
|
637
699
|
/**
|
|
638
700
|
* The `Event` enum of this pallet
|
|
@@ -737,7 +799,15 @@ export type PalletAssetsEvent =
|
|
|
737
799
|
/**
|
|
738
800
|
* Some account `who` was blocked.
|
|
739
801
|
**/
|
|
740
|
-
| { name: 'Blocked'; data: { assetId: bigint; who: AccountId32 } }
|
|
802
|
+
| { name: 'Blocked'; data: { assetId: bigint; who: AccountId32 } }
|
|
803
|
+
/**
|
|
804
|
+
* Some assets were deposited (e.g. for transaction fees).
|
|
805
|
+
**/
|
|
806
|
+
| { name: 'Deposited'; data: { assetId: bigint; who: AccountId32; amount: bigint } }
|
|
807
|
+
/**
|
|
808
|
+
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
|
809
|
+
**/
|
|
810
|
+
| { name: 'Withdrawn'; data: { assetId: bigint; who: AccountId32; amount: bigint } };
|
|
741
811
|
|
|
742
812
|
/**
|
|
743
813
|
* The `Event` enum of this pallet
|
|
@@ -1140,7 +1210,7 @@ export type StagingXcmV4Instruction =
|
|
|
1140
1210
|
}
|
|
1141
1211
|
| {
|
|
1142
1212
|
type: 'Transact';
|
|
1143
|
-
value: { originKind:
|
|
1213
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
1144
1214
|
}
|
|
1145
1215
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
1146
1216
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -1248,7 +1318,7 @@ export type XcmV3MaybeErrorCode =
|
|
|
1248
1318
|
| { type: 'Error'; value: Bytes }
|
|
1249
1319
|
| { type: 'TruncatedError'; value: Bytes };
|
|
1250
1320
|
|
|
1251
|
-
export type
|
|
1321
|
+
export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
1252
1322
|
|
|
1253
1323
|
export type XcmDoubleEncoded = { encoded: Bytes };
|
|
1254
1324
|
|
|
@@ -1621,7 +1691,8 @@ export type FrameSupportMessagesProcessMessageError =
|
|
|
1621
1691
|
| { type: 'Corrupt' }
|
|
1622
1692
|
| { type: 'Unsupported' }
|
|
1623
1693
|
| { type: 'Overweight'; value: SpWeightsWeightV2Weight }
|
|
1624
|
-
| { type: 'Yield' }
|
|
1694
|
+
| { type: 'Yield' }
|
|
1695
|
+
| { type: 'StackLimitReached' };
|
|
1625
1696
|
|
|
1626
1697
|
/**
|
|
1627
1698
|
* The `Event` enum of this pallet
|
|
@@ -1845,6 +1916,23 @@ export type PalletContractsOrigin = { type: 'Root' } | { type: 'Signed'; value:
|
|
|
1845
1916
|
|
|
1846
1917
|
export type AstarRuntimeRuntime = {};
|
|
1847
1918
|
|
|
1919
|
+
/**
|
|
1920
|
+
* The `Event` enum of this pallet
|
|
1921
|
+
**/
|
|
1922
|
+
export type PalletPreimageEvent =
|
|
1923
|
+
/**
|
|
1924
|
+
* A preimage has been noted.
|
|
1925
|
+
**/
|
|
1926
|
+
| { name: 'Noted'; data: { hash: H256 } }
|
|
1927
|
+
/**
|
|
1928
|
+
* A preimage has been requested.
|
|
1929
|
+
**/
|
|
1930
|
+
| { name: 'Requested'; data: { hash: H256 } }
|
|
1931
|
+
/**
|
|
1932
|
+
* A preimage has ben cleared.
|
|
1933
|
+
**/
|
|
1934
|
+
| { name: 'Cleared'; data: { hash: H256 } };
|
|
1935
|
+
|
|
1848
1936
|
/**
|
|
1849
1937
|
* The `Event` enum of this pallet
|
|
1850
1938
|
**/
|
|
@@ -1895,6 +1983,363 @@ export type PalletSudoEvent =
|
|
|
1895
1983
|
};
|
|
1896
1984
|
};
|
|
1897
1985
|
|
|
1986
|
+
/**
|
|
1987
|
+
* The `Event` enum of this pallet
|
|
1988
|
+
**/
|
|
1989
|
+
export type PalletCollectiveEvent =
|
|
1990
|
+
/**
|
|
1991
|
+
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
|
1992
|
+
* `MemberCount`).
|
|
1993
|
+
**/
|
|
1994
|
+
| { name: 'Proposed'; data: { account: AccountId32; proposalIndex: number; proposalHash: H256; threshold: number } }
|
|
1995
|
+
/**
|
|
1996
|
+
* A motion (given hash) has been voted on by given account, leaving
|
|
1997
|
+
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
|
1998
|
+
**/
|
|
1999
|
+
| { name: 'Voted'; data: { account: AccountId32; proposalHash: H256; voted: boolean; yes: number; no: number } }
|
|
2000
|
+
/**
|
|
2001
|
+
* A motion was approved by the required threshold.
|
|
2002
|
+
**/
|
|
2003
|
+
| { name: 'Approved'; data: { proposalHash: H256 } }
|
|
2004
|
+
/**
|
|
2005
|
+
* A motion was not approved by the required threshold.
|
|
2006
|
+
**/
|
|
2007
|
+
| { name: 'Disapproved'; data: { proposalHash: H256 } }
|
|
2008
|
+
/**
|
|
2009
|
+
* A motion was executed; result will be `Ok` if it returned without error.
|
|
2010
|
+
**/
|
|
2011
|
+
| { name: 'Executed'; data: { proposalHash: H256; result: Result<[], DispatchError> } }
|
|
2012
|
+
/**
|
|
2013
|
+
* A single member did some action; result will be `Ok` if it returned without error.
|
|
2014
|
+
**/
|
|
2015
|
+
| { name: 'MemberExecuted'; data: { proposalHash: H256; result: Result<[], DispatchError> } }
|
|
2016
|
+
/**
|
|
2017
|
+
* A proposal was closed because its threshold was reached or after its duration was up.
|
|
2018
|
+
**/
|
|
2019
|
+
| { name: 'Closed'; data: { proposalHash: H256; yes: number; no: number } };
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* The `Event` enum of this pallet
|
|
2023
|
+
**/
|
|
2024
|
+
export type PalletDemocracyEvent =
|
|
2025
|
+
/**
|
|
2026
|
+
* A motion has been proposed by a public account.
|
|
2027
|
+
**/
|
|
2028
|
+
| { name: 'Proposed'; data: { proposalIndex: number; deposit: bigint } }
|
|
2029
|
+
/**
|
|
2030
|
+
* A public proposal has been tabled for referendum vote.
|
|
2031
|
+
**/
|
|
2032
|
+
| { name: 'Tabled'; data: { proposalIndex: number; deposit: bigint } }
|
|
2033
|
+
/**
|
|
2034
|
+
* An external proposal has been tabled.
|
|
2035
|
+
**/
|
|
2036
|
+
| { name: 'ExternalTabled' }
|
|
2037
|
+
/**
|
|
2038
|
+
* A referendum has begun.
|
|
2039
|
+
**/
|
|
2040
|
+
| { name: 'Started'; data: { refIndex: number; threshold: PalletDemocracyVoteThreshold } }
|
|
2041
|
+
/**
|
|
2042
|
+
* A proposal has been approved by referendum.
|
|
2043
|
+
**/
|
|
2044
|
+
| { name: 'Passed'; data: { refIndex: number } }
|
|
2045
|
+
/**
|
|
2046
|
+
* A proposal has been rejected by referendum.
|
|
2047
|
+
**/
|
|
2048
|
+
| { name: 'NotPassed'; data: { refIndex: number } }
|
|
2049
|
+
/**
|
|
2050
|
+
* A referendum has been cancelled.
|
|
2051
|
+
**/
|
|
2052
|
+
| { name: 'Cancelled'; data: { refIndex: number } }
|
|
2053
|
+
/**
|
|
2054
|
+
* An account has delegated their vote to another account.
|
|
2055
|
+
**/
|
|
2056
|
+
| { name: 'Delegated'; data: { who: AccountId32; target: AccountId32 } }
|
|
2057
|
+
/**
|
|
2058
|
+
* An account has cancelled a previous delegation operation.
|
|
2059
|
+
**/
|
|
2060
|
+
| { name: 'Undelegated'; data: { account: AccountId32 } }
|
|
2061
|
+
/**
|
|
2062
|
+
* An external proposal has been vetoed.
|
|
2063
|
+
**/
|
|
2064
|
+
| { name: 'Vetoed'; data: { who: AccountId32; proposalHash: H256; until: number } }
|
|
2065
|
+
/**
|
|
2066
|
+
* A proposal_hash has been blacklisted permanently.
|
|
2067
|
+
**/
|
|
2068
|
+
| { name: 'Blacklisted'; data: { proposalHash: H256 } }
|
|
2069
|
+
/**
|
|
2070
|
+
* An account has voted in a referendum
|
|
2071
|
+
**/
|
|
2072
|
+
| { name: 'Voted'; data: { voter: AccountId32; refIndex: number; vote: PalletDemocracyVoteAccountVote } }
|
|
2073
|
+
/**
|
|
2074
|
+
* An account has seconded a proposal
|
|
2075
|
+
**/
|
|
2076
|
+
| { name: 'Seconded'; data: { seconder: AccountId32; propIndex: number } }
|
|
2077
|
+
/**
|
|
2078
|
+
* A proposal got canceled.
|
|
2079
|
+
**/
|
|
2080
|
+
| { name: 'ProposalCanceled'; data: { propIndex: number } }
|
|
2081
|
+
/**
|
|
2082
|
+
* Metadata for a proposal or a referendum has been set.
|
|
2083
|
+
**/
|
|
2084
|
+
| {
|
|
2085
|
+
name: 'MetadataSet';
|
|
2086
|
+
data: {
|
|
2087
|
+
/**
|
|
2088
|
+
* Metadata owner.
|
|
2089
|
+
**/
|
|
2090
|
+
owner: PalletDemocracyMetadataOwner;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Preimage hash.
|
|
2094
|
+
**/
|
|
2095
|
+
hash: H256;
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* Metadata for a proposal or a referendum has been cleared.
|
|
2100
|
+
**/
|
|
2101
|
+
| {
|
|
2102
|
+
name: 'MetadataCleared';
|
|
2103
|
+
data: {
|
|
2104
|
+
/**
|
|
2105
|
+
* Metadata owner.
|
|
2106
|
+
**/
|
|
2107
|
+
owner: PalletDemocracyMetadataOwner;
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Preimage hash.
|
|
2111
|
+
**/
|
|
2112
|
+
hash: H256;
|
|
2113
|
+
};
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* Metadata has been transferred to new owner.
|
|
2117
|
+
**/
|
|
2118
|
+
| {
|
|
2119
|
+
name: 'MetadataTransferred';
|
|
2120
|
+
data: {
|
|
2121
|
+
/**
|
|
2122
|
+
* Previous metadata owner.
|
|
2123
|
+
**/
|
|
2124
|
+
prevOwner: PalletDemocracyMetadataOwner;
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* New metadata owner.
|
|
2128
|
+
**/
|
|
2129
|
+
owner: PalletDemocracyMetadataOwner;
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* Preimage hash.
|
|
2133
|
+
**/
|
|
2134
|
+
hash: H256;
|
|
2135
|
+
};
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
export type PalletDemocracyVoteThreshold = 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority';
|
|
2139
|
+
|
|
2140
|
+
export type PalletDemocracyVoteAccountVote =
|
|
2141
|
+
| { type: 'Standard'; value: { vote: PalletDemocracyVote; balance: bigint } }
|
|
2142
|
+
| { type: 'Split'; value: { aye: bigint; nay: bigint } };
|
|
2143
|
+
|
|
2144
|
+
export type PalletDemocracyVote = number;
|
|
2145
|
+
|
|
2146
|
+
export type PalletDemocracyMetadataOwner =
|
|
2147
|
+
| { type: 'External' }
|
|
2148
|
+
| { type: 'Proposal'; value: number }
|
|
2149
|
+
| { type: 'Referendum'; value: number };
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* The `Event` enum of this pallet
|
|
2153
|
+
**/
|
|
2154
|
+
export type PalletTreasuryEvent =
|
|
2155
|
+
/**
|
|
2156
|
+
* New proposal.
|
|
2157
|
+
**/
|
|
2158
|
+
| { name: 'Proposed'; data: { proposalIndex: number } }
|
|
2159
|
+
/**
|
|
2160
|
+
* We have ended a spend period and will now allocate funds.
|
|
2161
|
+
**/
|
|
2162
|
+
| { name: 'Spending'; data: { budgetRemaining: bigint } }
|
|
2163
|
+
/**
|
|
2164
|
+
* Some funds have been allocated.
|
|
2165
|
+
**/
|
|
2166
|
+
| { name: 'Awarded'; data: { proposalIndex: number; award: bigint; account: AccountId32 } }
|
|
2167
|
+
/**
|
|
2168
|
+
* A proposal was rejected; funds were slashed.
|
|
2169
|
+
**/
|
|
2170
|
+
| { name: 'Rejected'; data: { proposalIndex: number; slashed: bigint } }
|
|
2171
|
+
/**
|
|
2172
|
+
* Some of our funds have been burnt.
|
|
2173
|
+
**/
|
|
2174
|
+
| { name: 'Burnt'; data: { burntFunds: bigint } }
|
|
2175
|
+
/**
|
|
2176
|
+
* Spending has finished; this is the amount that rolls over until next spend.
|
|
2177
|
+
**/
|
|
2178
|
+
| { name: 'Rollover'; data: { rolloverBalance: bigint } }
|
|
2179
|
+
/**
|
|
2180
|
+
* Some funds have been deposited.
|
|
2181
|
+
**/
|
|
2182
|
+
| { name: 'Deposit'; data: { value: bigint } }
|
|
2183
|
+
/**
|
|
2184
|
+
* A new spend proposal has been approved.
|
|
2185
|
+
**/
|
|
2186
|
+
| { name: 'SpendApproved'; data: { proposalIndex: number; amount: bigint; beneficiary: AccountId32 } }
|
|
2187
|
+
/**
|
|
2188
|
+
* The inactive funds of the pallet have been updated.
|
|
2189
|
+
**/
|
|
2190
|
+
| { name: 'UpdatedInactive'; data: { reactivated: bigint; deactivated: bigint } }
|
|
2191
|
+
/**
|
|
2192
|
+
* A new asset spend proposal has been approved.
|
|
2193
|
+
**/
|
|
2194
|
+
| {
|
|
2195
|
+
name: 'AssetSpendApproved';
|
|
2196
|
+
data: {
|
|
2197
|
+
index: number;
|
|
2198
|
+
assetKind: [];
|
|
2199
|
+
amount: bigint;
|
|
2200
|
+
beneficiary: AccountId32;
|
|
2201
|
+
validFrom: number;
|
|
2202
|
+
expireAt: number;
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
/**
|
|
2206
|
+
* An approved spend was voided.
|
|
2207
|
+
**/
|
|
2208
|
+
| { name: 'AssetSpendVoided'; data: { index: number } }
|
|
2209
|
+
/**
|
|
2210
|
+
* A payment happened.
|
|
2211
|
+
**/
|
|
2212
|
+
| { name: 'Paid'; data: { index: number; paymentId: [] } }
|
|
2213
|
+
/**
|
|
2214
|
+
* A payment failed and can be retried.
|
|
2215
|
+
**/
|
|
2216
|
+
| { name: 'PaymentFailed'; data: { index: number; paymentId: [] } }
|
|
2217
|
+
/**
|
|
2218
|
+
* A spend was processed and removed from the storage. It might have been successfully
|
|
2219
|
+
* paid or it may have expired.
|
|
2220
|
+
**/
|
|
2221
|
+
| { name: 'SpendProcessed'; data: { index: number } };
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* The `Event` enum of this pallet
|
|
2225
|
+
**/
|
|
2226
|
+
export type PalletCollectiveProxyEvent =
|
|
2227
|
+
/**
|
|
2228
|
+
* Community proxy call executed successfully.
|
|
2229
|
+
**/
|
|
2230
|
+
{ name: 'CollectiveProxyExecuted'; data: { result: Result<[], DispatchError> } };
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* The `Event` enum of this pallet
|
|
2234
|
+
**/
|
|
2235
|
+
export type PalletMigrationsEvent =
|
|
2236
|
+
/**
|
|
2237
|
+
* A Runtime upgrade started.
|
|
2238
|
+
*
|
|
2239
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
2240
|
+
**/
|
|
2241
|
+
| {
|
|
2242
|
+
name: 'UpgradeStarted';
|
|
2243
|
+
data: {
|
|
2244
|
+
/**
|
|
2245
|
+
* The number of migrations that this upgrade contains.
|
|
2246
|
+
*
|
|
2247
|
+
* This can be used to design a progress indicator in combination with counting the
|
|
2248
|
+
* `MigrationCompleted` and `MigrationSkipped` events.
|
|
2249
|
+
**/
|
|
2250
|
+
migrations: number;
|
|
2251
|
+
};
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* The current runtime upgrade completed.
|
|
2255
|
+
*
|
|
2256
|
+
* This implies that all of its migrations completed successfully as well.
|
|
2257
|
+
**/
|
|
2258
|
+
| { name: 'UpgradeCompleted' }
|
|
2259
|
+
/**
|
|
2260
|
+
* Runtime upgrade failed.
|
|
2261
|
+
*
|
|
2262
|
+
* This is very bad and will require governance intervention.
|
|
2263
|
+
**/
|
|
2264
|
+
| { name: 'UpgradeFailed' }
|
|
2265
|
+
/**
|
|
2266
|
+
* A migration was skipped since it was already executed in the past.
|
|
2267
|
+
**/
|
|
2268
|
+
| {
|
|
2269
|
+
name: 'MigrationSkipped';
|
|
2270
|
+
data: {
|
|
2271
|
+
/**
|
|
2272
|
+
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
2273
|
+
**/
|
|
2274
|
+
index: number;
|
|
2275
|
+
};
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* A migration progressed.
|
|
2279
|
+
**/
|
|
2280
|
+
| {
|
|
2281
|
+
name: 'MigrationAdvanced';
|
|
2282
|
+
data: {
|
|
2283
|
+
/**
|
|
2284
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
2285
|
+
**/
|
|
2286
|
+
index: number;
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* The number of blocks that this migration took so far.
|
|
2290
|
+
**/
|
|
2291
|
+
took: number;
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2295
|
+
* A Migration completed.
|
|
2296
|
+
**/
|
|
2297
|
+
| {
|
|
2298
|
+
name: 'MigrationCompleted';
|
|
2299
|
+
data: {
|
|
2300
|
+
/**
|
|
2301
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
2302
|
+
**/
|
|
2303
|
+
index: number;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* The number of blocks that this migration took so far.
|
|
2307
|
+
**/
|
|
2308
|
+
took: number;
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
/**
|
|
2312
|
+
* A Migration failed.
|
|
2313
|
+
*
|
|
2314
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
2315
|
+
**/
|
|
2316
|
+
| {
|
|
2317
|
+
name: 'MigrationFailed';
|
|
2318
|
+
data: {
|
|
2319
|
+
/**
|
|
2320
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
2321
|
+
**/
|
|
2322
|
+
index: number;
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* The number of blocks that this migration took so far.
|
|
2326
|
+
**/
|
|
2327
|
+
took: number;
|
|
2328
|
+
};
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* The set of historical migrations has been cleared.
|
|
2332
|
+
**/
|
|
2333
|
+
| {
|
|
2334
|
+
name: 'HistoricCleared';
|
|
2335
|
+
data: {
|
|
2336
|
+
/**
|
|
2337
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
2338
|
+
**/
|
|
2339
|
+
nextCursor?: Bytes | undefined;
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
|
|
1898
2343
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
1899
2344
|
|
|
1900
2345
|
export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean };
|
|
@@ -2304,12 +2749,13 @@ export type AstarRuntimeRuntimeCall =
|
|
|
2304
2749
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCall }
|
|
2305
2750
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCall }
|
|
2306
2751
|
| { pallet: 'Proxy'; palletCall: PalletProxyCall }
|
|
2752
|
+
| { pallet: 'Scheduler'; palletCall: PalletSchedulerCall }
|
|
2307
2753
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall }
|
|
2308
2754
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall }
|
|
2309
2755
|
| { pallet: 'Balances'; palletCall: PalletBalancesCall }
|
|
2310
2756
|
| { pallet: 'Vesting'; palletCall: PalletVestingCall }
|
|
2311
2757
|
| { pallet: 'Inflation'; palletCall: PalletInflationCall }
|
|
2312
|
-
| { pallet: 'DappStaking'; palletCall:
|
|
2758
|
+
| { pallet: 'DappStaking'; palletCall: PalletDappStakingCall }
|
|
2313
2759
|
| { pallet: 'Assets'; palletCall: PalletAssetsCall }
|
|
2314
2760
|
| { pallet: 'Oracle'; palletCall: OrmlOracleModuleCall }
|
|
2315
2761
|
| { pallet: 'OracleMembership'; palletCall: PalletMembershipCall }
|
|
@@ -2325,7 +2771,19 @@ export type AstarRuntimeRuntimeCall =
|
|
|
2325
2771
|
| { pallet: 'Ethereum'; palletCall: PalletEthereumCall }
|
|
2326
2772
|
| { pallet: 'DynamicEvmBaseFee'; palletCall: PalletDynamicEvmBaseFeeCall }
|
|
2327
2773
|
| { pallet: 'Contracts'; palletCall: PalletContractsCall }
|
|
2328
|
-
| { pallet: '
|
|
2774
|
+
| { pallet: 'Preimage'; palletCall: PalletPreimageCall }
|
|
2775
|
+
| { pallet: 'Sudo'; palletCall: PalletSudoCall }
|
|
2776
|
+
| { pallet: 'CouncilMembership'; palletCall: PalletMembershipCall }
|
|
2777
|
+
| { pallet: 'TechnicalCommitteeMembership'; palletCall: PalletMembershipCall }
|
|
2778
|
+
| { pallet: 'CommunityCouncilMembership'; palletCall: PalletMembershipCall }
|
|
2779
|
+
| { pallet: 'Council'; palletCall: PalletCollectiveCall }
|
|
2780
|
+
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCall }
|
|
2781
|
+
| { pallet: 'CommunityCouncil'; palletCall: PalletCollectiveCall }
|
|
2782
|
+
| { pallet: 'Democracy'; palletCall: PalletDemocracyCall }
|
|
2783
|
+
| { pallet: 'Treasury'; palletCall: PalletTreasuryCall }
|
|
2784
|
+
| { pallet: 'CommunityTreasury'; palletCall: PalletTreasuryCall }
|
|
2785
|
+
| { pallet: 'CollectiveProxy'; palletCall: PalletCollectiveProxyCall }
|
|
2786
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall };
|
|
2329
2787
|
|
|
2330
2788
|
export type AstarRuntimeRuntimeCallLike =
|
|
2331
2789
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -2334,12 +2792,13 @@ export type AstarRuntimeRuntimeCallLike =
|
|
|
2334
2792
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike }
|
|
2335
2793
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
|
|
2336
2794
|
| { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
|
|
2795
|
+
| { pallet: 'Scheduler'; palletCall: PalletSchedulerCallLike }
|
|
2337
2796
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike }
|
|
2338
2797
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
|
|
2339
2798
|
| { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
|
|
2340
2799
|
| { pallet: 'Vesting'; palletCall: PalletVestingCallLike }
|
|
2341
2800
|
| { pallet: 'Inflation'; palletCall: PalletInflationCallLike }
|
|
2342
|
-
| { pallet: 'DappStaking'; palletCall:
|
|
2801
|
+
| { pallet: 'DappStaking'; palletCall: PalletDappStakingCallLike }
|
|
2343
2802
|
| { pallet: 'Assets'; palletCall: PalletAssetsCallLike }
|
|
2344
2803
|
| { pallet: 'Oracle'; palletCall: OrmlOracleModuleCallLike }
|
|
2345
2804
|
| { pallet: 'OracleMembership'; palletCall: PalletMembershipCallLike }
|
|
@@ -2355,7 +2814,19 @@ export type AstarRuntimeRuntimeCallLike =
|
|
|
2355
2814
|
| { pallet: 'Ethereum'; palletCall: PalletEthereumCallLike }
|
|
2356
2815
|
| { pallet: 'DynamicEvmBaseFee'; palletCall: PalletDynamicEvmBaseFeeCallLike }
|
|
2357
2816
|
| { pallet: 'Contracts'; palletCall: PalletContractsCallLike }
|
|
2358
|
-
| { pallet: '
|
|
2817
|
+
| { pallet: 'Preimage'; palletCall: PalletPreimageCallLike }
|
|
2818
|
+
| { pallet: 'Sudo'; palletCall: PalletSudoCallLike }
|
|
2819
|
+
| { pallet: 'CouncilMembership'; palletCall: PalletMembershipCallLike }
|
|
2820
|
+
| { pallet: 'TechnicalCommitteeMembership'; palletCall: PalletMembershipCallLike }
|
|
2821
|
+
| { pallet: 'CommunityCouncilMembership'; palletCall: PalletMembershipCallLike }
|
|
2822
|
+
| { pallet: 'Council'; palletCall: PalletCollectiveCallLike }
|
|
2823
|
+
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCallLike }
|
|
2824
|
+
| { pallet: 'CommunityCouncil'; palletCall: PalletCollectiveCallLike }
|
|
2825
|
+
| { pallet: 'Democracy'; palletCall: PalletDemocracyCallLike }
|
|
2826
|
+
| { pallet: 'Treasury'; palletCall: PalletTreasuryCallLike }
|
|
2827
|
+
| { pallet: 'CommunityTreasury'; palletCall: PalletTreasuryCallLike }
|
|
2828
|
+
| { pallet: 'CollectiveProxy'; palletCall: PalletCollectiveProxyCallLike }
|
|
2829
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike };
|
|
2359
2830
|
|
|
2360
2831
|
/**
|
|
2361
2832
|
* Identity pallet declaration.
|
|
@@ -3527,14 +3998,213 @@ export type PalletProxyCallLike =
|
|
|
3527
3998
|
/**
|
|
3528
3999
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3529
4000
|
**/
|
|
3530
|
-
export type
|
|
4001
|
+
export type PalletSchedulerCall =
|
|
3531
4002
|
/**
|
|
3532
|
-
*
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
4003
|
+
* Anonymously schedule a task.
|
|
4004
|
+
**/
|
|
4005
|
+
| {
|
|
4006
|
+
name: 'Schedule';
|
|
4007
|
+
params: {
|
|
4008
|
+
when: number;
|
|
4009
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4010
|
+
priority: number;
|
|
4011
|
+
call: AstarRuntimeRuntimeCall;
|
|
4012
|
+
};
|
|
4013
|
+
}
|
|
4014
|
+
/**
|
|
4015
|
+
* Cancel an anonymously scheduled task.
|
|
4016
|
+
**/
|
|
4017
|
+
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
4018
|
+
/**
|
|
4019
|
+
* Schedule a named task.
|
|
4020
|
+
**/
|
|
4021
|
+
| {
|
|
4022
|
+
name: 'ScheduleNamed';
|
|
4023
|
+
params: {
|
|
4024
|
+
id: FixedBytes<32>;
|
|
4025
|
+
when: number;
|
|
4026
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4027
|
+
priority: number;
|
|
4028
|
+
call: AstarRuntimeRuntimeCall;
|
|
4029
|
+
};
|
|
4030
|
+
}
|
|
4031
|
+
/**
|
|
4032
|
+
* Cancel a named scheduled task.
|
|
4033
|
+
**/
|
|
4034
|
+
| { name: 'CancelNamed'; params: { id: FixedBytes<32> } }
|
|
4035
|
+
/**
|
|
4036
|
+
* Anonymously schedule a task after a delay.
|
|
4037
|
+
**/
|
|
4038
|
+
| {
|
|
4039
|
+
name: 'ScheduleAfter';
|
|
4040
|
+
params: {
|
|
4041
|
+
after: number;
|
|
4042
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4043
|
+
priority: number;
|
|
4044
|
+
call: AstarRuntimeRuntimeCall;
|
|
4045
|
+
};
|
|
4046
|
+
}
|
|
4047
|
+
/**
|
|
4048
|
+
* Schedule a named task after a delay.
|
|
4049
|
+
**/
|
|
4050
|
+
| {
|
|
4051
|
+
name: 'ScheduleNamedAfter';
|
|
4052
|
+
params: {
|
|
4053
|
+
id: FixedBytes<32>;
|
|
4054
|
+
after: number;
|
|
4055
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4056
|
+
priority: number;
|
|
4057
|
+
call: AstarRuntimeRuntimeCall;
|
|
4058
|
+
};
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Set a retry configuration for a task so that, in case its scheduled run fails, it will
|
|
4062
|
+
* be retried after `period` blocks, for a total amount of `retries` retries or until it
|
|
4063
|
+
* succeeds.
|
|
4064
|
+
*
|
|
4065
|
+
* Tasks which need to be scheduled for a retry are still subject to weight metering and
|
|
4066
|
+
* agenda space, same as a regular task. If a periodic task fails, it will be scheduled
|
|
4067
|
+
* normally while the task is retrying.
|
|
4068
|
+
*
|
|
4069
|
+
* Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
|
|
4070
|
+
* clones of the original task. Their retry configuration will be derived from the
|
|
4071
|
+
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4072
|
+
* original `total_retries`.
|
|
4073
|
+
**/
|
|
4074
|
+
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
4075
|
+
/**
|
|
4076
|
+
* Set a retry configuration for a named task so that, in case its scheduled run fails, it
|
|
4077
|
+
* will be retried after `period` blocks, for a total amount of `retries` retries or until
|
|
4078
|
+
* it succeeds.
|
|
4079
|
+
*
|
|
4080
|
+
* Tasks which need to be scheduled for a retry are still subject to weight metering and
|
|
4081
|
+
* agenda space, same as a regular task. If a periodic task fails, it will be scheduled
|
|
4082
|
+
* normally while the task is retrying.
|
|
4083
|
+
*
|
|
4084
|
+
* Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
|
|
4085
|
+
* clones of the original task. Their retry configuration will be derived from the
|
|
4086
|
+
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4087
|
+
* original `total_retries`.
|
|
4088
|
+
**/
|
|
4089
|
+
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
4090
|
+
/**
|
|
4091
|
+
* Removes the retry configuration of a task.
|
|
4092
|
+
**/
|
|
4093
|
+
| { name: 'CancelRetry'; params: { task: [number, number] } }
|
|
4094
|
+
/**
|
|
4095
|
+
* Cancel the retry configuration of a named task.
|
|
4096
|
+
**/
|
|
4097
|
+
| { name: 'CancelRetryNamed'; params: { id: FixedBytes<32> } };
|
|
4098
|
+
|
|
4099
|
+
export type PalletSchedulerCallLike =
|
|
4100
|
+
/**
|
|
4101
|
+
* Anonymously schedule a task.
|
|
4102
|
+
**/
|
|
4103
|
+
| {
|
|
4104
|
+
name: 'Schedule';
|
|
4105
|
+
params: {
|
|
4106
|
+
when: number;
|
|
4107
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4108
|
+
priority: number;
|
|
4109
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4110
|
+
};
|
|
4111
|
+
}
|
|
4112
|
+
/**
|
|
4113
|
+
* Cancel an anonymously scheduled task.
|
|
4114
|
+
**/
|
|
4115
|
+
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
4116
|
+
/**
|
|
4117
|
+
* Schedule a named task.
|
|
4118
|
+
**/
|
|
4119
|
+
| {
|
|
4120
|
+
name: 'ScheduleNamed';
|
|
4121
|
+
params: {
|
|
4122
|
+
id: FixedBytes<32>;
|
|
4123
|
+
when: number;
|
|
4124
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4125
|
+
priority: number;
|
|
4126
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4127
|
+
};
|
|
4128
|
+
}
|
|
4129
|
+
/**
|
|
4130
|
+
* Cancel a named scheduled task.
|
|
4131
|
+
**/
|
|
4132
|
+
| { name: 'CancelNamed'; params: { id: FixedBytes<32> } }
|
|
4133
|
+
/**
|
|
4134
|
+
* Anonymously schedule a task after a delay.
|
|
4135
|
+
**/
|
|
4136
|
+
| {
|
|
4137
|
+
name: 'ScheduleAfter';
|
|
4138
|
+
params: {
|
|
4139
|
+
after: number;
|
|
4140
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4141
|
+
priority: number;
|
|
4142
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4143
|
+
};
|
|
4144
|
+
}
|
|
4145
|
+
/**
|
|
4146
|
+
* Schedule a named task after a delay.
|
|
4147
|
+
**/
|
|
4148
|
+
| {
|
|
4149
|
+
name: 'ScheduleNamedAfter';
|
|
4150
|
+
params: {
|
|
4151
|
+
id: FixedBytes<32>;
|
|
4152
|
+
after: number;
|
|
4153
|
+
maybePeriodic?: [number, number] | undefined;
|
|
4154
|
+
priority: number;
|
|
4155
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4158
|
+
/**
|
|
4159
|
+
* Set a retry configuration for a task so that, in case its scheduled run fails, it will
|
|
4160
|
+
* be retried after `period` blocks, for a total amount of `retries` retries or until it
|
|
4161
|
+
* succeeds.
|
|
4162
|
+
*
|
|
4163
|
+
* Tasks which need to be scheduled for a retry are still subject to weight metering and
|
|
4164
|
+
* agenda space, same as a regular task. If a periodic task fails, it will be scheduled
|
|
4165
|
+
* normally while the task is retrying.
|
|
4166
|
+
*
|
|
4167
|
+
* Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
|
|
4168
|
+
* clones of the original task. Their retry configuration will be derived from the
|
|
4169
|
+
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4170
|
+
* original `total_retries`.
|
|
4171
|
+
**/
|
|
4172
|
+
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
4173
|
+
/**
|
|
4174
|
+
* Set a retry configuration for a named task so that, in case its scheduled run fails, it
|
|
4175
|
+
* will be retried after `period` blocks, for a total amount of `retries` retries or until
|
|
4176
|
+
* it succeeds.
|
|
4177
|
+
*
|
|
4178
|
+
* Tasks which need to be scheduled for a retry are still subject to weight metering and
|
|
4179
|
+
* agenda space, same as a regular task. If a periodic task fails, it will be scheduled
|
|
4180
|
+
* normally while the task is retrying.
|
|
4181
|
+
*
|
|
4182
|
+
* Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
|
|
4183
|
+
* clones of the original task. Their retry configuration will be derived from the
|
|
4184
|
+
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4185
|
+
* original `total_retries`.
|
|
4186
|
+
**/
|
|
4187
|
+
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
4188
|
+
/**
|
|
4189
|
+
* Removes the retry configuration of a task.
|
|
4190
|
+
**/
|
|
4191
|
+
| { name: 'CancelRetry'; params: { task: [number, number] } }
|
|
4192
|
+
/**
|
|
4193
|
+
* Cancel the retry configuration of a named task.
|
|
4194
|
+
**/
|
|
4195
|
+
| { name: 'CancelRetryNamed'; params: { id: FixedBytes<32> } };
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4199
|
+
**/
|
|
4200
|
+
export type CumulusPalletParachainSystemCall =
|
|
4201
|
+
/**
|
|
4202
|
+
* Set the current validation data.
|
|
4203
|
+
*
|
|
4204
|
+
* This should be invoked exactly once per block. It will panic at the finalization
|
|
4205
|
+
* phase if the call was not invoked.
|
|
4206
|
+
*
|
|
4207
|
+
* The dispatch origin for this call must be `Inherent`
|
|
3538
4208
|
*
|
|
3539
4209
|
* As a side effect, this function upgrades the current validation function
|
|
3540
4210
|
* if the appropriate time has come.
|
|
@@ -3709,7 +4379,16 @@ export type PalletBalancesCall =
|
|
|
3709
4379
|
* # Example
|
|
3710
4380
|
**/
|
|
3711
4381
|
| { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
|
|
3712
|
-
|
|
4382
|
+
/**
|
|
4383
|
+
* Burn the specified liquid free balance from the origin account.
|
|
4384
|
+
*
|
|
4385
|
+
* If the origin's account ends up below the existential deposit as a result
|
|
4386
|
+
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
4387
|
+
*
|
|
4388
|
+
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
4389
|
+
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
4390
|
+
**/
|
|
4391
|
+
| { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
|
|
3713
4392
|
|
|
3714
4393
|
export type PalletBalancesCallLike =
|
|
3715
4394
|
/**
|
|
@@ -3785,7 +4464,16 @@ export type PalletBalancesCallLike =
|
|
|
3785
4464
|
* # Example
|
|
3786
4465
|
**/
|
|
3787
4466
|
| { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
|
|
3788
|
-
|
|
4467
|
+
/**
|
|
4468
|
+
* Burn the specified liquid free balance from the origin account.
|
|
4469
|
+
*
|
|
4470
|
+
* If the origin's account ends up below the existential deposit as a result
|
|
4471
|
+
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
4472
|
+
*
|
|
4473
|
+
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
4474
|
+
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
4475
|
+
**/
|
|
4476
|
+
| { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
|
|
3789
4477
|
|
|
3790
4478
|
export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
|
|
3791
4479
|
|
|
@@ -4045,7 +4733,7 @@ export type PalletInflationInflationParameters = {
|
|
|
4045
4733
|
/**
|
|
4046
4734
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4047
4735
|
**/
|
|
4048
|
-
export type
|
|
4736
|
+
export type PalletDappStakingCall =
|
|
4049
4737
|
/**
|
|
4050
4738
|
* Wrapper around _legacy-like_ `unbond_and_unstake`.
|
|
4051
4739
|
*
|
|
@@ -4178,7 +4866,7 @@ export type PalletDappStakingV3Call =
|
|
|
4178
4866
|
*
|
|
4179
4867
|
* Can only be called by the root origin.
|
|
4180
4868
|
**/
|
|
4181
|
-
| { name: 'Force'; params: { forcingType:
|
|
4869
|
+
| { name: 'Force'; params: { forcingType: PalletDappStakingForcingType } }
|
|
4182
4870
|
/**
|
|
4183
4871
|
* Claims some staker rewards for the specified account, if they have any.
|
|
4184
4872
|
* In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
|
|
@@ -4190,22 +4878,9 @@ export type PalletDappStakingV3Call =
|
|
|
4190
4878
|
| {
|
|
4191
4879
|
name: 'ClaimBonusRewardFor';
|
|
4192
4880
|
params: { account: AccountId32; smartContract: AstarPrimitivesDappStakingSmartContract };
|
|
4193
|
-
}
|
|
4194
|
-
/**
|
|
4195
|
-
* A call used to fix accounts with inconsistent state, where frozen balance is actually higher than what's available.
|
|
4196
|
-
*
|
|
4197
|
-
* The approach is as simple as possible:
|
|
4198
|
-
* 1. Caller provides an account to fix.
|
|
4199
|
-
* 2. If account is eligible for the fix, all unlocking chunks are modified to be claimable immediately.
|
|
4200
|
-
* 3. The `claim_unlocked` call is executed using the provided account as the origin.
|
|
4201
|
-
* 4. All states are updated accordingly, and the account is no longer in an inconsistent state.
|
|
4202
|
-
*
|
|
4203
|
-
* The benchmarked weight of the `claim_unlocked` call is used as a base, and additional overestimated weight is added.
|
|
4204
|
-
* Call doesn't touch any storage items that aren't already touched by the `claim_unlocked` call, hence the simplified approach.
|
|
4205
|
-
**/
|
|
4206
|
-
| { name: 'FixAccount'; params: { account: AccountId32 } };
|
|
4881
|
+
};
|
|
4207
4882
|
|
|
4208
|
-
export type
|
|
4883
|
+
export type PalletDappStakingCallLike =
|
|
4209
4884
|
/**
|
|
4210
4885
|
* Wrapper around _legacy-like_ `unbond_and_unstake`.
|
|
4211
4886
|
*
|
|
@@ -4341,7 +5016,7 @@ export type PalletDappStakingV3CallLike =
|
|
|
4341
5016
|
*
|
|
4342
5017
|
* Can only be called by the root origin.
|
|
4343
5018
|
**/
|
|
4344
|
-
| { name: 'Force'; params: { forcingType:
|
|
5019
|
+
| { name: 'Force'; params: { forcingType: PalletDappStakingForcingType } }
|
|
4345
5020
|
/**
|
|
4346
5021
|
* Claims some staker rewards for the specified account, if they have any.
|
|
4347
5022
|
* In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
|
|
@@ -4353,20 +5028,7 @@ export type PalletDappStakingV3CallLike =
|
|
|
4353
5028
|
| {
|
|
4354
5029
|
name: 'ClaimBonusRewardFor';
|
|
4355
5030
|
params: { account: AccountId32Like; smartContract: AstarPrimitivesDappStakingSmartContract };
|
|
4356
|
-
}
|
|
4357
|
-
/**
|
|
4358
|
-
* A call used to fix accounts with inconsistent state, where frozen balance is actually higher than what's available.
|
|
4359
|
-
*
|
|
4360
|
-
* The approach is as simple as possible:
|
|
4361
|
-
* 1. Caller provides an account to fix.
|
|
4362
|
-
* 2. If account is eligible for the fix, all unlocking chunks are modified to be claimable immediately.
|
|
4363
|
-
* 3. The `claim_unlocked` call is executed using the provided account as the origin.
|
|
4364
|
-
* 4. All states are updated accordingly, and the account is no longer in an inconsistent state.
|
|
4365
|
-
*
|
|
4366
|
-
* The benchmarked weight of the `claim_unlocked` call is used as a base, and additional overestimated weight is added.
|
|
4367
|
-
* Call doesn't touch any storage items that aren't already touched by the `claim_unlocked` call, hence the simplified approach.
|
|
4368
|
-
**/
|
|
4369
|
-
| { name: 'FixAccount'; params: { account: AccountId32Like } };
|
|
5031
|
+
};
|
|
4370
5032
|
|
|
4371
5033
|
/**
|
|
4372
5034
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -4383,7 +5045,7 @@ export type PalletAssetsCall =
|
|
|
4383
5045
|
*
|
|
4384
5046
|
* Parameters:
|
|
4385
5047
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
4386
|
-
* an existing asset.
|
|
5048
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
4387
5049
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
4388
5050
|
* member of the asset class's admin team.
|
|
4389
5051
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -4404,7 +5066,7 @@ export type PalletAssetsCall =
|
|
|
4404
5066
|
* Unlike `create`, no funds are reserved.
|
|
4405
5067
|
*
|
|
4406
5068
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
4407
|
-
* an existing asset.
|
|
5069
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
4408
5070
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
4409
5071
|
* over this asset, but may later change and configure the permissions using
|
|
4410
5072
|
* `transfer_ownership` and `set_team`.
|
|
@@ -4922,7 +5584,7 @@ export type PalletAssetsCallLike =
|
|
|
4922
5584
|
*
|
|
4923
5585
|
* Parameters:
|
|
4924
5586
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
4925
|
-
* an existing asset.
|
|
5587
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
4926
5588
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
4927
5589
|
* member of the asset class's admin team.
|
|
4928
5590
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -4943,7 +5605,7 @@ export type PalletAssetsCallLike =
|
|
|
4943
5605
|
* Unlike `create`, no funds are reserved.
|
|
4944
5606
|
*
|
|
4945
5607
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
4946
|
-
* an existing asset.
|
|
5608
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
4947
5609
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
4948
5610
|
* over this asset, but may later change and configure the permissions using
|
|
4949
5611
|
* `transfer_ownership` and `set_team`.
|
|
@@ -6106,7 +6768,7 @@ export type PalletXcmCall =
|
|
|
6106
6768
|
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
6107
6769
|
* fee on the `dest` (and possibly reserve) chains.
|
|
6108
6770
|
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
6109
|
-
* - `remote_fees_id`: One of the included `assets` to be
|
|
6771
|
+
* - `remote_fees_id`: One of the included `assets` to be used to pay fees.
|
|
6110
6772
|
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
6111
6773
|
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
6112
6774
|
* transfer, which also determines what happens to the assets on the destination chain.
|
|
@@ -6418,7 +7080,7 @@ export type PalletXcmCallLike =
|
|
|
6418
7080
|
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
6419
7081
|
* fee on the `dest` (and possibly reserve) chains.
|
|
6420
7082
|
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
6421
|
-
* - `remote_fees_id`: One of the included `assets` to be
|
|
7083
|
+
* - `remote_fees_id`: One of the included `assets` to be used to pay fees.
|
|
6422
7084
|
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
6423
7085
|
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
6424
7086
|
* transfer, which also determines what happens to the assets on the destination chain.
|
|
@@ -6546,6 +7208,8 @@ export type XcmV2TraitsError =
|
|
|
6546
7208
|
| { type: 'Barrier' }
|
|
6547
7209
|
| { type: 'WeightNotComputable' };
|
|
6548
7210
|
|
|
7211
|
+
export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
7212
|
+
|
|
6549
7213
|
export type XcmV2MultiassetMultiAssetFilter =
|
|
6550
7214
|
| { type: 'Definite'; value: XcmV2MultiassetMultiAssets }
|
|
6551
7215
|
| { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
|
|
@@ -6583,7 +7247,7 @@ export type XcmV3Instruction =
|
|
|
6583
7247
|
}
|
|
6584
7248
|
| {
|
|
6585
7249
|
type: 'Transact';
|
|
6586
|
-
value: { originKind:
|
|
7250
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
6587
7251
|
}
|
|
6588
7252
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
6589
7253
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -7731,6 +8395,83 @@ export type PalletContractsCallLike =
|
|
|
7731
8395
|
|
|
7732
8396
|
export type PalletContractsWasmDeterminism = 'Enforced' | 'Relaxed';
|
|
7733
8397
|
|
|
8398
|
+
/**
|
|
8399
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8400
|
+
**/
|
|
8401
|
+
export type PalletPreimageCall =
|
|
8402
|
+
/**
|
|
8403
|
+
* Register a preimage on-chain.
|
|
8404
|
+
*
|
|
8405
|
+
* If the preimage was previously requested, no fees or deposits are taken for providing
|
|
8406
|
+
* the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
|
|
8407
|
+
**/
|
|
8408
|
+
| { name: 'NotePreimage'; params: { bytes: Bytes } }
|
|
8409
|
+
/**
|
|
8410
|
+
* Clear an unrequested preimage from the runtime storage.
|
|
8411
|
+
*
|
|
8412
|
+
* If `len` is provided, then it will be a much cheaper operation.
|
|
8413
|
+
*
|
|
8414
|
+
* - `hash`: The hash of the preimage to be removed from the store.
|
|
8415
|
+
* - `len`: The length of the preimage of `hash`.
|
|
8416
|
+
**/
|
|
8417
|
+
| { name: 'UnnotePreimage'; params: { hash: H256 } }
|
|
8418
|
+
/**
|
|
8419
|
+
* Request a preimage be uploaded to the chain without paying any fees or deposits.
|
|
8420
|
+
*
|
|
8421
|
+
* If the preimage requests has already been provided on-chain, we unreserve any deposit
|
|
8422
|
+
* a user may have paid, and take the control of the preimage out of their hands.
|
|
8423
|
+
**/
|
|
8424
|
+
| { name: 'RequestPreimage'; params: { hash: H256 } }
|
|
8425
|
+
/**
|
|
8426
|
+
* Clear a previously made request for a preimage.
|
|
8427
|
+
*
|
|
8428
|
+
* NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
|
|
8429
|
+
**/
|
|
8430
|
+
| { name: 'UnrequestPreimage'; params: { hash: H256 } }
|
|
8431
|
+
/**
|
|
8432
|
+
* Ensure that the a bulk of pre-images is upgraded.
|
|
8433
|
+
*
|
|
8434
|
+
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
8435
|
+
**/
|
|
8436
|
+
| { name: 'EnsureUpdated'; params: { hashes: Array<H256> } };
|
|
8437
|
+
|
|
8438
|
+
export type PalletPreimageCallLike =
|
|
8439
|
+
/**
|
|
8440
|
+
* Register a preimage on-chain.
|
|
8441
|
+
*
|
|
8442
|
+
* If the preimage was previously requested, no fees or deposits are taken for providing
|
|
8443
|
+
* the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
|
|
8444
|
+
**/
|
|
8445
|
+
| { name: 'NotePreimage'; params: { bytes: BytesLike } }
|
|
8446
|
+
/**
|
|
8447
|
+
* Clear an unrequested preimage from the runtime storage.
|
|
8448
|
+
*
|
|
8449
|
+
* If `len` is provided, then it will be a much cheaper operation.
|
|
8450
|
+
*
|
|
8451
|
+
* - `hash`: The hash of the preimage to be removed from the store.
|
|
8452
|
+
* - `len`: The length of the preimage of `hash`.
|
|
8453
|
+
**/
|
|
8454
|
+
| { name: 'UnnotePreimage'; params: { hash: H256 } }
|
|
8455
|
+
/**
|
|
8456
|
+
* Request a preimage be uploaded to the chain without paying any fees or deposits.
|
|
8457
|
+
*
|
|
8458
|
+
* If the preimage requests has already been provided on-chain, we unreserve any deposit
|
|
8459
|
+
* a user may have paid, and take the control of the preimage out of their hands.
|
|
8460
|
+
**/
|
|
8461
|
+
| { name: 'RequestPreimage'; params: { hash: H256 } }
|
|
8462
|
+
/**
|
|
8463
|
+
* Clear a previously made request for a preimage.
|
|
8464
|
+
*
|
|
8465
|
+
* NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
|
|
8466
|
+
**/
|
|
8467
|
+
| { name: 'UnrequestPreimage'; params: { hash: H256 } }
|
|
8468
|
+
/**
|
|
8469
|
+
* Ensure that the a bulk of pre-images is upgraded.
|
|
8470
|
+
*
|
|
8471
|
+
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
8472
|
+
**/
|
|
8473
|
+
| { name: 'EnsureUpdated'; params: { hashes: Array<H256> } };
|
|
8474
|
+
|
|
7734
8475
|
/**
|
|
7735
8476
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
7736
8477
|
**/
|
|
@@ -7798,75 +8539,1388 @@ export type PalletSudoCallLike =
|
|
|
7798
8539
|
**/
|
|
7799
8540
|
| { name: 'RemoveKey' };
|
|
7800
8541
|
|
|
7801
|
-
export type AstarRuntimeOriginCaller =
|
|
7802
|
-
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
7803
|
-
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
7804
|
-
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
7805
|
-
| { type: 'Ethereum'; value: PalletEthereumRawOrigin }
|
|
7806
|
-
| { type: 'Void'; value: SpCoreVoid };
|
|
7807
|
-
|
|
7808
|
-
export type FrameSupportDispatchRawOrigin =
|
|
7809
|
-
| { type: 'Root' }
|
|
7810
|
-
| { type: 'Signed'; value: AccountId32 }
|
|
7811
|
-
| { type: 'None' };
|
|
7812
|
-
|
|
7813
|
-
export type PalletXcmOrigin =
|
|
7814
|
-
| { type: 'Xcm'; value: StagingXcmV4Location }
|
|
7815
|
-
| { type: 'Response'; value: StagingXcmV4Location };
|
|
7816
|
-
|
|
7817
|
-
export type CumulusPalletXcmOrigin =
|
|
7818
|
-
| { type: 'Relay' }
|
|
7819
|
-
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
7820
|
-
|
|
7821
|
-
export type PalletEthereumRawOrigin = { type: 'EthereumTransaction'; value: H160 };
|
|
7822
|
-
|
|
7823
|
-
export type SpCoreVoid = null;
|
|
7824
|
-
|
|
7825
8542
|
/**
|
|
7826
|
-
*
|
|
8543
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
7827
8544
|
**/
|
|
7828
|
-
export type
|
|
8545
|
+
export type PalletCollectiveCall =
|
|
7829
8546
|
/**
|
|
7830
|
-
*
|
|
8547
|
+
* Set the collective's membership.
|
|
8548
|
+
*
|
|
8549
|
+
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
8550
|
+
* - `prime`: The prime member whose vote sets the default.
|
|
8551
|
+
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
8552
|
+
* weight estimation.
|
|
8553
|
+
*
|
|
8554
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
8555
|
+
*
|
|
8556
|
+
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
8557
|
+
* the weight estimations rely on it to estimate dispatchable weight.
|
|
8558
|
+
*
|
|
8559
|
+
* # WARNING:
|
|
8560
|
+
*
|
|
8561
|
+
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
8562
|
+
* implementation of the trait [`ChangeMembers`].
|
|
8563
|
+
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
8564
|
+
* with other logic managing the member set.
|
|
8565
|
+
*
|
|
8566
|
+
* ## Complexity:
|
|
8567
|
+
* - `O(MP + N)` where:
|
|
8568
|
+
* - `M` old-members-count (code- and governance-bounded)
|
|
8569
|
+
* - `N` new-members-count (code- and governance-bounded)
|
|
8570
|
+
* - `P` proposals-count (code-bounded)
|
|
7831
8571
|
**/
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
deposit: bigint;
|
|
7837
|
-
info: PalletIdentityLegacyIdentityInfo;
|
|
7838
|
-
};
|
|
7839
|
-
|
|
7840
|
-
export type PalletIdentityRegistrarInfo = { account: AccountId32; fee: bigint; fields: bigint };
|
|
7841
|
-
|
|
7842
|
-
export type PalletIdentityAuthorityProperties = { suffix: Bytes; allocation: number };
|
|
7843
|
-
|
|
7844
|
-
/**
|
|
7845
|
-
* The `Error` enum of this pallet.
|
|
7846
|
-
**/
|
|
7847
|
-
export type PalletIdentityError =
|
|
8572
|
+
| {
|
|
8573
|
+
name: 'SetMembers';
|
|
8574
|
+
params: { newMembers: Array<AccountId32>; prime?: AccountId32 | undefined; oldCount: number };
|
|
8575
|
+
}
|
|
7848
8576
|
/**
|
|
7849
|
-
*
|
|
8577
|
+
* Dispatch a proposal from a member using the `Member` origin.
|
|
8578
|
+
*
|
|
8579
|
+
* Origin must be a member of the collective.
|
|
8580
|
+
*
|
|
8581
|
+
* ## Complexity:
|
|
8582
|
+
* - `O(B + M + P)` where:
|
|
8583
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8584
|
+
* - `M` members-count (code-bounded)
|
|
8585
|
+
* - `P` complexity of dispatching `proposal`
|
|
7850
8586
|
**/
|
|
7851
|
-
| '
|
|
8587
|
+
| { name: 'Execute'; params: { proposal: AstarRuntimeRuntimeCall; lengthBound: number } }
|
|
7852
8588
|
/**
|
|
7853
|
-
*
|
|
8589
|
+
* Add a new proposal to either be voted on or executed directly.
|
|
8590
|
+
*
|
|
8591
|
+
* Requires the sender to be member.
|
|
8592
|
+
*
|
|
8593
|
+
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
8594
|
+
* or put up for voting.
|
|
8595
|
+
*
|
|
8596
|
+
* ## Complexity
|
|
8597
|
+
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
8598
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8599
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
8600
|
+
* - branching is influenced by `threshold` where:
|
|
8601
|
+
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
8602
|
+
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
7854
8603
|
**/
|
|
7855
|
-
| '
|
|
8604
|
+
| { name: 'Propose'; params: { threshold: number; proposal: AstarRuntimeRuntimeCall; lengthBound: number } }
|
|
7856
8605
|
/**
|
|
7857
|
-
*
|
|
8606
|
+
* Add an aye or nay vote for the sender to the given proposal.
|
|
8607
|
+
*
|
|
8608
|
+
* Requires the sender to be a member.
|
|
8609
|
+
*
|
|
8610
|
+
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
8611
|
+
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
8612
|
+
* fee.
|
|
8613
|
+
* ## Complexity
|
|
8614
|
+
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
7858
8615
|
**/
|
|
7859
|
-
| '
|
|
8616
|
+
| { name: 'Vote'; params: { proposal: H256; index: number; approve: boolean } }
|
|
7860
8617
|
/**
|
|
7861
|
-
*
|
|
8618
|
+
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
8619
|
+
* state.
|
|
8620
|
+
*
|
|
8621
|
+
* Must be called by the Root origin.
|
|
8622
|
+
*
|
|
8623
|
+
* Parameters:
|
|
8624
|
+
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
8625
|
+
*
|
|
8626
|
+
* ## Complexity
|
|
8627
|
+
* O(P) where P is the number of max proposals
|
|
7862
8628
|
**/
|
|
7863
|
-
| '
|
|
8629
|
+
| { name: 'DisapproveProposal'; params: { proposalHash: H256 } }
|
|
7864
8630
|
/**
|
|
7865
|
-
*
|
|
8631
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
8632
|
+
*
|
|
8633
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
8634
|
+
*
|
|
8635
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
8636
|
+
* has enough votes to be approved or disapproved.
|
|
8637
|
+
*
|
|
8638
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
8639
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
8640
|
+
*
|
|
8641
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
8642
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
8643
|
+
*
|
|
8644
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
8645
|
+
* proposal.
|
|
8646
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
8647
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
8648
|
+
*
|
|
8649
|
+
* ## Complexity
|
|
8650
|
+
* - `O(B + M + P1 + P2)` where:
|
|
8651
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8652
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
8653
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
8654
|
+
* - `P2` is proposal-count (code-bounded)
|
|
7866
8655
|
**/
|
|
7867
|
-
|
|
|
8656
|
+
| {
|
|
8657
|
+
name: 'Close';
|
|
8658
|
+
params: { proposalHash: H256; index: number; proposalWeightBound: SpWeightsWeightV2Weight; lengthBound: number };
|
|
8659
|
+
};
|
|
8660
|
+
|
|
8661
|
+
export type PalletCollectiveCallLike =
|
|
7868
8662
|
/**
|
|
7869
|
-
*
|
|
8663
|
+
* Set the collective's membership.
|
|
8664
|
+
*
|
|
8665
|
+
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
8666
|
+
* - `prime`: The prime member whose vote sets the default.
|
|
8667
|
+
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
8668
|
+
* weight estimation.
|
|
8669
|
+
*
|
|
8670
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
8671
|
+
*
|
|
8672
|
+
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
8673
|
+
* the weight estimations rely on it to estimate dispatchable weight.
|
|
8674
|
+
*
|
|
8675
|
+
* # WARNING:
|
|
8676
|
+
*
|
|
8677
|
+
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
8678
|
+
* implementation of the trait [`ChangeMembers`].
|
|
8679
|
+
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
8680
|
+
* with other logic managing the member set.
|
|
8681
|
+
*
|
|
8682
|
+
* ## Complexity:
|
|
8683
|
+
* - `O(MP + N)` where:
|
|
8684
|
+
* - `M` old-members-count (code- and governance-bounded)
|
|
8685
|
+
* - `N` new-members-count (code- and governance-bounded)
|
|
8686
|
+
* - `P` proposals-count (code-bounded)
|
|
8687
|
+
**/
|
|
8688
|
+
| {
|
|
8689
|
+
name: 'SetMembers';
|
|
8690
|
+
params: { newMembers: Array<AccountId32Like>; prime?: AccountId32Like | undefined; oldCount: number };
|
|
8691
|
+
}
|
|
8692
|
+
/**
|
|
8693
|
+
* Dispatch a proposal from a member using the `Member` origin.
|
|
8694
|
+
*
|
|
8695
|
+
* Origin must be a member of the collective.
|
|
8696
|
+
*
|
|
8697
|
+
* ## Complexity:
|
|
8698
|
+
* - `O(B + M + P)` where:
|
|
8699
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8700
|
+
* - `M` members-count (code-bounded)
|
|
8701
|
+
* - `P` complexity of dispatching `proposal`
|
|
8702
|
+
**/
|
|
8703
|
+
| { name: 'Execute'; params: { proposal: AstarRuntimeRuntimeCallLike; lengthBound: number } }
|
|
8704
|
+
/**
|
|
8705
|
+
* Add a new proposal to either be voted on or executed directly.
|
|
8706
|
+
*
|
|
8707
|
+
* Requires the sender to be member.
|
|
8708
|
+
*
|
|
8709
|
+
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
8710
|
+
* or put up for voting.
|
|
8711
|
+
*
|
|
8712
|
+
* ## Complexity
|
|
8713
|
+
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
8714
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8715
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
8716
|
+
* - branching is influenced by `threshold` where:
|
|
8717
|
+
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
8718
|
+
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
8719
|
+
**/
|
|
8720
|
+
| { name: 'Propose'; params: { threshold: number; proposal: AstarRuntimeRuntimeCallLike; lengthBound: number } }
|
|
8721
|
+
/**
|
|
8722
|
+
* Add an aye or nay vote for the sender to the given proposal.
|
|
8723
|
+
*
|
|
8724
|
+
* Requires the sender to be a member.
|
|
8725
|
+
*
|
|
8726
|
+
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
8727
|
+
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
8728
|
+
* fee.
|
|
8729
|
+
* ## Complexity
|
|
8730
|
+
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
8731
|
+
**/
|
|
8732
|
+
| { name: 'Vote'; params: { proposal: H256; index: number; approve: boolean } }
|
|
8733
|
+
/**
|
|
8734
|
+
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
8735
|
+
* state.
|
|
8736
|
+
*
|
|
8737
|
+
* Must be called by the Root origin.
|
|
8738
|
+
*
|
|
8739
|
+
* Parameters:
|
|
8740
|
+
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
8741
|
+
*
|
|
8742
|
+
* ## Complexity
|
|
8743
|
+
* O(P) where P is the number of max proposals
|
|
8744
|
+
**/
|
|
8745
|
+
| { name: 'DisapproveProposal'; params: { proposalHash: H256 } }
|
|
8746
|
+
/**
|
|
8747
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
8748
|
+
*
|
|
8749
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
8750
|
+
*
|
|
8751
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
8752
|
+
* has enough votes to be approved or disapproved.
|
|
8753
|
+
*
|
|
8754
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
8755
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
8756
|
+
*
|
|
8757
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
8758
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
8759
|
+
*
|
|
8760
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
8761
|
+
* proposal.
|
|
8762
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
8763
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
8764
|
+
*
|
|
8765
|
+
* ## Complexity
|
|
8766
|
+
* - `O(B + M + P1 + P2)` where:
|
|
8767
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
8768
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
8769
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
8770
|
+
* - `P2` is proposal-count (code-bounded)
|
|
8771
|
+
**/
|
|
8772
|
+
| {
|
|
8773
|
+
name: 'Close';
|
|
8774
|
+
params: { proposalHash: H256; index: number; proposalWeightBound: SpWeightsWeightV2Weight; lengthBound: number };
|
|
8775
|
+
};
|
|
8776
|
+
|
|
8777
|
+
/**
|
|
8778
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8779
|
+
**/
|
|
8780
|
+
export type PalletDemocracyCall =
|
|
8781
|
+
/**
|
|
8782
|
+
* Propose a sensitive action to be taken.
|
|
8783
|
+
*
|
|
8784
|
+
* The dispatch origin of this call must be _Signed_ and the sender must
|
|
8785
|
+
* have funds to cover the deposit.
|
|
8786
|
+
*
|
|
8787
|
+
* - `proposal_hash`: The hash of the proposal preimage.
|
|
8788
|
+
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
|
8789
|
+
*
|
|
8790
|
+
* Emits `Proposed`.
|
|
8791
|
+
**/
|
|
8792
|
+
| { name: 'Propose'; params: { proposal: FrameSupportPreimagesBounded; value: bigint } }
|
|
8793
|
+
/**
|
|
8794
|
+
* Signals agreement with a particular proposal.
|
|
8795
|
+
*
|
|
8796
|
+
* The dispatch origin of this call must be _Signed_ and the sender
|
|
8797
|
+
* must have funds to cover the deposit, equal to the original deposit.
|
|
8798
|
+
*
|
|
8799
|
+
* - `proposal`: The index of the proposal to second.
|
|
8800
|
+
**/
|
|
8801
|
+
| { name: 'Second'; params: { proposal: number } }
|
|
8802
|
+
/**
|
|
8803
|
+
* Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
8804
|
+
* otherwise it is a vote to keep the status quo.
|
|
8805
|
+
*
|
|
8806
|
+
* The dispatch origin of this call must be _Signed_.
|
|
8807
|
+
*
|
|
8808
|
+
* - `ref_index`: The index of the referendum to vote for.
|
|
8809
|
+
* - `vote`: The vote configuration.
|
|
8810
|
+
**/
|
|
8811
|
+
| { name: 'Vote'; params: { refIndex: number; vote: PalletDemocracyVoteAccountVote } }
|
|
8812
|
+
/**
|
|
8813
|
+
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
|
8814
|
+
* referendum.
|
|
8815
|
+
*
|
|
8816
|
+
* The dispatch origin of this call must be `CancellationOrigin`.
|
|
8817
|
+
*
|
|
8818
|
+
* -`ref_index`: The index of the referendum to cancel.
|
|
8819
|
+
*
|
|
8820
|
+
* Weight: `O(1)`.
|
|
8821
|
+
**/
|
|
8822
|
+
| { name: 'EmergencyCancel'; params: { refIndex: number } }
|
|
8823
|
+
/**
|
|
8824
|
+
* Schedule a referendum to be tabled once it is legal to schedule an external
|
|
8825
|
+
* referendum.
|
|
8826
|
+
*
|
|
8827
|
+
* The dispatch origin of this call must be `ExternalOrigin`.
|
|
8828
|
+
*
|
|
8829
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
8830
|
+
**/
|
|
8831
|
+
| { name: 'ExternalPropose'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
8832
|
+
/**
|
|
8833
|
+
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
|
8834
|
+
* an external referendum.
|
|
8835
|
+
*
|
|
8836
|
+
* The dispatch of this call must be `ExternalMajorityOrigin`.
|
|
8837
|
+
*
|
|
8838
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
8839
|
+
*
|
|
8840
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
8841
|
+
* pre-scheduled `external_propose` call.
|
|
8842
|
+
*
|
|
8843
|
+
* Weight: `O(1)`
|
|
8844
|
+
**/
|
|
8845
|
+
| { name: 'ExternalProposeMajority'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
8846
|
+
/**
|
|
8847
|
+
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
|
8848
|
+
* schedule an external referendum.
|
|
8849
|
+
*
|
|
8850
|
+
* The dispatch of this call must be `ExternalDefaultOrigin`.
|
|
8851
|
+
*
|
|
8852
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
8853
|
+
*
|
|
8854
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
8855
|
+
* pre-scheduled `external_propose` call.
|
|
8856
|
+
*
|
|
8857
|
+
* Weight: `O(1)`
|
|
8858
|
+
**/
|
|
8859
|
+
| { name: 'ExternalProposeDefault'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
8860
|
+
/**
|
|
8861
|
+
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
|
8862
|
+
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
|
8863
|
+
* but it is not a majority-carries referendum then it fails.
|
|
8864
|
+
*
|
|
8865
|
+
* The dispatch of this call must be `FastTrackOrigin`.
|
|
8866
|
+
*
|
|
8867
|
+
* - `proposal_hash`: The hash of the current external proposal.
|
|
8868
|
+
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
|
8869
|
+
* Must be always greater than zero.
|
|
8870
|
+
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
|
8871
|
+
* - `delay`: The number of block after voting has ended in approval and this should be
|
|
8872
|
+
* enacted. This doesn't have a minimum amount.
|
|
8873
|
+
*
|
|
8874
|
+
* Emits `Started`.
|
|
8875
|
+
*
|
|
8876
|
+
* Weight: `O(1)`
|
|
8877
|
+
**/
|
|
8878
|
+
| { name: 'FastTrack'; params: { proposalHash: H256; votingPeriod: number; delay: number } }
|
|
8879
|
+
/**
|
|
8880
|
+
* Veto and blacklist the external proposal hash.
|
|
8881
|
+
*
|
|
8882
|
+
* The dispatch origin of this call must be `VetoOrigin`.
|
|
8883
|
+
*
|
|
8884
|
+
* - `proposal_hash`: The preimage hash of the proposal to veto and blacklist.
|
|
8885
|
+
*
|
|
8886
|
+
* Emits `Vetoed`.
|
|
8887
|
+
*
|
|
8888
|
+
* Weight: `O(V + log(V))` where V is number of `existing vetoers`
|
|
8889
|
+
**/
|
|
8890
|
+
| { name: 'VetoExternal'; params: { proposalHash: H256 } }
|
|
8891
|
+
/**
|
|
8892
|
+
* Remove a referendum.
|
|
8893
|
+
*
|
|
8894
|
+
* The dispatch origin of this call must be _Root_.
|
|
8895
|
+
*
|
|
8896
|
+
* - `ref_index`: The index of the referendum to cancel.
|
|
8897
|
+
*
|
|
8898
|
+
* # Weight: `O(1)`.
|
|
8899
|
+
**/
|
|
8900
|
+
| { name: 'CancelReferendum'; params: { refIndex: number } }
|
|
8901
|
+
/**
|
|
8902
|
+
* Delegate the voting power (with some given conviction) of the sending account.
|
|
8903
|
+
*
|
|
8904
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
8905
|
+
* time appropriate for the conviction's lock period.
|
|
8906
|
+
*
|
|
8907
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
8908
|
+
* - be delegating already; or
|
|
8909
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
8910
|
+
* through `reap_vote` or `unvote`).
|
|
8911
|
+
*
|
|
8912
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
8913
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
8914
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
8915
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
8916
|
+
* be more than the account's current balance.
|
|
8917
|
+
*
|
|
8918
|
+
* Emits `Delegated`.
|
|
8919
|
+
*
|
|
8920
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
8921
|
+
* voted on. Weight is charged as if maximum votes.
|
|
8922
|
+
**/
|
|
8923
|
+
| { name: 'Delegate'; params: { to: MultiAddress; conviction: PalletDemocracyConviction; balance: bigint } }
|
|
8924
|
+
/**
|
|
8925
|
+
* Undelegate the voting power of the sending account.
|
|
8926
|
+
*
|
|
8927
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
8928
|
+
* of the conviction with which the delegation was issued.
|
|
8929
|
+
*
|
|
8930
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
8931
|
+
* currently delegating.
|
|
8932
|
+
*
|
|
8933
|
+
* Emits `Undelegated`.
|
|
8934
|
+
*
|
|
8935
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
8936
|
+
* voted on. Weight is charged as if maximum votes.
|
|
8937
|
+
**/
|
|
8938
|
+
| { name: 'Undelegate' }
|
|
8939
|
+
/**
|
|
8940
|
+
* Clears all public proposals.
|
|
8941
|
+
*
|
|
8942
|
+
* The dispatch origin of this call must be _Root_.
|
|
8943
|
+
*
|
|
8944
|
+
* Weight: `O(1)`.
|
|
8945
|
+
**/
|
|
8946
|
+
| { name: 'ClearPublicProposals' }
|
|
8947
|
+
/**
|
|
8948
|
+
* Unlock tokens that have an expired lock.
|
|
8949
|
+
*
|
|
8950
|
+
* The dispatch origin of this call must be _Signed_.
|
|
8951
|
+
*
|
|
8952
|
+
* - `target`: The account to remove the lock on.
|
|
8953
|
+
*
|
|
8954
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
8955
|
+
**/
|
|
8956
|
+
| { name: 'Unlock'; params: { target: MultiAddress } }
|
|
8957
|
+
/**
|
|
8958
|
+
* Remove a vote for a referendum.
|
|
8959
|
+
*
|
|
8960
|
+
* If:
|
|
8961
|
+
* - the referendum was cancelled, or
|
|
8962
|
+
* - the referendum is ongoing, or
|
|
8963
|
+
* - the referendum has ended such that
|
|
8964
|
+
* - the vote of the account was in opposition to the result; or
|
|
8965
|
+
* - there was no conviction to the account's vote; or
|
|
8966
|
+
* - the account made a split vote
|
|
8967
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
8968
|
+
* funds being available.
|
|
8969
|
+
*
|
|
8970
|
+
* If, however, the referendum has ended and:
|
|
8971
|
+
* - it finished corresponding to the vote of the account, and
|
|
8972
|
+
* - the account made a standard vote with conviction, and
|
|
8973
|
+
* - the lock period of the conviction is not over
|
|
8974
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
8975
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
8976
|
+
* of both the amount locked and the time is it locked for).
|
|
8977
|
+
*
|
|
8978
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
8979
|
+
* registered for referendum `index`.
|
|
8980
|
+
*
|
|
8981
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
8982
|
+
*
|
|
8983
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
8984
|
+
* Weight is calculated for the maximum number of vote.
|
|
8985
|
+
**/
|
|
8986
|
+
| { name: 'RemoveVote'; params: { index: number } }
|
|
8987
|
+
/**
|
|
8988
|
+
* Remove a vote for a referendum.
|
|
8989
|
+
*
|
|
8990
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
8991
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
8992
|
+
* either because the referendum was cancelled, because the voter lost the referendum or
|
|
8993
|
+
* because the conviction period is over.
|
|
8994
|
+
*
|
|
8995
|
+
* The dispatch origin of this call must be _Signed_.
|
|
8996
|
+
*
|
|
8997
|
+
* - `target`: The account of the vote to be removed; this account must have voted for
|
|
8998
|
+
* referendum `index`.
|
|
8999
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
9000
|
+
*
|
|
9001
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
9002
|
+
* Weight is calculated for the maximum number of vote.
|
|
9003
|
+
**/
|
|
9004
|
+
| { name: 'RemoveOtherVote'; params: { target: MultiAddress; index: number } }
|
|
9005
|
+
/**
|
|
9006
|
+
* Permanently place a proposal into the blacklist. This prevents it from ever being
|
|
9007
|
+
* proposed again.
|
|
9008
|
+
*
|
|
9009
|
+
* If called on a queued public or external proposal, then this will result in it being
|
|
9010
|
+
* removed. If the `ref_index` supplied is an active referendum with the proposal hash,
|
|
9011
|
+
* then it will be cancelled.
|
|
9012
|
+
*
|
|
9013
|
+
* The dispatch origin of this call must be `BlacklistOrigin`.
|
|
9014
|
+
*
|
|
9015
|
+
* - `proposal_hash`: The proposal hash to blacklist permanently.
|
|
9016
|
+
* - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be
|
|
9017
|
+
* cancelled.
|
|
9018
|
+
*
|
|
9019
|
+
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
9020
|
+
* reasonable value).
|
|
9021
|
+
**/
|
|
9022
|
+
| { name: 'Blacklist'; params: { proposalHash: H256; maybeRefIndex?: number | undefined } }
|
|
9023
|
+
/**
|
|
9024
|
+
* Remove a proposal.
|
|
9025
|
+
*
|
|
9026
|
+
* The dispatch origin of this call must be `CancelProposalOrigin`.
|
|
9027
|
+
*
|
|
9028
|
+
* - `prop_index`: The index of the proposal to cancel.
|
|
9029
|
+
*
|
|
9030
|
+
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
|
9031
|
+
**/
|
|
9032
|
+
| { name: 'CancelProposal'; params: { propIndex: number } }
|
|
9033
|
+
/**
|
|
9034
|
+
* Set or clear a metadata of a proposal or a referendum.
|
|
9035
|
+
*
|
|
9036
|
+
* Parameters:
|
|
9037
|
+
* - `origin`: Must correspond to the `MetadataOwner`.
|
|
9038
|
+
* - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
|
|
9039
|
+
* threshold.
|
|
9040
|
+
* - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
|
|
9041
|
+
* threshold.
|
|
9042
|
+
* - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
|
|
9043
|
+
* threshold.
|
|
9044
|
+
* - `Signed` by a creator for a public proposal.
|
|
9045
|
+
* - `Signed` to clear a metadata for a finished referendum.
|
|
9046
|
+
* - `Root` to set a metadata for an ongoing referendum.
|
|
9047
|
+
* - `owner`: an identifier of a metadata owner.
|
|
9048
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
9049
|
+
**/
|
|
9050
|
+
| { name: 'SetMetadata'; params: { owner: PalletDemocracyMetadataOwner; maybeHash?: H256 | undefined } };
|
|
9051
|
+
|
|
9052
|
+
export type PalletDemocracyCallLike =
|
|
9053
|
+
/**
|
|
9054
|
+
* Propose a sensitive action to be taken.
|
|
9055
|
+
*
|
|
9056
|
+
* The dispatch origin of this call must be _Signed_ and the sender must
|
|
9057
|
+
* have funds to cover the deposit.
|
|
9058
|
+
*
|
|
9059
|
+
* - `proposal_hash`: The hash of the proposal preimage.
|
|
9060
|
+
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
|
9061
|
+
*
|
|
9062
|
+
* Emits `Proposed`.
|
|
9063
|
+
**/
|
|
9064
|
+
| { name: 'Propose'; params: { proposal: FrameSupportPreimagesBounded; value: bigint } }
|
|
9065
|
+
/**
|
|
9066
|
+
* Signals agreement with a particular proposal.
|
|
9067
|
+
*
|
|
9068
|
+
* The dispatch origin of this call must be _Signed_ and the sender
|
|
9069
|
+
* must have funds to cover the deposit, equal to the original deposit.
|
|
9070
|
+
*
|
|
9071
|
+
* - `proposal`: The index of the proposal to second.
|
|
9072
|
+
**/
|
|
9073
|
+
| { name: 'Second'; params: { proposal: number } }
|
|
9074
|
+
/**
|
|
9075
|
+
* Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
9076
|
+
* otherwise it is a vote to keep the status quo.
|
|
9077
|
+
*
|
|
9078
|
+
* The dispatch origin of this call must be _Signed_.
|
|
9079
|
+
*
|
|
9080
|
+
* - `ref_index`: The index of the referendum to vote for.
|
|
9081
|
+
* - `vote`: The vote configuration.
|
|
9082
|
+
**/
|
|
9083
|
+
| { name: 'Vote'; params: { refIndex: number; vote: PalletDemocracyVoteAccountVote } }
|
|
9084
|
+
/**
|
|
9085
|
+
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
|
9086
|
+
* referendum.
|
|
9087
|
+
*
|
|
9088
|
+
* The dispatch origin of this call must be `CancellationOrigin`.
|
|
9089
|
+
*
|
|
9090
|
+
* -`ref_index`: The index of the referendum to cancel.
|
|
9091
|
+
*
|
|
9092
|
+
* Weight: `O(1)`.
|
|
9093
|
+
**/
|
|
9094
|
+
| { name: 'EmergencyCancel'; params: { refIndex: number } }
|
|
9095
|
+
/**
|
|
9096
|
+
* Schedule a referendum to be tabled once it is legal to schedule an external
|
|
9097
|
+
* referendum.
|
|
9098
|
+
*
|
|
9099
|
+
* The dispatch origin of this call must be `ExternalOrigin`.
|
|
9100
|
+
*
|
|
9101
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
9102
|
+
**/
|
|
9103
|
+
| { name: 'ExternalPropose'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
9104
|
+
/**
|
|
9105
|
+
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
|
9106
|
+
* an external referendum.
|
|
9107
|
+
*
|
|
9108
|
+
* The dispatch of this call must be `ExternalMajorityOrigin`.
|
|
9109
|
+
*
|
|
9110
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
9111
|
+
*
|
|
9112
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
9113
|
+
* pre-scheduled `external_propose` call.
|
|
9114
|
+
*
|
|
9115
|
+
* Weight: `O(1)`
|
|
9116
|
+
**/
|
|
9117
|
+
| { name: 'ExternalProposeMajority'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
9118
|
+
/**
|
|
9119
|
+
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
|
9120
|
+
* schedule an external referendum.
|
|
9121
|
+
*
|
|
9122
|
+
* The dispatch of this call must be `ExternalDefaultOrigin`.
|
|
9123
|
+
*
|
|
9124
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
9125
|
+
*
|
|
9126
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
9127
|
+
* pre-scheduled `external_propose` call.
|
|
9128
|
+
*
|
|
9129
|
+
* Weight: `O(1)`
|
|
9130
|
+
**/
|
|
9131
|
+
| { name: 'ExternalProposeDefault'; params: { proposal: FrameSupportPreimagesBounded } }
|
|
9132
|
+
/**
|
|
9133
|
+
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
|
9134
|
+
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
|
9135
|
+
* but it is not a majority-carries referendum then it fails.
|
|
9136
|
+
*
|
|
9137
|
+
* The dispatch of this call must be `FastTrackOrigin`.
|
|
9138
|
+
*
|
|
9139
|
+
* - `proposal_hash`: The hash of the current external proposal.
|
|
9140
|
+
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
|
9141
|
+
* Must be always greater than zero.
|
|
9142
|
+
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
|
9143
|
+
* - `delay`: The number of block after voting has ended in approval and this should be
|
|
9144
|
+
* enacted. This doesn't have a minimum amount.
|
|
9145
|
+
*
|
|
9146
|
+
* Emits `Started`.
|
|
9147
|
+
*
|
|
9148
|
+
* Weight: `O(1)`
|
|
9149
|
+
**/
|
|
9150
|
+
| { name: 'FastTrack'; params: { proposalHash: H256; votingPeriod: number; delay: number } }
|
|
9151
|
+
/**
|
|
9152
|
+
* Veto and blacklist the external proposal hash.
|
|
9153
|
+
*
|
|
9154
|
+
* The dispatch origin of this call must be `VetoOrigin`.
|
|
9155
|
+
*
|
|
9156
|
+
* - `proposal_hash`: The preimage hash of the proposal to veto and blacklist.
|
|
9157
|
+
*
|
|
9158
|
+
* Emits `Vetoed`.
|
|
9159
|
+
*
|
|
9160
|
+
* Weight: `O(V + log(V))` where V is number of `existing vetoers`
|
|
9161
|
+
**/
|
|
9162
|
+
| { name: 'VetoExternal'; params: { proposalHash: H256 } }
|
|
9163
|
+
/**
|
|
9164
|
+
* Remove a referendum.
|
|
9165
|
+
*
|
|
9166
|
+
* The dispatch origin of this call must be _Root_.
|
|
9167
|
+
*
|
|
9168
|
+
* - `ref_index`: The index of the referendum to cancel.
|
|
9169
|
+
*
|
|
9170
|
+
* # Weight: `O(1)`.
|
|
9171
|
+
**/
|
|
9172
|
+
| { name: 'CancelReferendum'; params: { refIndex: number } }
|
|
9173
|
+
/**
|
|
9174
|
+
* Delegate the voting power (with some given conviction) of the sending account.
|
|
9175
|
+
*
|
|
9176
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
9177
|
+
* time appropriate for the conviction's lock period.
|
|
9178
|
+
*
|
|
9179
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
9180
|
+
* - be delegating already; or
|
|
9181
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
9182
|
+
* through `reap_vote` or `unvote`).
|
|
9183
|
+
*
|
|
9184
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
9185
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
9186
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
9187
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
9188
|
+
* be more than the account's current balance.
|
|
9189
|
+
*
|
|
9190
|
+
* Emits `Delegated`.
|
|
9191
|
+
*
|
|
9192
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
9193
|
+
* voted on. Weight is charged as if maximum votes.
|
|
9194
|
+
**/
|
|
9195
|
+
| { name: 'Delegate'; params: { to: MultiAddressLike; conviction: PalletDemocracyConviction; balance: bigint } }
|
|
9196
|
+
/**
|
|
9197
|
+
* Undelegate the voting power of the sending account.
|
|
9198
|
+
*
|
|
9199
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
9200
|
+
* of the conviction with which the delegation was issued.
|
|
9201
|
+
*
|
|
9202
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
9203
|
+
* currently delegating.
|
|
9204
|
+
*
|
|
9205
|
+
* Emits `Undelegated`.
|
|
9206
|
+
*
|
|
9207
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
9208
|
+
* voted on. Weight is charged as if maximum votes.
|
|
9209
|
+
**/
|
|
9210
|
+
| { name: 'Undelegate' }
|
|
9211
|
+
/**
|
|
9212
|
+
* Clears all public proposals.
|
|
9213
|
+
*
|
|
9214
|
+
* The dispatch origin of this call must be _Root_.
|
|
9215
|
+
*
|
|
9216
|
+
* Weight: `O(1)`.
|
|
9217
|
+
**/
|
|
9218
|
+
| { name: 'ClearPublicProposals' }
|
|
9219
|
+
/**
|
|
9220
|
+
* Unlock tokens that have an expired lock.
|
|
9221
|
+
*
|
|
9222
|
+
* The dispatch origin of this call must be _Signed_.
|
|
9223
|
+
*
|
|
9224
|
+
* - `target`: The account to remove the lock on.
|
|
9225
|
+
*
|
|
9226
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
9227
|
+
**/
|
|
9228
|
+
| { name: 'Unlock'; params: { target: MultiAddressLike } }
|
|
9229
|
+
/**
|
|
9230
|
+
* Remove a vote for a referendum.
|
|
9231
|
+
*
|
|
9232
|
+
* If:
|
|
9233
|
+
* - the referendum was cancelled, or
|
|
9234
|
+
* - the referendum is ongoing, or
|
|
9235
|
+
* - the referendum has ended such that
|
|
9236
|
+
* - the vote of the account was in opposition to the result; or
|
|
9237
|
+
* - there was no conviction to the account's vote; or
|
|
9238
|
+
* - the account made a split vote
|
|
9239
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
9240
|
+
* funds being available.
|
|
9241
|
+
*
|
|
9242
|
+
* If, however, the referendum has ended and:
|
|
9243
|
+
* - it finished corresponding to the vote of the account, and
|
|
9244
|
+
* - the account made a standard vote with conviction, and
|
|
9245
|
+
* - the lock period of the conviction is not over
|
|
9246
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
9247
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
9248
|
+
* of both the amount locked and the time is it locked for).
|
|
9249
|
+
*
|
|
9250
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
9251
|
+
* registered for referendum `index`.
|
|
9252
|
+
*
|
|
9253
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
9254
|
+
*
|
|
9255
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
9256
|
+
* Weight is calculated for the maximum number of vote.
|
|
9257
|
+
**/
|
|
9258
|
+
| { name: 'RemoveVote'; params: { index: number } }
|
|
9259
|
+
/**
|
|
9260
|
+
* Remove a vote for a referendum.
|
|
9261
|
+
*
|
|
9262
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
9263
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
9264
|
+
* either because the referendum was cancelled, because the voter lost the referendum or
|
|
9265
|
+
* because the conviction period is over.
|
|
9266
|
+
*
|
|
9267
|
+
* The dispatch origin of this call must be _Signed_.
|
|
9268
|
+
*
|
|
9269
|
+
* - `target`: The account of the vote to be removed; this account must have voted for
|
|
9270
|
+
* referendum `index`.
|
|
9271
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
9272
|
+
*
|
|
9273
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
9274
|
+
* Weight is calculated for the maximum number of vote.
|
|
9275
|
+
**/
|
|
9276
|
+
| { name: 'RemoveOtherVote'; params: { target: MultiAddressLike; index: number } }
|
|
9277
|
+
/**
|
|
9278
|
+
* Permanently place a proposal into the blacklist. This prevents it from ever being
|
|
9279
|
+
* proposed again.
|
|
9280
|
+
*
|
|
9281
|
+
* If called on a queued public or external proposal, then this will result in it being
|
|
9282
|
+
* removed. If the `ref_index` supplied is an active referendum with the proposal hash,
|
|
9283
|
+
* then it will be cancelled.
|
|
9284
|
+
*
|
|
9285
|
+
* The dispatch origin of this call must be `BlacklistOrigin`.
|
|
9286
|
+
*
|
|
9287
|
+
* - `proposal_hash`: The proposal hash to blacklist permanently.
|
|
9288
|
+
* - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be
|
|
9289
|
+
* cancelled.
|
|
9290
|
+
*
|
|
9291
|
+
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
9292
|
+
* reasonable value).
|
|
9293
|
+
**/
|
|
9294
|
+
| { name: 'Blacklist'; params: { proposalHash: H256; maybeRefIndex?: number | undefined } }
|
|
9295
|
+
/**
|
|
9296
|
+
* Remove a proposal.
|
|
9297
|
+
*
|
|
9298
|
+
* The dispatch origin of this call must be `CancelProposalOrigin`.
|
|
9299
|
+
*
|
|
9300
|
+
* - `prop_index`: The index of the proposal to cancel.
|
|
9301
|
+
*
|
|
9302
|
+
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
|
9303
|
+
**/
|
|
9304
|
+
| { name: 'CancelProposal'; params: { propIndex: number } }
|
|
9305
|
+
/**
|
|
9306
|
+
* Set or clear a metadata of a proposal or a referendum.
|
|
9307
|
+
*
|
|
9308
|
+
* Parameters:
|
|
9309
|
+
* - `origin`: Must correspond to the `MetadataOwner`.
|
|
9310
|
+
* - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
|
|
9311
|
+
* threshold.
|
|
9312
|
+
* - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
|
|
9313
|
+
* threshold.
|
|
9314
|
+
* - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
|
|
9315
|
+
* threshold.
|
|
9316
|
+
* - `Signed` by a creator for a public proposal.
|
|
9317
|
+
* - `Signed` to clear a metadata for a finished referendum.
|
|
9318
|
+
* - `Root` to set a metadata for an ongoing referendum.
|
|
9319
|
+
* - `owner`: an identifier of a metadata owner.
|
|
9320
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
9321
|
+
**/
|
|
9322
|
+
| { name: 'SetMetadata'; params: { owner: PalletDemocracyMetadataOwner; maybeHash?: H256 | undefined } };
|
|
9323
|
+
|
|
9324
|
+
export type FrameSupportPreimagesBounded =
|
|
9325
|
+
| { type: 'Legacy'; value: { hash: H256 } }
|
|
9326
|
+
| { type: 'Inline'; value: Bytes }
|
|
9327
|
+
| { type: 'Lookup'; value: { hash: H256; len: number } };
|
|
9328
|
+
|
|
9329
|
+
export type SpRuntimeBlakeTwo256 = {};
|
|
9330
|
+
|
|
9331
|
+
export type PalletDemocracyConviction =
|
|
9332
|
+
| 'None'
|
|
9333
|
+
| 'Locked1x'
|
|
9334
|
+
| 'Locked2x'
|
|
9335
|
+
| 'Locked3x'
|
|
9336
|
+
| 'Locked4x'
|
|
9337
|
+
| 'Locked5x'
|
|
9338
|
+
| 'Locked6x';
|
|
9339
|
+
|
|
9340
|
+
/**
|
|
9341
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9342
|
+
**/
|
|
9343
|
+
export type PalletTreasuryCall =
|
|
9344
|
+
/**
|
|
9345
|
+
* Put forward a suggestion for spending.
|
|
9346
|
+
*
|
|
9347
|
+
* ## Dispatch Origin
|
|
9348
|
+
*
|
|
9349
|
+
* Must be signed.
|
|
9350
|
+
*
|
|
9351
|
+
* ## Details
|
|
9352
|
+
* A deposit proportional to the value is reserved and slashed if the proposal is rejected.
|
|
9353
|
+
* It is returned once the proposal is awarded.
|
|
9354
|
+
*
|
|
9355
|
+
* ### Complexity
|
|
9356
|
+
* - O(1)
|
|
9357
|
+
*
|
|
9358
|
+
* ## Events
|
|
9359
|
+
*
|
|
9360
|
+
* Emits [`Event::Proposed`] if successful.
|
|
9361
|
+
**/
|
|
9362
|
+
| { name: 'ProposeSpend'; params: { value: bigint; beneficiary: MultiAddress } }
|
|
9363
|
+
/**
|
|
9364
|
+
* Reject a proposed spend.
|
|
9365
|
+
*
|
|
9366
|
+
* ## Dispatch Origin
|
|
9367
|
+
*
|
|
9368
|
+
* Must be [`Config::RejectOrigin`].
|
|
9369
|
+
*
|
|
9370
|
+
* ## Details
|
|
9371
|
+
* The original deposit will be slashed.
|
|
9372
|
+
*
|
|
9373
|
+
* ### Complexity
|
|
9374
|
+
* - O(1)
|
|
9375
|
+
*
|
|
9376
|
+
* ## Events
|
|
9377
|
+
*
|
|
9378
|
+
* Emits [`Event::Rejected`] if successful.
|
|
9379
|
+
**/
|
|
9380
|
+
| { name: 'RejectProposal'; params: { proposalId: number } }
|
|
9381
|
+
/**
|
|
9382
|
+
* Approve a proposal.
|
|
9383
|
+
*
|
|
9384
|
+
* ## Dispatch Origin
|
|
9385
|
+
*
|
|
9386
|
+
* Must be [`Config::ApproveOrigin`].
|
|
9387
|
+
*
|
|
9388
|
+
* ## Details
|
|
9389
|
+
*
|
|
9390
|
+
* At a later time, the proposal will be allocated to the beneficiary and the original
|
|
9391
|
+
* deposit will be returned.
|
|
9392
|
+
*
|
|
9393
|
+
* ### Complexity
|
|
9394
|
+
* - O(1).
|
|
9395
|
+
*
|
|
9396
|
+
* ## Events
|
|
9397
|
+
*
|
|
9398
|
+
* No events are emitted from this dispatch.
|
|
9399
|
+
**/
|
|
9400
|
+
| { name: 'ApproveProposal'; params: { proposalId: number } }
|
|
9401
|
+
/**
|
|
9402
|
+
* Propose and approve a spend of treasury funds.
|
|
9403
|
+
*
|
|
9404
|
+
* ## Dispatch Origin
|
|
9405
|
+
*
|
|
9406
|
+
* Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
|
|
9407
|
+
*
|
|
9408
|
+
* ### Details
|
|
9409
|
+
* NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
|
|
9410
|
+
* beneficiary.
|
|
9411
|
+
*
|
|
9412
|
+
* ### Parameters
|
|
9413
|
+
* - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
|
|
9414
|
+
* - `beneficiary`: The destination account for the transfer.
|
|
9415
|
+
*
|
|
9416
|
+
* ## Events
|
|
9417
|
+
*
|
|
9418
|
+
* Emits [`Event::SpendApproved`] if successful.
|
|
9419
|
+
**/
|
|
9420
|
+
| { name: 'SpendLocal'; params: { amount: bigint; beneficiary: MultiAddress } }
|
|
9421
|
+
/**
|
|
9422
|
+
* Force a previously approved proposal to be removed from the approval queue.
|
|
9423
|
+
*
|
|
9424
|
+
* ## Dispatch Origin
|
|
9425
|
+
*
|
|
9426
|
+
* Must be [`Config::RejectOrigin`].
|
|
9427
|
+
*
|
|
9428
|
+
* ## Details
|
|
9429
|
+
*
|
|
9430
|
+
* The original deposit will no longer be returned.
|
|
9431
|
+
*
|
|
9432
|
+
* ### Parameters
|
|
9433
|
+
* - `proposal_id`: The index of a proposal
|
|
9434
|
+
*
|
|
9435
|
+
* ### Complexity
|
|
9436
|
+
* - O(A) where `A` is the number of approvals
|
|
9437
|
+
*
|
|
9438
|
+
* ### Errors
|
|
9439
|
+
* - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the
|
|
9440
|
+
* approval queue, i.e., the proposal has not been approved. This could also mean the
|
|
9441
|
+
* proposal does not exist altogether, thus there is no way it would have been approved
|
|
9442
|
+
* in the first place.
|
|
9443
|
+
**/
|
|
9444
|
+
| { name: 'RemoveApproval'; params: { proposalId: number } }
|
|
9445
|
+
/**
|
|
9446
|
+
* Propose and approve a spend of treasury funds.
|
|
9447
|
+
*
|
|
9448
|
+
* ## Dispatch Origin
|
|
9449
|
+
*
|
|
9450
|
+
* Must be [`Config::SpendOrigin`] with the `Success` value being at least
|
|
9451
|
+
* `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted
|
|
9452
|
+
* for assertion using the [`Config::BalanceConverter`].
|
|
9453
|
+
*
|
|
9454
|
+
* ## Details
|
|
9455
|
+
*
|
|
9456
|
+
* Create an approved spend for transferring a specific `amount` of `asset_kind` to a
|
|
9457
|
+
* designated beneficiary. The spend must be claimed using the `payout` dispatchable within
|
|
9458
|
+
* the [`Config::PayoutPeriod`].
|
|
9459
|
+
*
|
|
9460
|
+
* ### Parameters
|
|
9461
|
+
* - `asset_kind`: An indicator of the specific asset class to be spent.
|
|
9462
|
+
* - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
|
|
9463
|
+
* - `beneficiary`: The beneficiary of the spend.
|
|
9464
|
+
* - `valid_from`: The block number from which the spend can be claimed. It can refer to
|
|
9465
|
+
* the past if the resulting spend has not yet expired according to the
|
|
9466
|
+
* [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after
|
|
9467
|
+
* approval.
|
|
9468
|
+
*
|
|
9469
|
+
* ## Events
|
|
9470
|
+
*
|
|
9471
|
+
* Emits [`Event::AssetSpendApproved`] if successful.
|
|
9472
|
+
**/
|
|
9473
|
+
| {
|
|
9474
|
+
name: 'Spend';
|
|
9475
|
+
params: { assetKind: []; amount: bigint; beneficiary: AccountId32; validFrom?: number | undefined };
|
|
9476
|
+
}
|
|
9477
|
+
/**
|
|
9478
|
+
* Claim a spend.
|
|
9479
|
+
*
|
|
9480
|
+
* ## Dispatch Origin
|
|
9481
|
+
*
|
|
9482
|
+
* Must be signed.
|
|
9483
|
+
*
|
|
9484
|
+
* ## Details
|
|
9485
|
+
*
|
|
9486
|
+
* Spends must be claimed within some temporal bounds. A spend may be claimed within one
|
|
9487
|
+
* [`Config::PayoutPeriod`] from the `valid_from` block.
|
|
9488
|
+
* In case of a payout failure, the spend status must be updated with the `check_status`
|
|
9489
|
+
* dispatchable before retrying with the current function.
|
|
9490
|
+
*
|
|
9491
|
+
* ### Parameters
|
|
9492
|
+
* - `index`: The spend index.
|
|
9493
|
+
*
|
|
9494
|
+
* ## Events
|
|
9495
|
+
*
|
|
9496
|
+
* Emits [`Event::Paid`] if successful.
|
|
9497
|
+
**/
|
|
9498
|
+
| { name: 'Payout'; params: { index: number } }
|
|
9499
|
+
/**
|
|
9500
|
+
* Check the status of the spend and remove it from the storage if processed.
|
|
9501
|
+
*
|
|
9502
|
+
* ## Dispatch Origin
|
|
9503
|
+
*
|
|
9504
|
+
* Must be signed.
|
|
9505
|
+
*
|
|
9506
|
+
* ## Details
|
|
9507
|
+
*
|
|
9508
|
+
* The status check is a prerequisite for retrying a failed payout.
|
|
9509
|
+
* If a spend has either succeeded or expired, it is removed from the storage by this
|
|
9510
|
+
* function. In such instances, transaction fees are refunded.
|
|
9511
|
+
*
|
|
9512
|
+
* ### Parameters
|
|
9513
|
+
* - `index`: The spend index.
|
|
9514
|
+
*
|
|
9515
|
+
* ## Events
|
|
9516
|
+
*
|
|
9517
|
+
* Emits [`Event::PaymentFailed`] if the spend payout has failed.
|
|
9518
|
+
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
9519
|
+
**/
|
|
9520
|
+
| { name: 'CheckStatus'; params: { index: number } }
|
|
9521
|
+
/**
|
|
9522
|
+
* Void previously approved spend.
|
|
9523
|
+
*
|
|
9524
|
+
* ## Dispatch Origin
|
|
9525
|
+
*
|
|
9526
|
+
* Must be [`Config::RejectOrigin`].
|
|
9527
|
+
*
|
|
9528
|
+
* ## Details
|
|
9529
|
+
*
|
|
9530
|
+
* A spend void is only possible if the payout has not been attempted yet.
|
|
9531
|
+
*
|
|
9532
|
+
* ### Parameters
|
|
9533
|
+
* - `index`: The spend index.
|
|
9534
|
+
*
|
|
9535
|
+
* ## Events
|
|
9536
|
+
*
|
|
9537
|
+
* Emits [`Event::AssetSpendVoided`] if successful.
|
|
9538
|
+
**/
|
|
9539
|
+
| { name: 'VoidSpend'; params: { index: number } };
|
|
9540
|
+
|
|
9541
|
+
export type PalletTreasuryCallLike =
|
|
9542
|
+
/**
|
|
9543
|
+
* Put forward a suggestion for spending.
|
|
9544
|
+
*
|
|
9545
|
+
* ## Dispatch Origin
|
|
9546
|
+
*
|
|
9547
|
+
* Must be signed.
|
|
9548
|
+
*
|
|
9549
|
+
* ## Details
|
|
9550
|
+
* A deposit proportional to the value is reserved and slashed if the proposal is rejected.
|
|
9551
|
+
* It is returned once the proposal is awarded.
|
|
9552
|
+
*
|
|
9553
|
+
* ### Complexity
|
|
9554
|
+
* - O(1)
|
|
9555
|
+
*
|
|
9556
|
+
* ## Events
|
|
9557
|
+
*
|
|
9558
|
+
* Emits [`Event::Proposed`] if successful.
|
|
9559
|
+
**/
|
|
9560
|
+
| { name: 'ProposeSpend'; params: { value: bigint; beneficiary: MultiAddressLike } }
|
|
9561
|
+
/**
|
|
9562
|
+
* Reject a proposed spend.
|
|
9563
|
+
*
|
|
9564
|
+
* ## Dispatch Origin
|
|
9565
|
+
*
|
|
9566
|
+
* Must be [`Config::RejectOrigin`].
|
|
9567
|
+
*
|
|
9568
|
+
* ## Details
|
|
9569
|
+
* The original deposit will be slashed.
|
|
9570
|
+
*
|
|
9571
|
+
* ### Complexity
|
|
9572
|
+
* - O(1)
|
|
9573
|
+
*
|
|
9574
|
+
* ## Events
|
|
9575
|
+
*
|
|
9576
|
+
* Emits [`Event::Rejected`] if successful.
|
|
9577
|
+
**/
|
|
9578
|
+
| { name: 'RejectProposal'; params: { proposalId: number } }
|
|
9579
|
+
/**
|
|
9580
|
+
* Approve a proposal.
|
|
9581
|
+
*
|
|
9582
|
+
* ## Dispatch Origin
|
|
9583
|
+
*
|
|
9584
|
+
* Must be [`Config::ApproveOrigin`].
|
|
9585
|
+
*
|
|
9586
|
+
* ## Details
|
|
9587
|
+
*
|
|
9588
|
+
* At a later time, the proposal will be allocated to the beneficiary and the original
|
|
9589
|
+
* deposit will be returned.
|
|
9590
|
+
*
|
|
9591
|
+
* ### Complexity
|
|
9592
|
+
* - O(1).
|
|
9593
|
+
*
|
|
9594
|
+
* ## Events
|
|
9595
|
+
*
|
|
9596
|
+
* No events are emitted from this dispatch.
|
|
9597
|
+
**/
|
|
9598
|
+
| { name: 'ApproveProposal'; params: { proposalId: number } }
|
|
9599
|
+
/**
|
|
9600
|
+
* Propose and approve a spend of treasury funds.
|
|
9601
|
+
*
|
|
9602
|
+
* ## Dispatch Origin
|
|
9603
|
+
*
|
|
9604
|
+
* Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
|
|
9605
|
+
*
|
|
9606
|
+
* ### Details
|
|
9607
|
+
* NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
|
|
9608
|
+
* beneficiary.
|
|
9609
|
+
*
|
|
9610
|
+
* ### Parameters
|
|
9611
|
+
* - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
|
|
9612
|
+
* - `beneficiary`: The destination account for the transfer.
|
|
9613
|
+
*
|
|
9614
|
+
* ## Events
|
|
9615
|
+
*
|
|
9616
|
+
* Emits [`Event::SpendApproved`] if successful.
|
|
9617
|
+
**/
|
|
9618
|
+
| { name: 'SpendLocal'; params: { amount: bigint; beneficiary: MultiAddressLike } }
|
|
9619
|
+
/**
|
|
9620
|
+
* Force a previously approved proposal to be removed from the approval queue.
|
|
9621
|
+
*
|
|
9622
|
+
* ## Dispatch Origin
|
|
9623
|
+
*
|
|
9624
|
+
* Must be [`Config::RejectOrigin`].
|
|
9625
|
+
*
|
|
9626
|
+
* ## Details
|
|
9627
|
+
*
|
|
9628
|
+
* The original deposit will no longer be returned.
|
|
9629
|
+
*
|
|
9630
|
+
* ### Parameters
|
|
9631
|
+
* - `proposal_id`: The index of a proposal
|
|
9632
|
+
*
|
|
9633
|
+
* ### Complexity
|
|
9634
|
+
* - O(A) where `A` is the number of approvals
|
|
9635
|
+
*
|
|
9636
|
+
* ### Errors
|
|
9637
|
+
* - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the
|
|
9638
|
+
* approval queue, i.e., the proposal has not been approved. This could also mean the
|
|
9639
|
+
* proposal does not exist altogether, thus there is no way it would have been approved
|
|
9640
|
+
* in the first place.
|
|
9641
|
+
**/
|
|
9642
|
+
| { name: 'RemoveApproval'; params: { proposalId: number } }
|
|
9643
|
+
/**
|
|
9644
|
+
* Propose and approve a spend of treasury funds.
|
|
9645
|
+
*
|
|
9646
|
+
* ## Dispatch Origin
|
|
9647
|
+
*
|
|
9648
|
+
* Must be [`Config::SpendOrigin`] with the `Success` value being at least
|
|
9649
|
+
* `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted
|
|
9650
|
+
* for assertion using the [`Config::BalanceConverter`].
|
|
9651
|
+
*
|
|
9652
|
+
* ## Details
|
|
9653
|
+
*
|
|
9654
|
+
* Create an approved spend for transferring a specific `amount` of `asset_kind` to a
|
|
9655
|
+
* designated beneficiary. The spend must be claimed using the `payout` dispatchable within
|
|
9656
|
+
* the [`Config::PayoutPeriod`].
|
|
9657
|
+
*
|
|
9658
|
+
* ### Parameters
|
|
9659
|
+
* - `asset_kind`: An indicator of the specific asset class to be spent.
|
|
9660
|
+
* - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
|
|
9661
|
+
* - `beneficiary`: The beneficiary of the spend.
|
|
9662
|
+
* - `valid_from`: The block number from which the spend can be claimed. It can refer to
|
|
9663
|
+
* the past if the resulting spend has not yet expired according to the
|
|
9664
|
+
* [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after
|
|
9665
|
+
* approval.
|
|
9666
|
+
*
|
|
9667
|
+
* ## Events
|
|
9668
|
+
*
|
|
9669
|
+
* Emits [`Event::AssetSpendApproved`] if successful.
|
|
9670
|
+
**/
|
|
9671
|
+
| {
|
|
9672
|
+
name: 'Spend';
|
|
9673
|
+
params: { assetKind: []; amount: bigint; beneficiary: AccountId32Like; validFrom?: number | undefined };
|
|
9674
|
+
}
|
|
9675
|
+
/**
|
|
9676
|
+
* Claim a spend.
|
|
9677
|
+
*
|
|
9678
|
+
* ## Dispatch Origin
|
|
9679
|
+
*
|
|
9680
|
+
* Must be signed.
|
|
9681
|
+
*
|
|
9682
|
+
* ## Details
|
|
9683
|
+
*
|
|
9684
|
+
* Spends must be claimed within some temporal bounds. A spend may be claimed within one
|
|
9685
|
+
* [`Config::PayoutPeriod`] from the `valid_from` block.
|
|
9686
|
+
* In case of a payout failure, the spend status must be updated with the `check_status`
|
|
9687
|
+
* dispatchable before retrying with the current function.
|
|
9688
|
+
*
|
|
9689
|
+
* ### Parameters
|
|
9690
|
+
* - `index`: The spend index.
|
|
9691
|
+
*
|
|
9692
|
+
* ## Events
|
|
9693
|
+
*
|
|
9694
|
+
* Emits [`Event::Paid`] if successful.
|
|
9695
|
+
**/
|
|
9696
|
+
| { name: 'Payout'; params: { index: number } }
|
|
9697
|
+
/**
|
|
9698
|
+
* Check the status of the spend and remove it from the storage if processed.
|
|
9699
|
+
*
|
|
9700
|
+
* ## Dispatch Origin
|
|
9701
|
+
*
|
|
9702
|
+
* Must be signed.
|
|
9703
|
+
*
|
|
9704
|
+
* ## Details
|
|
9705
|
+
*
|
|
9706
|
+
* The status check is a prerequisite for retrying a failed payout.
|
|
9707
|
+
* If a spend has either succeeded or expired, it is removed from the storage by this
|
|
9708
|
+
* function. In such instances, transaction fees are refunded.
|
|
9709
|
+
*
|
|
9710
|
+
* ### Parameters
|
|
9711
|
+
* - `index`: The spend index.
|
|
9712
|
+
*
|
|
9713
|
+
* ## Events
|
|
9714
|
+
*
|
|
9715
|
+
* Emits [`Event::PaymentFailed`] if the spend payout has failed.
|
|
9716
|
+
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
9717
|
+
**/
|
|
9718
|
+
| { name: 'CheckStatus'; params: { index: number } }
|
|
9719
|
+
/**
|
|
9720
|
+
* Void previously approved spend.
|
|
9721
|
+
*
|
|
9722
|
+
* ## Dispatch Origin
|
|
9723
|
+
*
|
|
9724
|
+
* Must be [`Config::RejectOrigin`].
|
|
9725
|
+
*
|
|
9726
|
+
* ## Details
|
|
9727
|
+
*
|
|
9728
|
+
* A spend void is only possible if the payout has not been attempted yet.
|
|
9729
|
+
*
|
|
9730
|
+
* ### Parameters
|
|
9731
|
+
* - `index`: The spend index.
|
|
9732
|
+
*
|
|
9733
|
+
* ## Events
|
|
9734
|
+
*
|
|
9735
|
+
* Emits [`Event::AssetSpendVoided`] if successful.
|
|
9736
|
+
**/
|
|
9737
|
+
| { name: 'VoidSpend'; params: { index: number } };
|
|
9738
|
+
|
|
9739
|
+
/**
|
|
9740
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9741
|
+
**/
|
|
9742
|
+
export type PalletCollectiveProxyCall =
|
|
9743
|
+
/**
|
|
9744
|
+
* Executes the call on a behalf of an aliased account.
|
|
9745
|
+
*
|
|
9746
|
+
* The `origin` of the call is supposed to be a _collective_ (but can be anything) which can dispatch `call` on behalf of the aliased account.
|
|
9747
|
+
* It's essentially a proxy call that can be made by arbitrary origin type.
|
|
9748
|
+
**/
|
|
9749
|
+
{ name: 'ExecuteCall'; params: { call: AstarRuntimeRuntimeCall } };
|
|
9750
|
+
|
|
9751
|
+
export type PalletCollectiveProxyCallLike =
|
|
9752
|
+
/**
|
|
9753
|
+
* Executes the call on a behalf of an aliased account.
|
|
9754
|
+
*
|
|
9755
|
+
* The `origin` of the call is supposed to be a _collective_ (but can be anything) which can dispatch `call` on behalf of the aliased account.
|
|
9756
|
+
* It's essentially a proxy call that can be made by arbitrary origin type.
|
|
9757
|
+
**/
|
|
9758
|
+
{ name: 'ExecuteCall'; params: { call: AstarRuntimeRuntimeCallLike } };
|
|
9759
|
+
|
|
9760
|
+
/**
|
|
9761
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9762
|
+
**/
|
|
9763
|
+
export type PalletMigrationsCall =
|
|
9764
|
+
/**
|
|
9765
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
9766
|
+
*
|
|
9767
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
9768
|
+
* restarting the migration process in this manner will not call the
|
|
9769
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
9770
|
+
**/
|
|
9771
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
9772
|
+
/**
|
|
9773
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
9774
|
+
*
|
|
9775
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
9776
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
9777
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
9778
|
+
* indicates that the current block number plus one should be used.
|
|
9779
|
+
**/
|
|
9780
|
+
| {
|
|
9781
|
+
name: 'ForceSetActiveCursor';
|
|
9782
|
+
params: { index: number; innerCursor?: Bytes | undefined; startedAt?: number | undefined };
|
|
9783
|
+
}
|
|
9784
|
+
/**
|
|
9785
|
+
* Forces the onboarding of the migrations.
|
|
9786
|
+
*
|
|
9787
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
9788
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
9789
|
+
**/
|
|
9790
|
+
| { name: 'ForceOnboardMbms' }
|
|
9791
|
+
/**
|
|
9792
|
+
* Clears the `Historic` set.
|
|
9793
|
+
*
|
|
9794
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
9795
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
9796
|
+
* way that will result in a sensible weight.
|
|
9797
|
+
**/
|
|
9798
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
9799
|
+
|
|
9800
|
+
export type PalletMigrationsCallLike =
|
|
9801
|
+
/**
|
|
9802
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
9803
|
+
*
|
|
9804
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
9805
|
+
* restarting the migration process in this manner will not call the
|
|
9806
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
9807
|
+
**/
|
|
9808
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
9809
|
+
/**
|
|
9810
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
9811
|
+
*
|
|
9812
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
9813
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
9814
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
9815
|
+
* indicates that the current block number plus one should be used.
|
|
9816
|
+
**/
|
|
9817
|
+
| {
|
|
9818
|
+
name: 'ForceSetActiveCursor';
|
|
9819
|
+
params: { index: number; innerCursor?: BytesLike | undefined; startedAt?: number | undefined };
|
|
9820
|
+
}
|
|
9821
|
+
/**
|
|
9822
|
+
* Forces the onboarding of the migrations.
|
|
9823
|
+
*
|
|
9824
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
9825
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
9826
|
+
**/
|
|
9827
|
+
| { name: 'ForceOnboardMbms' }
|
|
9828
|
+
/**
|
|
9829
|
+
* Clears the `Historic` set.
|
|
9830
|
+
*
|
|
9831
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
9832
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
9833
|
+
* way that will result in a sensible weight.
|
|
9834
|
+
**/
|
|
9835
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
9836
|
+
|
|
9837
|
+
export type PalletMigrationsMigrationCursor =
|
|
9838
|
+
| { type: 'Active'; value: PalletMigrationsActiveCursor }
|
|
9839
|
+
| { type: 'Stuck' };
|
|
9840
|
+
|
|
9841
|
+
export type PalletMigrationsActiveCursor = { index: number; innerCursor?: Bytes | undefined; startedAt: number };
|
|
9842
|
+
|
|
9843
|
+
export type PalletMigrationsHistoricCleanupSelector =
|
|
9844
|
+
| { type: 'Specific'; value: Array<Bytes> }
|
|
9845
|
+
| { type: 'Wildcard'; value: { limit?: number | undefined; previousCursor?: Bytes | undefined } };
|
|
9846
|
+
|
|
9847
|
+
export type AstarRuntimeOriginCaller =
|
|
9848
|
+
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
9849
|
+
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
9850
|
+
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
9851
|
+
| { type: 'Ethereum'; value: PalletEthereumRawOrigin }
|
|
9852
|
+
| { type: 'Council'; value: PalletCollectiveRawOrigin }
|
|
9853
|
+
| { type: 'TechnicalCommittee'; value: PalletCollectiveRawOrigin }
|
|
9854
|
+
| { type: 'CommunityCouncil'; value: PalletCollectiveRawOrigin }
|
|
9855
|
+
| { type: 'Void'; value: SpCoreVoid };
|
|
9856
|
+
|
|
9857
|
+
export type FrameSupportDispatchRawOrigin =
|
|
9858
|
+
| { type: 'Root' }
|
|
9859
|
+
| { type: 'Signed'; value: AccountId32 }
|
|
9860
|
+
| { type: 'None' };
|
|
9861
|
+
|
|
9862
|
+
export type PalletXcmOrigin =
|
|
9863
|
+
| { type: 'Xcm'; value: StagingXcmV4Location }
|
|
9864
|
+
| { type: 'Response'; value: StagingXcmV4Location };
|
|
9865
|
+
|
|
9866
|
+
export type CumulusPalletXcmOrigin =
|
|
9867
|
+
| { type: 'Relay' }
|
|
9868
|
+
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
9869
|
+
|
|
9870
|
+
export type PalletEthereumRawOrigin = { type: 'EthereumTransaction'; value: H160 };
|
|
9871
|
+
|
|
9872
|
+
export type PalletCollectiveRawOrigin =
|
|
9873
|
+
| { type: 'Members'; value: [number, number] }
|
|
9874
|
+
| { type: 'Member'; value: AccountId32 }
|
|
9875
|
+
| { type: 'Phantom' };
|
|
9876
|
+
|
|
9877
|
+
export type SpCoreVoid = null;
|
|
9878
|
+
|
|
9879
|
+
/**
|
|
9880
|
+
* The `Error` enum of this pallet.
|
|
9881
|
+
**/
|
|
9882
|
+
export type PalletUtilityError =
|
|
9883
|
+
/**
|
|
9884
|
+
* Too many calls batched.
|
|
9885
|
+
**/
|
|
9886
|
+
'TooManyCalls';
|
|
9887
|
+
|
|
9888
|
+
export type PalletIdentityRegistration = {
|
|
9889
|
+
judgements: Array<[number, PalletIdentityJudgement]>;
|
|
9890
|
+
deposit: bigint;
|
|
9891
|
+
info: PalletIdentityLegacyIdentityInfo;
|
|
9892
|
+
};
|
|
9893
|
+
|
|
9894
|
+
export type PalletIdentityRegistrarInfo = { account: AccountId32; fee: bigint; fields: bigint };
|
|
9895
|
+
|
|
9896
|
+
export type PalletIdentityAuthorityProperties = { suffix: Bytes; allocation: number };
|
|
9897
|
+
|
|
9898
|
+
/**
|
|
9899
|
+
* The `Error` enum of this pallet.
|
|
9900
|
+
**/
|
|
9901
|
+
export type PalletIdentityError =
|
|
9902
|
+
/**
|
|
9903
|
+
* Too many subs-accounts.
|
|
9904
|
+
**/
|
|
9905
|
+
| 'TooManySubAccounts'
|
|
9906
|
+
/**
|
|
9907
|
+
* Account isn't found.
|
|
9908
|
+
**/
|
|
9909
|
+
| 'NotFound'
|
|
9910
|
+
/**
|
|
9911
|
+
* Account isn't named.
|
|
9912
|
+
**/
|
|
9913
|
+
| 'NotNamed'
|
|
9914
|
+
/**
|
|
9915
|
+
* Empty index.
|
|
9916
|
+
**/
|
|
9917
|
+
| 'EmptyIndex'
|
|
9918
|
+
/**
|
|
9919
|
+
* Fee is changed.
|
|
9920
|
+
**/
|
|
9921
|
+
| 'FeeChanged'
|
|
9922
|
+
/**
|
|
9923
|
+
* No identity found.
|
|
7870
9924
|
**/
|
|
7871
9925
|
| 'NoIdentity'
|
|
7872
9926
|
/**
|
|
@@ -8059,6 +10113,41 @@ export type PalletProxyError =
|
|
|
8059
10113
|
**/
|
|
8060
10114
|
| 'NoSelfProxy';
|
|
8061
10115
|
|
|
10116
|
+
export type PalletSchedulerScheduled = {
|
|
10117
|
+
maybeId?: FixedBytes<32> | undefined;
|
|
10118
|
+
priority: number;
|
|
10119
|
+
call: FrameSupportPreimagesBounded;
|
|
10120
|
+
maybePeriodic?: [number, number] | undefined;
|
|
10121
|
+
origin: AstarRuntimeOriginCaller;
|
|
10122
|
+
};
|
|
10123
|
+
|
|
10124
|
+
export type PalletSchedulerRetryConfig = { totalRetries: number; remaining: number; period: number };
|
|
10125
|
+
|
|
10126
|
+
/**
|
|
10127
|
+
* The `Error` enum of this pallet.
|
|
10128
|
+
**/
|
|
10129
|
+
export type PalletSchedulerError =
|
|
10130
|
+
/**
|
|
10131
|
+
* Failed to schedule a call
|
|
10132
|
+
**/
|
|
10133
|
+
| 'FailedToSchedule'
|
|
10134
|
+
/**
|
|
10135
|
+
* Cannot find the scheduled call.
|
|
10136
|
+
**/
|
|
10137
|
+
| 'NotFound'
|
|
10138
|
+
/**
|
|
10139
|
+
* Given target block number is in the past.
|
|
10140
|
+
**/
|
|
10141
|
+
| 'TargetBlockNumberInPast'
|
|
10142
|
+
/**
|
|
10143
|
+
* Reschedule failed because it does not change scheduled time.
|
|
10144
|
+
**/
|
|
10145
|
+
| 'RescheduleNoChange'
|
|
10146
|
+
/**
|
|
10147
|
+
* Attempt to use a non-named function on a named task.
|
|
10148
|
+
**/
|
|
10149
|
+
| 'Named';
|
|
10150
|
+
|
|
8062
10151
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
8063
10152
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
8064
10153
|
paraHeadHash?: H256 | undefined;
|
|
@@ -8177,17 +10266,21 @@ export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
|
|
|
8177
10266
|
|
|
8178
10267
|
export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
|
|
8179
10268
|
|
|
8180
|
-
export type
|
|
10269
|
+
export type FrameSupportTokensMiscIdAmount = { id: AstarRuntimeRuntimeHoldReason; amount: bigint };
|
|
8181
10270
|
|
|
8182
|
-
export type AstarRuntimeRuntimeHoldReason =
|
|
10271
|
+
export type AstarRuntimeRuntimeHoldReason =
|
|
10272
|
+
| { type: 'Contracts'; value: PalletContractsHoldReason }
|
|
10273
|
+
| { type: 'Preimage'; value: PalletPreimageHoldReason };
|
|
8183
10274
|
|
|
8184
10275
|
export type PalletContractsHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve';
|
|
8185
10276
|
|
|
8186
|
-
export type
|
|
10277
|
+
export type PalletPreimageHoldReason = 'Preimage';
|
|
10278
|
+
|
|
10279
|
+
export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = { id: AstarRuntimeRuntimeFreezeReason; amount: bigint };
|
|
8187
10280
|
|
|
8188
|
-
export type AstarRuntimeRuntimeFreezeReason = { type: 'DappStaking'; value:
|
|
10281
|
+
export type AstarRuntimeRuntimeFreezeReason = { type: 'DappStaking'; value: PalletDappStakingFreezeReason };
|
|
8189
10282
|
|
|
8190
|
-
export type
|
|
10283
|
+
export type PalletDappStakingFreezeReason = 'DAppStaking';
|
|
8191
10284
|
|
|
8192
10285
|
/**
|
|
8193
10286
|
* The `Error` enum of this pallet.
|
|
@@ -8279,82 +10372,78 @@ export type PalletInflationError =
|
|
|
8279
10372
|
**/
|
|
8280
10373
|
'InvalidInflationParameters';
|
|
8281
10374
|
|
|
8282
|
-
export type
|
|
10375
|
+
export type PalletDappStakingProtocolState = {
|
|
8283
10376
|
era: number;
|
|
8284
10377
|
nextEraStart: number;
|
|
8285
|
-
periodInfo:
|
|
10378
|
+
periodInfo: PalletDappStakingPeriodInfo;
|
|
8286
10379
|
maintenance: boolean;
|
|
8287
10380
|
};
|
|
8288
10381
|
|
|
8289
|
-
export type
|
|
10382
|
+
export type PalletDappStakingPeriodInfo = {
|
|
8290
10383
|
number: number;
|
|
8291
|
-
subperiod:
|
|
10384
|
+
subperiod: PalletDappStakingSubperiod;
|
|
8292
10385
|
nextSubperiodStartEra: number;
|
|
8293
10386
|
};
|
|
8294
10387
|
|
|
8295
|
-
export type
|
|
8296
|
-
owner: AccountId32;
|
|
8297
|
-
id: number;
|
|
8298
|
-
rewardBeneficiary?: AccountId32 | undefined;
|
|
8299
|
-
};
|
|
10388
|
+
export type PalletDappStakingDAppInfo = { owner: AccountId32; id: number; rewardBeneficiary?: AccountId32 | undefined };
|
|
8300
10389
|
|
|
8301
|
-
export type
|
|
10390
|
+
export type PalletDappStakingAccountLedger = {
|
|
8302
10391
|
locked: bigint;
|
|
8303
|
-
unlocking: Array<
|
|
8304
|
-
staked:
|
|
8305
|
-
stakedFuture?:
|
|
10392
|
+
unlocking: Array<PalletDappStakingUnlockingChunk>;
|
|
10393
|
+
staked: PalletDappStakingStakeAmount;
|
|
10394
|
+
stakedFuture?: PalletDappStakingStakeAmount | undefined;
|
|
8306
10395
|
contractStakeCount: number;
|
|
8307
10396
|
};
|
|
8308
10397
|
|
|
8309
|
-
export type
|
|
10398
|
+
export type PalletDappStakingUnlockingChunk = { amount: bigint; unlockBlock: number };
|
|
8310
10399
|
|
|
8311
|
-
export type
|
|
10400
|
+
export type PalletDappStakingStakeAmount = { voting: bigint; buildAndEarn: bigint; era: number; period: number };
|
|
8312
10401
|
|
|
8313
|
-
export type
|
|
8314
|
-
previousStaked:
|
|
8315
|
-
staked:
|
|
10402
|
+
export type PalletDappStakingSingularStakingInfo = {
|
|
10403
|
+
previousStaked: PalletDappStakingStakeAmount;
|
|
10404
|
+
staked: PalletDappStakingStakeAmount;
|
|
8316
10405
|
loyalStaker: boolean;
|
|
8317
10406
|
};
|
|
8318
10407
|
|
|
8319
|
-
export type
|
|
8320
|
-
staked:
|
|
8321
|
-
stakedFuture?:
|
|
10408
|
+
export type PalletDappStakingContractStakeAmount = {
|
|
10409
|
+
staked: PalletDappStakingStakeAmount;
|
|
10410
|
+
stakedFuture?: PalletDappStakingStakeAmount | undefined;
|
|
8322
10411
|
};
|
|
8323
10412
|
|
|
8324
|
-
export type
|
|
10413
|
+
export type PalletDappStakingEraInfo = {
|
|
8325
10414
|
totalLocked: bigint;
|
|
8326
10415
|
unlocking: bigint;
|
|
8327
|
-
currentStakeAmount:
|
|
8328
|
-
nextStakeAmount:
|
|
10416
|
+
currentStakeAmount: PalletDappStakingStakeAmount;
|
|
10417
|
+
nextStakeAmount: PalletDappStakingStakeAmount;
|
|
8329
10418
|
};
|
|
8330
10419
|
|
|
8331
|
-
export type
|
|
8332
|
-
span: Array<
|
|
10420
|
+
export type PalletDappStakingEraRewardSpan = {
|
|
10421
|
+
span: Array<PalletDappStakingEraReward>;
|
|
8333
10422
|
firstEra: number;
|
|
8334
10423
|
lastEra: number;
|
|
8335
10424
|
};
|
|
8336
10425
|
|
|
8337
|
-
export type
|
|
10426
|
+
export type PalletDappStakingEraReward = { stakerRewardPool: bigint; staked: bigint; dappRewardPool: bigint };
|
|
8338
10427
|
|
|
8339
|
-
export type
|
|
10428
|
+
export type PalletDappStakingPeriodEndInfo = { bonusRewardPool: bigint; totalVpStake: bigint; finalEra: number };
|
|
8340
10429
|
|
|
8341
|
-
export type
|
|
10430
|
+
export type PalletDappStakingTierParameters = {
|
|
8342
10431
|
rewardPortion: Array<Permill>;
|
|
8343
10432
|
slotDistribution: Array<Permill>;
|
|
8344
|
-
tierThresholds: Array<
|
|
10433
|
+
tierThresholds: Array<PalletDappStakingTierThreshold>;
|
|
8345
10434
|
};
|
|
8346
10435
|
|
|
8347
|
-
export type
|
|
10436
|
+
export type PalletDappStakingTierThreshold =
|
|
8348
10437
|
| { type: 'FixedPercentage'; value: { requiredPercentage: Perbill } }
|
|
8349
10438
|
| { type: 'DynamicPercentage'; value: { percentage: Perbill; minimumRequiredPercentage: Perbill } };
|
|
8350
10439
|
|
|
8351
|
-
export type
|
|
10440
|
+
export type PalletDappStakingTiersConfiguration = {
|
|
8352
10441
|
slotsPerTier: Array<number>;
|
|
8353
10442
|
rewardPortion: Array<Permill>;
|
|
8354
10443
|
tierThresholds: Array<bigint>;
|
|
8355
10444
|
};
|
|
8356
10445
|
|
|
8357
|
-
export type
|
|
10446
|
+
export type PalletDappStakingDAppTierRewards = {
|
|
8358
10447
|
dapps: Array<[number, AstarPrimitivesDappStakingRankedTier]>;
|
|
8359
10448
|
rewards: Array<bigint>;
|
|
8360
10449
|
period: number;
|
|
@@ -8363,16 +10452,12 @@ export type PalletDappStakingV3DAppTierRewards = {
|
|
|
8363
10452
|
|
|
8364
10453
|
export type AstarPrimitivesDappStakingRankedTier = number;
|
|
8365
10454
|
|
|
8366
|
-
export type
|
|
8367
|
-
eraRewardIndex: number;
|
|
8368
|
-
dappTiersIndex: number;
|
|
8369
|
-
oldestValidEra: number;
|
|
8370
|
-
};
|
|
10455
|
+
export type PalletDappStakingCleanupMarker = { eraRewardIndex: number; dappTiersIndex: number; oldestValidEra: number };
|
|
8371
10456
|
|
|
8372
10457
|
/**
|
|
8373
10458
|
* The `Error` enum of this pallet.
|
|
8374
10459
|
**/
|
|
8375
|
-
export type
|
|
10460
|
+
export type PalletDappStakingError =
|
|
8376
10461
|
/**
|
|
8377
10462
|
* Pallet is disabled/in maintenance mode.
|
|
8378
10463
|
**/
|
|
@@ -8514,11 +10599,7 @@ export type PalletDappStakingV3Error =
|
|
|
8514
10599
|
/**
|
|
8515
10600
|
* Force call is not allowed in production.
|
|
8516
10601
|
**/
|
|
8517
|
-
| 'ForceNotAllowed'
|
|
8518
|
-
/**
|
|
8519
|
-
* Account doesn't have the freeze inconsistency
|
|
8520
|
-
**/
|
|
8521
|
-
| 'AccountNotInconsistent';
|
|
10602
|
+
| 'ForceNotAllowed';
|
|
8522
10603
|
|
|
8523
10604
|
export type PalletAssetsAssetDetails = {
|
|
8524
10605
|
owner: AccountId32;
|
|
@@ -8649,7 +10730,11 @@ export type PalletAssetsError =
|
|
|
8649
10730
|
/**
|
|
8650
10731
|
* Callback action resulted in error
|
|
8651
10732
|
**/
|
|
8652
|
-
| 'CallbackFailed'
|
|
10733
|
+
| 'CallbackFailed'
|
|
10734
|
+
/**
|
|
10735
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
10736
|
+
**/
|
|
10737
|
+
| 'BadAssetId';
|
|
8653
10738
|
|
|
8654
10739
|
export type PalletPriceAggregatorValueAggregator = { total: FixedU128; count: number; limitBlock: number };
|
|
8655
10740
|
|
|
@@ -8804,7 +10889,15 @@ export type CumulusPalletXcmpQueueError =
|
|
|
8804
10889
|
/**
|
|
8805
10890
|
* The execution is already resumed.
|
|
8806
10891
|
**/
|
|
8807
|
-
| 'AlreadyResumed'
|
|
10892
|
+
| 'AlreadyResumed'
|
|
10893
|
+
/**
|
|
10894
|
+
* There are too many active outbound channels.
|
|
10895
|
+
**/
|
|
10896
|
+
| 'TooManyActiveOutboundChannels'
|
|
10897
|
+
/**
|
|
10898
|
+
* The message is too big.
|
|
10899
|
+
**/
|
|
10900
|
+
| 'TooBig';
|
|
8808
10901
|
|
|
8809
10902
|
export type PalletXcmQueryStatus =
|
|
8810
10903
|
| {
|
|
@@ -9271,7 +11364,6 @@ export type PalletContractsStorageDeletionQueueManager = { insertCounter: number
|
|
|
9271
11364
|
export type PalletContractsSchedule = {
|
|
9272
11365
|
limits: PalletContractsScheduleLimits;
|
|
9273
11366
|
instructionWeights: PalletContractsScheduleInstructionWeights;
|
|
9274
|
-
hostFnWeights: PalletContractsScheduleHostFnWeights;
|
|
9275
11367
|
};
|
|
9276
11368
|
|
|
9277
11369
|
export type PalletContractsScheduleLimits = {
|
|
@@ -9284,72 +11376,6 @@ export type PalletContractsScheduleLimits = {
|
|
|
9284
11376
|
|
|
9285
11377
|
export type PalletContractsScheduleInstructionWeights = { base: number };
|
|
9286
11378
|
|
|
9287
|
-
export type PalletContractsScheduleHostFnWeights = {
|
|
9288
|
-
caller: SpWeightsWeightV2Weight;
|
|
9289
|
-
isContract: SpWeightsWeightV2Weight;
|
|
9290
|
-
codeHash: SpWeightsWeightV2Weight;
|
|
9291
|
-
ownCodeHash: SpWeightsWeightV2Weight;
|
|
9292
|
-
callerIsOrigin: SpWeightsWeightV2Weight;
|
|
9293
|
-
callerIsRoot: SpWeightsWeightV2Weight;
|
|
9294
|
-
address: SpWeightsWeightV2Weight;
|
|
9295
|
-
gasLeft: SpWeightsWeightV2Weight;
|
|
9296
|
-
balance: SpWeightsWeightV2Weight;
|
|
9297
|
-
valueTransferred: SpWeightsWeightV2Weight;
|
|
9298
|
-
minimumBalance: SpWeightsWeightV2Weight;
|
|
9299
|
-
blockNumber: SpWeightsWeightV2Weight;
|
|
9300
|
-
now: SpWeightsWeightV2Weight;
|
|
9301
|
-
weightToFee: SpWeightsWeightV2Weight;
|
|
9302
|
-
input: SpWeightsWeightV2Weight;
|
|
9303
|
-
inputPerByte: SpWeightsWeightV2Weight;
|
|
9304
|
-
rReturn: SpWeightsWeightV2Weight;
|
|
9305
|
-
returnPerByte: SpWeightsWeightV2Weight;
|
|
9306
|
-
terminate: SpWeightsWeightV2Weight;
|
|
9307
|
-
random: SpWeightsWeightV2Weight;
|
|
9308
|
-
depositEvent: SpWeightsWeightV2Weight;
|
|
9309
|
-
depositEventPerTopic: SpWeightsWeightV2Weight;
|
|
9310
|
-
depositEventPerByte: SpWeightsWeightV2Weight;
|
|
9311
|
-
debugMessage: SpWeightsWeightV2Weight;
|
|
9312
|
-
debugMessagePerByte: SpWeightsWeightV2Weight;
|
|
9313
|
-
setStorage: SpWeightsWeightV2Weight;
|
|
9314
|
-
setStoragePerNewByte: SpWeightsWeightV2Weight;
|
|
9315
|
-
setStoragePerOldByte: SpWeightsWeightV2Weight;
|
|
9316
|
-
setCodeHash: SpWeightsWeightV2Weight;
|
|
9317
|
-
clearStorage: SpWeightsWeightV2Weight;
|
|
9318
|
-
clearStoragePerByte: SpWeightsWeightV2Weight;
|
|
9319
|
-
containsStorage: SpWeightsWeightV2Weight;
|
|
9320
|
-
containsStoragePerByte: SpWeightsWeightV2Weight;
|
|
9321
|
-
getStorage: SpWeightsWeightV2Weight;
|
|
9322
|
-
getStoragePerByte: SpWeightsWeightV2Weight;
|
|
9323
|
-
takeStorage: SpWeightsWeightV2Weight;
|
|
9324
|
-
takeStoragePerByte: SpWeightsWeightV2Weight;
|
|
9325
|
-
transfer: SpWeightsWeightV2Weight;
|
|
9326
|
-
call: SpWeightsWeightV2Weight;
|
|
9327
|
-
delegateCall: SpWeightsWeightV2Weight;
|
|
9328
|
-
callTransferSurcharge: SpWeightsWeightV2Weight;
|
|
9329
|
-
callPerClonedByte: SpWeightsWeightV2Weight;
|
|
9330
|
-
instantiate: SpWeightsWeightV2Weight;
|
|
9331
|
-
instantiateTransferSurcharge: SpWeightsWeightV2Weight;
|
|
9332
|
-
instantiatePerInputByte: SpWeightsWeightV2Weight;
|
|
9333
|
-
instantiatePerSaltByte: SpWeightsWeightV2Weight;
|
|
9334
|
-
hashSha2256: SpWeightsWeightV2Weight;
|
|
9335
|
-
hashSha2256PerByte: SpWeightsWeightV2Weight;
|
|
9336
|
-
hashKeccak256: SpWeightsWeightV2Weight;
|
|
9337
|
-
hashKeccak256PerByte: SpWeightsWeightV2Weight;
|
|
9338
|
-
hashBlake2256: SpWeightsWeightV2Weight;
|
|
9339
|
-
hashBlake2256PerByte: SpWeightsWeightV2Weight;
|
|
9340
|
-
hashBlake2128: SpWeightsWeightV2Weight;
|
|
9341
|
-
hashBlake2128PerByte: SpWeightsWeightV2Weight;
|
|
9342
|
-
ecdsaRecover: SpWeightsWeightV2Weight;
|
|
9343
|
-
ecdsaToEthAddress: SpWeightsWeightV2Weight;
|
|
9344
|
-
sr25519Verify: SpWeightsWeightV2Weight;
|
|
9345
|
-
sr25519VerifyPerByte: SpWeightsWeightV2Weight;
|
|
9346
|
-
reentranceCount: SpWeightsWeightV2Weight;
|
|
9347
|
-
accountReentranceCount: SpWeightsWeightV2Weight;
|
|
9348
|
-
instantiationNonce: SpWeightsWeightV2Weight;
|
|
9349
|
-
lockDelegateDependency: SpWeightsWeightV2Weight;
|
|
9350
|
-
unlockDelegateDependency: SpWeightsWeightV2Weight;
|
|
9351
|
-
};
|
|
9352
|
-
|
|
9353
11379
|
export type PalletContractsEnvironment = {
|
|
9354
11380
|
accountId: PalletContractsEnvironmentType;
|
|
9355
11381
|
balance: PalletContractsEnvironmentTypeU128;
|
|
@@ -9367,8 +11393,6 @@ export type PalletContractsEnvironmentTypeH256 = {};
|
|
|
9367
11393
|
|
|
9368
11394
|
export type PalletContractsEnvironmentTypeBlakeTwo256 = {};
|
|
9369
11395
|
|
|
9370
|
-
export type SpRuntimeBlakeTwo256 = {};
|
|
9371
|
-
|
|
9372
11396
|
export type PalletContractsEnvironmentTypeU64 = {};
|
|
9373
11397
|
|
|
9374
11398
|
export type PalletContractsEnvironmentTypeU32 = {};
|
|
@@ -9482,6 +11506,10 @@ export type PalletContractsError =
|
|
|
9482
11506
|
* contract code execution which is not supported.
|
|
9483
11507
|
**/
|
|
9484
11508
|
| 'ReentranceDenied'
|
|
11509
|
+
/**
|
|
11510
|
+
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
|
11511
|
+
**/
|
|
11512
|
+
| 'StateChangeDenied'
|
|
9485
11513
|
/**
|
|
9486
11514
|
* Origin doesn't have enough balance to pay the required storage deposits.
|
|
9487
11515
|
**/
|
|
@@ -9539,7 +11567,72 @@ export type PalletContractsError =
|
|
|
9539
11567
|
/**
|
|
9540
11568
|
* Can not add a delegate dependency to the code hash of the contract itself.
|
|
9541
11569
|
**/
|
|
9542
|
-
| 'CannotAddSelfAsDelegateDependency'
|
|
11570
|
+
| 'CannotAddSelfAsDelegateDependency'
|
|
11571
|
+
/**
|
|
11572
|
+
* Can not add more data to transient storage.
|
|
11573
|
+
**/
|
|
11574
|
+
| 'OutOfTransientStorage';
|
|
11575
|
+
|
|
11576
|
+
export type PalletPreimageOldRequestStatus =
|
|
11577
|
+
| { type: 'Unrequested'; value: { deposit: [AccountId32, bigint]; len: number } }
|
|
11578
|
+
| {
|
|
11579
|
+
type: 'Requested';
|
|
11580
|
+
value: { deposit?: [AccountId32, bigint] | undefined; count: number; len?: number | undefined };
|
|
11581
|
+
};
|
|
11582
|
+
|
|
11583
|
+
export type PalletPreimageRequestStatus =
|
|
11584
|
+
| { type: 'Unrequested'; value: { ticket: [AccountId32, FrameSupportTokensFungibleHoldConsideration]; len: number } }
|
|
11585
|
+
| {
|
|
11586
|
+
type: 'Requested';
|
|
11587
|
+
value: {
|
|
11588
|
+
maybeTicket?: [AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined;
|
|
11589
|
+
count: number;
|
|
11590
|
+
maybeLen?: number | undefined;
|
|
11591
|
+
};
|
|
11592
|
+
};
|
|
11593
|
+
|
|
11594
|
+
export type FrameSupportTokensFungibleHoldConsideration = bigint;
|
|
11595
|
+
|
|
11596
|
+
/**
|
|
11597
|
+
* The `Error` enum of this pallet.
|
|
11598
|
+
**/
|
|
11599
|
+
export type PalletPreimageError =
|
|
11600
|
+
/**
|
|
11601
|
+
* Preimage is too large to store on-chain.
|
|
11602
|
+
**/
|
|
11603
|
+
| 'TooBig'
|
|
11604
|
+
/**
|
|
11605
|
+
* Preimage has already been noted on-chain.
|
|
11606
|
+
**/
|
|
11607
|
+
| 'AlreadyNoted'
|
|
11608
|
+
/**
|
|
11609
|
+
* The user is not authorized to perform this action.
|
|
11610
|
+
**/
|
|
11611
|
+
| 'NotAuthorized'
|
|
11612
|
+
/**
|
|
11613
|
+
* The preimage cannot be removed since it has not yet been noted.
|
|
11614
|
+
**/
|
|
11615
|
+
| 'NotNoted'
|
|
11616
|
+
/**
|
|
11617
|
+
* A preimage may not be removed when there are outstanding requests.
|
|
11618
|
+
**/
|
|
11619
|
+
| 'Requested'
|
|
11620
|
+
/**
|
|
11621
|
+
* The preimage request cannot be removed since no outstanding requests exist.
|
|
11622
|
+
**/
|
|
11623
|
+
| 'NotRequested'
|
|
11624
|
+
/**
|
|
11625
|
+
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
11626
|
+
**/
|
|
11627
|
+
| 'TooMany'
|
|
11628
|
+
/**
|
|
11629
|
+
* Too few hashes were requested to be upgraded (i.e. zero).
|
|
11630
|
+
**/
|
|
11631
|
+
| 'TooFew'
|
|
11632
|
+
/**
|
|
11633
|
+
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
|
11634
|
+
**/
|
|
11635
|
+
| 'NoCost';
|
|
9543
11636
|
|
|
9544
11637
|
/**
|
|
9545
11638
|
* Error for the Sudo pallet.
|
|
@@ -9550,6 +11643,284 @@ export type PalletSudoError =
|
|
|
9550
11643
|
**/
|
|
9551
11644
|
'RequireSudo';
|
|
9552
11645
|
|
|
11646
|
+
export type PalletCollectiveVotes = {
|
|
11647
|
+
index: number;
|
|
11648
|
+
threshold: number;
|
|
11649
|
+
ayes: Array<AccountId32>;
|
|
11650
|
+
nays: Array<AccountId32>;
|
|
11651
|
+
end: number;
|
|
11652
|
+
};
|
|
11653
|
+
|
|
11654
|
+
/**
|
|
11655
|
+
* The `Error` enum of this pallet.
|
|
11656
|
+
**/
|
|
11657
|
+
export type PalletCollectiveError =
|
|
11658
|
+
/**
|
|
11659
|
+
* Account is not a member
|
|
11660
|
+
**/
|
|
11661
|
+
| 'NotMember'
|
|
11662
|
+
/**
|
|
11663
|
+
* Duplicate proposals not allowed
|
|
11664
|
+
**/
|
|
11665
|
+
| 'DuplicateProposal'
|
|
11666
|
+
/**
|
|
11667
|
+
* Proposal must exist
|
|
11668
|
+
**/
|
|
11669
|
+
| 'ProposalMissing'
|
|
11670
|
+
/**
|
|
11671
|
+
* Mismatched index
|
|
11672
|
+
**/
|
|
11673
|
+
| 'WrongIndex'
|
|
11674
|
+
/**
|
|
11675
|
+
* Duplicate vote ignored
|
|
11676
|
+
**/
|
|
11677
|
+
| 'DuplicateVote'
|
|
11678
|
+
/**
|
|
11679
|
+
* Members are already initialized!
|
|
11680
|
+
**/
|
|
11681
|
+
| 'AlreadyInitialized'
|
|
11682
|
+
/**
|
|
11683
|
+
* The close call was made too early, before the end of the voting.
|
|
11684
|
+
**/
|
|
11685
|
+
| 'TooEarly'
|
|
11686
|
+
/**
|
|
11687
|
+
* There can only be a maximum of `MaxProposals` active proposals.
|
|
11688
|
+
**/
|
|
11689
|
+
| 'TooManyProposals'
|
|
11690
|
+
/**
|
|
11691
|
+
* The given weight bound for the proposal was too low.
|
|
11692
|
+
**/
|
|
11693
|
+
| 'WrongProposalWeight'
|
|
11694
|
+
/**
|
|
11695
|
+
* The given length bound for the proposal was too low.
|
|
11696
|
+
**/
|
|
11697
|
+
| 'WrongProposalLength'
|
|
11698
|
+
/**
|
|
11699
|
+
* Prime account is not a member
|
|
11700
|
+
**/
|
|
11701
|
+
| 'PrimeAccountNotMember';
|
|
11702
|
+
|
|
11703
|
+
export type PalletDemocracyReferendumInfo =
|
|
11704
|
+
| { type: 'Ongoing'; value: PalletDemocracyReferendumStatus }
|
|
11705
|
+
| { type: 'Finished'; value: { approved: boolean; end: number } };
|
|
11706
|
+
|
|
11707
|
+
export type PalletDemocracyReferendumStatus = {
|
|
11708
|
+
end: number;
|
|
11709
|
+
proposal: FrameSupportPreimagesBounded;
|
|
11710
|
+
threshold: PalletDemocracyVoteThreshold;
|
|
11711
|
+
delay: number;
|
|
11712
|
+
tally: PalletDemocracyTally;
|
|
11713
|
+
};
|
|
11714
|
+
|
|
11715
|
+
export type PalletDemocracyTally = { ayes: bigint; nays: bigint; turnout: bigint };
|
|
11716
|
+
|
|
11717
|
+
export type PalletDemocracyVoteVoting =
|
|
11718
|
+
| {
|
|
11719
|
+
type: 'Direct';
|
|
11720
|
+
value: {
|
|
11721
|
+
votes: Array<[number, PalletDemocracyVoteAccountVote]>;
|
|
11722
|
+
delegations: PalletDemocracyDelegations;
|
|
11723
|
+
prior: PalletDemocracyVotePriorLock;
|
|
11724
|
+
};
|
|
11725
|
+
}
|
|
11726
|
+
| {
|
|
11727
|
+
type: 'Delegating';
|
|
11728
|
+
value: {
|
|
11729
|
+
balance: bigint;
|
|
11730
|
+
target: AccountId32;
|
|
11731
|
+
conviction: PalletDemocracyConviction;
|
|
11732
|
+
delegations: PalletDemocracyDelegations;
|
|
11733
|
+
prior: PalletDemocracyVotePriorLock;
|
|
11734
|
+
};
|
|
11735
|
+
};
|
|
11736
|
+
|
|
11737
|
+
export type PalletDemocracyDelegations = { votes: bigint; capital: bigint };
|
|
11738
|
+
|
|
11739
|
+
export type PalletDemocracyVotePriorLock = [number, bigint];
|
|
11740
|
+
|
|
11741
|
+
/**
|
|
11742
|
+
* The `Error` enum of this pallet.
|
|
11743
|
+
**/
|
|
11744
|
+
export type PalletDemocracyError =
|
|
11745
|
+
/**
|
|
11746
|
+
* Value too low
|
|
11747
|
+
**/
|
|
11748
|
+
| 'ValueLow'
|
|
11749
|
+
/**
|
|
11750
|
+
* Proposal does not exist
|
|
11751
|
+
**/
|
|
11752
|
+
| 'ProposalMissing'
|
|
11753
|
+
/**
|
|
11754
|
+
* Cannot cancel the same proposal twice
|
|
11755
|
+
**/
|
|
11756
|
+
| 'AlreadyCanceled'
|
|
11757
|
+
/**
|
|
11758
|
+
* Proposal already made
|
|
11759
|
+
**/
|
|
11760
|
+
| 'DuplicateProposal'
|
|
11761
|
+
/**
|
|
11762
|
+
* Proposal still blacklisted
|
|
11763
|
+
**/
|
|
11764
|
+
| 'ProposalBlacklisted'
|
|
11765
|
+
/**
|
|
11766
|
+
* Next external proposal not simple majority
|
|
11767
|
+
**/
|
|
11768
|
+
| 'NotSimpleMajority'
|
|
11769
|
+
/**
|
|
11770
|
+
* Invalid hash
|
|
11771
|
+
**/
|
|
11772
|
+
| 'InvalidHash'
|
|
11773
|
+
/**
|
|
11774
|
+
* No external proposal
|
|
11775
|
+
**/
|
|
11776
|
+
| 'NoProposal'
|
|
11777
|
+
/**
|
|
11778
|
+
* Identity may not veto a proposal twice
|
|
11779
|
+
**/
|
|
11780
|
+
| 'AlreadyVetoed'
|
|
11781
|
+
/**
|
|
11782
|
+
* Vote given for invalid referendum
|
|
11783
|
+
**/
|
|
11784
|
+
| 'ReferendumInvalid'
|
|
11785
|
+
/**
|
|
11786
|
+
* No proposals waiting
|
|
11787
|
+
**/
|
|
11788
|
+
| 'NoneWaiting'
|
|
11789
|
+
/**
|
|
11790
|
+
* The given account did not vote on the referendum.
|
|
11791
|
+
**/
|
|
11792
|
+
| 'NotVoter'
|
|
11793
|
+
/**
|
|
11794
|
+
* The actor has no permission to conduct the action.
|
|
11795
|
+
**/
|
|
11796
|
+
| 'NoPermission'
|
|
11797
|
+
/**
|
|
11798
|
+
* The account is already delegating.
|
|
11799
|
+
**/
|
|
11800
|
+
| 'AlreadyDelegating'
|
|
11801
|
+
/**
|
|
11802
|
+
* Too high a balance was provided that the account cannot afford.
|
|
11803
|
+
**/
|
|
11804
|
+
| 'InsufficientFunds'
|
|
11805
|
+
/**
|
|
11806
|
+
* The account is not currently delegating.
|
|
11807
|
+
**/
|
|
11808
|
+
| 'NotDelegating'
|
|
11809
|
+
/**
|
|
11810
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
11811
|
+
* these are removed, either through `unvote` or `reap_vote`.
|
|
11812
|
+
**/
|
|
11813
|
+
| 'VotesExist'
|
|
11814
|
+
/**
|
|
11815
|
+
* The instant referendum origin is currently disallowed.
|
|
11816
|
+
**/
|
|
11817
|
+
| 'InstantNotAllowed'
|
|
11818
|
+
/**
|
|
11819
|
+
* Delegation to oneself makes no sense.
|
|
11820
|
+
**/
|
|
11821
|
+
| 'Nonsense'
|
|
11822
|
+
/**
|
|
11823
|
+
* Invalid upper bound.
|
|
11824
|
+
**/
|
|
11825
|
+
| 'WrongUpperBound'
|
|
11826
|
+
/**
|
|
11827
|
+
* Maximum number of votes reached.
|
|
11828
|
+
**/
|
|
11829
|
+
| 'MaxVotesReached'
|
|
11830
|
+
/**
|
|
11831
|
+
* Maximum number of items reached.
|
|
11832
|
+
**/
|
|
11833
|
+
| 'TooMany'
|
|
11834
|
+
/**
|
|
11835
|
+
* Voting period too low
|
|
11836
|
+
**/
|
|
11837
|
+
| 'VotingPeriodLow'
|
|
11838
|
+
/**
|
|
11839
|
+
* The preimage does not exist.
|
|
11840
|
+
**/
|
|
11841
|
+
| 'PreimageNotExist';
|
|
11842
|
+
|
|
11843
|
+
export type PalletTreasuryProposal = { proposer: AccountId32; value: bigint; beneficiary: AccountId32; bond: bigint };
|
|
11844
|
+
|
|
11845
|
+
export type PalletTreasurySpendStatus = {
|
|
11846
|
+
assetKind: [];
|
|
11847
|
+
amount: bigint;
|
|
11848
|
+
beneficiary: AccountId32;
|
|
11849
|
+
validFrom: number;
|
|
11850
|
+
expireAt: number;
|
|
11851
|
+
status: PalletTreasuryPaymentState;
|
|
11852
|
+
};
|
|
11853
|
+
|
|
11854
|
+
export type PalletTreasuryPaymentState =
|
|
11855
|
+
| { type: 'Pending' }
|
|
11856
|
+
| { type: 'Attempted'; value: { id: [] } }
|
|
11857
|
+
| { type: 'Failed' };
|
|
11858
|
+
|
|
11859
|
+
export type FrameSupportPalletId = FixedBytes<8>;
|
|
11860
|
+
|
|
11861
|
+
/**
|
|
11862
|
+
* Error for the treasury pallet.
|
|
11863
|
+
**/
|
|
11864
|
+
export type PalletTreasuryError =
|
|
11865
|
+
/**
|
|
11866
|
+
* Proposer's balance is too low.
|
|
11867
|
+
**/
|
|
11868
|
+
| 'InsufficientProposersBalance'
|
|
11869
|
+
/**
|
|
11870
|
+
* No proposal, bounty or spend at that index.
|
|
11871
|
+
**/
|
|
11872
|
+
| 'InvalidIndex'
|
|
11873
|
+
/**
|
|
11874
|
+
* Too many approvals in the queue.
|
|
11875
|
+
**/
|
|
11876
|
+
| 'TooManyApprovals'
|
|
11877
|
+
/**
|
|
11878
|
+
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
11879
|
+
* amount to be spent.
|
|
11880
|
+
**/
|
|
11881
|
+
| 'InsufficientPermission'
|
|
11882
|
+
/**
|
|
11883
|
+
* Proposal has not been approved.
|
|
11884
|
+
**/
|
|
11885
|
+
| 'ProposalNotApproved'
|
|
11886
|
+
/**
|
|
11887
|
+
* The balance of the asset kind is not convertible to the balance of the native asset.
|
|
11888
|
+
**/
|
|
11889
|
+
| 'FailedToConvertBalance'
|
|
11890
|
+
/**
|
|
11891
|
+
* The spend has expired and cannot be claimed.
|
|
11892
|
+
**/
|
|
11893
|
+
| 'SpendExpired'
|
|
11894
|
+
/**
|
|
11895
|
+
* The spend is not yet eligible for payout.
|
|
11896
|
+
**/
|
|
11897
|
+
| 'EarlyPayout'
|
|
11898
|
+
/**
|
|
11899
|
+
* The payment has already been attempted.
|
|
11900
|
+
**/
|
|
11901
|
+
| 'AlreadyAttempted'
|
|
11902
|
+
/**
|
|
11903
|
+
* There was some issue with the mechanism of payment.
|
|
11904
|
+
**/
|
|
11905
|
+
| 'PayoutError'
|
|
11906
|
+
/**
|
|
11907
|
+
* The payout was not yet attempted/claimed.
|
|
11908
|
+
**/
|
|
11909
|
+
| 'NotAttempted'
|
|
11910
|
+
/**
|
|
11911
|
+
* The payment has neither failed nor succeeded yet.
|
|
11912
|
+
**/
|
|
11913
|
+
| 'Inconclusive';
|
|
11914
|
+
|
|
11915
|
+
/**
|
|
11916
|
+
* The `Error` enum of this pallet.
|
|
11917
|
+
**/
|
|
11918
|
+
export type PalletMigrationsError =
|
|
11919
|
+
/**
|
|
11920
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
11921
|
+
**/
|
|
11922
|
+
'Ongoing';
|
|
11923
|
+
|
|
9553
11924
|
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
9554
11925
|
|
|
9555
11926
|
export type FrameSystemExtensionsCheckTxVersion = {};
|
|
@@ -9702,7 +12073,7 @@ export type PalletContractsPrimitivesCodeUploadReturnValue = { codeHash: H256; d
|
|
|
9702
12073
|
|
|
9703
12074
|
export type PalletContractsPrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed' | 'MigrationInProgress';
|
|
9704
12075
|
|
|
9705
|
-
export type
|
|
12076
|
+
export type XcmRuntimeApisFeesError =
|
|
9706
12077
|
| 'Unimplemented'
|
|
9707
12078
|
| 'VersionedConversionFailed'
|
|
9708
12079
|
| 'WeightNotComputable'
|
|
@@ -9710,17 +12081,43 @@ export type XcmFeePaymentRuntimeApiError =
|
|
|
9710
12081
|
| 'AssetNotFound'
|
|
9711
12082
|
| 'Unroutable';
|
|
9712
12083
|
|
|
12084
|
+
export type XcmRuntimeApisDryRunCallDryRunEffects = {
|
|
12085
|
+
executionResult: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
12086
|
+
emittedEvents: Array<AstarRuntimeRuntimeEvent>;
|
|
12087
|
+
localXcm?: XcmVersionedXcm | undefined;
|
|
12088
|
+
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
12089
|
+
};
|
|
12090
|
+
|
|
12091
|
+
export type FrameSupportDispatchPostDispatchInfo = {
|
|
12092
|
+
actualWeight?: SpWeightsWeightV2Weight | undefined;
|
|
12093
|
+
paysFee: FrameSupportDispatchPays;
|
|
12094
|
+
};
|
|
12095
|
+
|
|
12096
|
+
export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
12097
|
+
postInfo: FrameSupportDispatchPostDispatchInfo;
|
|
12098
|
+
error: DispatchError;
|
|
12099
|
+
};
|
|
12100
|
+
|
|
12101
|
+
export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
|
|
12102
|
+
|
|
12103
|
+
export type XcmRuntimeApisDryRunXcmDryRunEffects = {
|
|
12104
|
+
executionResult: StagingXcmV4TraitsOutcome;
|
|
12105
|
+
emittedEvents: Array<AstarRuntimeRuntimeEvent>;
|
|
12106
|
+
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
12107
|
+
};
|
|
12108
|
+
|
|
9713
12109
|
export type AstarRuntimeRuntimeError =
|
|
9714
12110
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
9715
12111
|
| { pallet: 'Utility'; palletError: PalletUtilityError }
|
|
9716
12112
|
| { pallet: 'Identity'; palletError: PalletIdentityError }
|
|
9717
12113
|
| { pallet: 'Multisig'; palletError: PalletMultisigError }
|
|
9718
12114
|
| { pallet: 'Proxy'; palletError: PalletProxyError }
|
|
12115
|
+
| { pallet: 'Scheduler'; palletError: PalletSchedulerError }
|
|
9719
12116
|
| { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
|
|
9720
12117
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
|
9721
12118
|
| { pallet: 'Vesting'; palletError: PalletVestingError }
|
|
9722
12119
|
| { pallet: 'Inflation'; palletError: PalletInflationError }
|
|
9723
|
-
| { pallet: 'DappStaking'; palletError:
|
|
12120
|
+
| { pallet: 'DappStaking'; palletError: PalletDappStakingError }
|
|
9724
12121
|
| { pallet: 'Assets'; palletError: PalletAssetsError }
|
|
9725
12122
|
| { pallet: 'Oracle'; palletError: OrmlOracleModuleError }
|
|
9726
12123
|
| { pallet: 'OracleMembership'; palletError: PalletMembershipError }
|
|
@@ -9735,4 +12132,15 @@ export type AstarRuntimeRuntimeError =
|
|
|
9735
12132
|
| { pallet: 'Ethereum'; palletError: PalletEthereumError }
|
|
9736
12133
|
| { pallet: 'DynamicEvmBaseFee'; palletError: PalletDynamicEvmBaseFeeError }
|
|
9737
12134
|
| { pallet: 'Contracts'; palletError: PalletContractsError }
|
|
9738
|
-
| { pallet: '
|
|
12135
|
+
| { pallet: 'Preimage'; palletError: PalletPreimageError }
|
|
12136
|
+
| { pallet: 'Sudo'; palletError: PalletSudoError }
|
|
12137
|
+
| { pallet: 'CouncilMembership'; palletError: PalletMembershipError }
|
|
12138
|
+
| { pallet: 'TechnicalCommitteeMembership'; palletError: PalletMembershipError }
|
|
12139
|
+
| { pallet: 'CommunityCouncilMembership'; palletError: PalletMembershipError }
|
|
12140
|
+
| { pallet: 'Council'; palletError: PalletCollectiveError }
|
|
12141
|
+
| { pallet: 'TechnicalCommittee'; palletError: PalletCollectiveError }
|
|
12142
|
+
| { pallet: 'CommunityCouncil'; palletError: PalletCollectiveError }
|
|
12143
|
+
| { pallet: 'Democracy'; palletError: PalletDemocracyError }
|
|
12144
|
+
| { pallet: 'Treasury'; palletError: PalletTreasuryError }
|
|
12145
|
+
| { pallet: 'CommunityTreasury'; palletError: PalletTreasuryError }
|
|
12146
|
+
| { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError };
|