@polkadot/api-augment 7.4.2-9 → 7.5.2-10
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/kusama/consts.d.ts +5 -1
- package/kusama/errors.d.ts +32 -0
- package/kusama/query.d.ts +14 -15
- package/kusama/tx.d.ts +14 -5
- package/package.json +7 -7
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +5 -1
- package/polkadot/errors.d.ts +32 -0
- package/polkadot/query.d.ts +14 -15
- package/polkadot/tx.d.ts +14 -5
- package/substrate/consts.d.ts +5 -1
- package/substrate/query.d.ts +22 -1
package/kusama/consts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
2
|
+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
5
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
|
@@ -854,6 +854,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
854
854
|
* An accepted proposal gets these back. A rejected proposal does not.
|
|
855
855
|
**/
|
|
856
856
|
proposalBond: Permill & AugmentedConst<ApiType>;
|
|
857
|
+
/**
|
|
858
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
859
|
+
**/
|
|
860
|
+
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
|
857
861
|
/**
|
|
858
862
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
859
863
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -692,6 +692,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
692
692
|
* The requested maximum message size is 0.
|
|
693
693
|
**/
|
|
694
694
|
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
|
695
|
+
/**
|
|
696
|
+
* The provided witness data is wrong.
|
|
697
|
+
**/
|
|
698
|
+
WrongWitness: AugmentedError<ApiType>;
|
|
695
699
|
/**
|
|
696
700
|
* Generic error
|
|
697
701
|
**/
|
|
@@ -870,6 +874,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
870
874
|
[key: string]: AugmentedError<ApiType>;
|
|
871
875
|
};
|
|
872
876
|
paraInclusion: {
|
|
877
|
+
/**
|
|
878
|
+
* Bitfield consists of zeros only.
|
|
879
|
+
**/
|
|
880
|
+
BitfieldAllZeros: AugmentedError<ApiType>;
|
|
873
881
|
/**
|
|
874
882
|
* Multiple bitfields submitted by same validator or validators out of order by index.
|
|
875
883
|
**/
|
|
@@ -949,10 +957,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
949
957
|
* Scheduled cores out of order.
|
|
950
958
|
**/
|
|
951
959
|
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
|
960
|
+
/**
|
|
961
|
+
* A different relay parent was provided compared to the on-chain stored one.
|
|
962
|
+
**/
|
|
963
|
+
UnexpectedRelayParent: AugmentedError<ApiType>;
|
|
952
964
|
/**
|
|
953
965
|
* Candidate submitted but para not scheduled.
|
|
954
966
|
**/
|
|
955
967
|
UnscheduledCandidate: AugmentedError<ApiType>;
|
|
968
|
+
/**
|
|
969
|
+
* Backed candidates are out of order (core index) or contain duplicates.
|
|
970
|
+
**/
|
|
971
|
+
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
|
|
972
|
+
/**
|
|
973
|
+
* Dispute statement sets are out of order or contain duplicates.
|
|
974
|
+
**/
|
|
975
|
+
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
|
|
976
|
+
/**
|
|
977
|
+
* Validator indices are out of order or contains duplicates.
|
|
978
|
+
**/
|
|
979
|
+
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
|
|
956
980
|
/**
|
|
957
981
|
* The validation data hash does not match expected.
|
|
958
982
|
**/
|
|
@@ -979,6 +1003,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
979
1003
|
* Disputed candidate that was concluded invalid.
|
|
980
1004
|
**/
|
|
981
1005
|
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
|
1006
|
+
/**
|
|
1007
|
+
* A dispute statement was invalid.
|
|
1008
|
+
**/
|
|
1009
|
+
DisputeInvalid: AugmentedError<ApiType>;
|
|
1010
|
+
/**
|
|
1011
|
+
* The ordering of dispute statements was invalid.
|
|
1012
|
+
**/
|
|
1013
|
+
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
|
|
982
1014
|
/**
|
|
983
1015
|
* The data given to the inherent will result in an overweight block.
|
|
984
1016
|
**/
|
package/kusama/query.d.ts
CHANGED
|
@@ -595,13 +595,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
595
595
|
recipient?: any;
|
|
596
596
|
} | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
597
597
|
/**
|
|
598
|
-
* Maintains a mapping that can be used to answer the question:
|
|
599
|
-
*
|
|
600
|
-
* Invariants:
|
|
598
|
+
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
|
599
|
+
* the given block number for a given receiver. Invariants:
|
|
601
600
|
* - The inner `Vec<ParaId>` is never empty.
|
|
602
601
|
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
|
603
|
-
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
604
|
-
* block number.
|
|
602
|
+
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
603
|
+
* same block number.
|
|
605
604
|
**/
|
|
606
605
|
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
607
606
|
/**
|
|
@@ -614,8 +613,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
614
613
|
recipient?: any;
|
|
615
614
|
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
616
615
|
/**
|
|
617
|
-
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
618
|
-
* Used for checking if a given channel is registered for closure.
|
|
616
|
+
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
617
|
+
* change. Used for checking if a given channel is registered for closure.
|
|
619
618
|
*
|
|
620
619
|
* The set is accompanied by a list for iteration.
|
|
621
620
|
*
|
|
@@ -629,25 +628,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
629
628
|
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
630
629
|
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
631
630
|
/**
|
|
632
|
-
* Ingress/egress indexes allow to find all the senders and receivers given the opposite
|
|
633
|
-
*
|
|
631
|
+
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
|
632
|
+
* I.e.
|
|
634
633
|
*
|
|
635
634
|
* (a) ingress index allows to find all the senders for a given recipient.
|
|
636
635
|
* (b) egress index allows to find all the recipients for a given sender.
|
|
637
636
|
*
|
|
638
637
|
* Invariants:
|
|
639
|
-
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
640
|
-
* as `(I, P)`.
|
|
641
|
-
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
642
|
-
* as `(P, E)`.
|
|
638
|
+
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
639
|
+
* `HrmpChannels` as `(I, P)`.
|
|
640
|
+
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
641
|
+
* `HrmpChannels` as `(P, E)`.
|
|
643
642
|
* - there should be no other dangling channels in `HrmpChannels`.
|
|
644
643
|
* - the vectors are sorted.
|
|
645
644
|
**/
|
|
646
645
|
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
647
646
|
/**
|
|
648
647
|
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
|
649
|
-
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
650
|
-
* as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
648
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
649
|
+
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
651
650
|
**/
|
|
652
651
|
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
653
652
|
/**
|
package/kusama/tx.d.ts
CHANGED
|
@@ -1498,22 +1498,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1498
1498
|
* you to trigger the cleanup immediately for a specific parachain.
|
|
1499
1499
|
*
|
|
1500
1500
|
* Origin must be Root.
|
|
1501
|
+
*
|
|
1502
|
+
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
|
1501
1503
|
**/
|
|
1502
|
-
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1504
|
+
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
|
1503
1505
|
/**
|
|
1504
1506
|
* Force process HRMP close channel requests.
|
|
1505
1507
|
*
|
|
1506
1508
|
* If there are pending HRMP close channel requests, you can use this
|
|
1507
1509
|
* function process all of those requests immediately.
|
|
1510
|
+
*
|
|
1511
|
+
* Total number of closing channels must be provided as witness data of weighing.
|
|
1508
1512
|
**/
|
|
1509
|
-
forceProcessHrmpClose: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1513
|
+
forceProcessHrmpClose: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1510
1514
|
/**
|
|
1511
1515
|
* Force process HRMP open channel requests.
|
|
1512
1516
|
*
|
|
1513
1517
|
* If there are pending HRMP open channel requests, you can use this
|
|
1514
1518
|
* function process all of those requests immediately.
|
|
1519
|
+
*
|
|
1520
|
+
* Total number of opening channels must be provided as witness data of weighing.
|
|
1515
1521
|
**/
|
|
1516
|
-
forceProcessHrmpOpen: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1522
|
+
forceProcessHrmpOpen: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1517
1523
|
/**
|
|
1518
1524
|
* Accept a pending open channel request from the given sender.
|
|
1519
1525
|
*
|
|
@@ -1521,16 +1527,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1521
1527
|
**/
|
|
1522
1528
|
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1523
1529
|
/**
|
|
1524
|
-
* This cancels a pending open channel request. It can be canceled
|
|
1530
|
+
* This cancels a pending open channel request. It can be canceled by either of the sender
|
|
1525
1531
|
* or the recipient for that request. The origin must be either of those.
|
|
1526
1532
|
*
|
|
1527
1533
|
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
|
1528
1534
|
* already accepted.
|
|
1535
|
+
*
|
|
1536
|
+
* Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as
|
|
1537
|
+
* witness data.
|
|
1529
1538
|
**/
|
|
1530
1539
|
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | {
|
|
1531
1540
|
sender?: any;
|
|
1532
1541
|
recipient?: any;
|
|
1533
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
1542
|
+
} | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
|
|
1534
1543
|
/**
|
|
1535
1544
|
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
|
1536
1545
|
* recipient in the channel being closed.
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.
|
|
23
|
+
"version": "7.5.2-10",
|
|
24
24
|
"main": "index.cjs",
|
|
25
25
|
"module": "index.js",
|
|
26
26
|
"types": "index.d.ts",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
},
|
|
152
152
|
"dependencies": {
|
|
153
153
|
"@babel/runtime": "^7.16.7",
|
|
154
|
-
"@polkadot/api-base": "7.
|
|
155
|
-
"@polkadot/rpc-augment": "7.
|
|
156
|
-
"@polkadot/types": "7.
|
|
157
|
-
"@polkadot/types-augment": "7.
|
|
158
|
-
"@polkadot/types-codec": "7.
|
|
159
|
-
"@polkadot/util": "^8.3.
|
|
154
|
+
"@polkadot/api-base": "7.5.2-10",
|
|
155
|
+
"@polkadot/rpc-augment": "7.5.2-10",
|
|
156
|
+
"@polkadot/types": "7.5.2-10",
|
|
157
|
+
"@polkadot/types-augment": "7.5.2-10",
|
|
158
|
+
"@polkadot/types-codec": "7.5.2-10",
|
|
159
|
+
"@polkadot/util": "^8.3.3"
|
|
160
160
|
}
|
|
161
161
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/polkadot/consts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
2
|
+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
5
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
|
@@ -726,6 +726,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
726
726
|
* An accepted proposal gets these back. A rejected proposal does not.
|
|
727
727
|
**/
|
|
728
728
|
proposalBond: Permill & AugmentedConst<ApiType>;
|
|
729
|
+
/**
|
|
730
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
731
|
+
**/
|
|
732
|
+
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
|
729
733
|
/**
|
|
730
734
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
731
735
|
**/
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -653,6 +653,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
653
653
|
* The requested maximum message size is 0.
|
|
654
654
|
**/
|
|
655
655
|
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
|
656
|
+
/**
|
|
657
|
+
* The provided witness data is wrong.
|
|
658
|
+
**/
|
|
659
|
+
WrongWitness: AugmentedError<ApiType>;
|
|
656
660
|
/**
|
|
657
661
|
* Generic error
|
|
658
662
|
**/
|
|
@@ -831,6 +835,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
831
835
|
[key: string]: AugmentedError<ApiType>;
|
|
832
836
|
};
|
|
833
837
|
paraInclusion: {
|
|
838
|
+
/**
|
|
839
|
+
* Bitfield consists of zeros only.
|
|
840
|
+
**/
|
|
841
|
+
BitfieldAllZeros: AugmentedError<ApiType>;
|
|
834
842
|
/**
|
|
835
843
|
* Multiple bitfields submitted by same validator or validators out of order by index.
|
|
836
844
|
**/
|
|
@@ -910,10 +918,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
910
918
|
* Scheduled cores out of order.
|
|
911
919
|
**/
|
|
912
920
|
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
|
921
|
+
/**
|
|
922
|
+
* A different relay parent was provided compared to the on-chain stored one.
|
|
923
|
+
**/
|
|
924
|
+
UnexpectedRelayParent: AugmentedError<ApiType>;
|
|
913
925
|
/**
|
|
914
926
|
* Candidate submitted but para not scheduled.
|
|
915
927
|
**/
|
|
916
928
|
UnscheduledCandidate: AugmentedError<ApiType>;
|
|
929
|
+
/**
|
|
930
|
+
* Backed candidates are out of order (core index) or contain duplicates.
|
|
931
|
+
**/
|
|
932
|
+
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
|
|
933
|
+
/**
|
|
934
|
+
* Dispute statement sets are out of order or contain duplicates.
|
|
935
|
+
**/
|
|
936
|
+
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
|
|
937
|
+
/**
|
|
938
|
+
* Validator indices are out of order or contains duplicates.
|
|
939
|
+
**/
|
|
940
|
+
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
|
|
917
941
|
/**
|
|
918
942
|
* The validation data hash does not match expected.
|
|
919
943
|
**/
|
|
@@ -940,6 +964,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
940
964
|
* Disputed candidate that was concluded invalid.
|
|
941
965
|
**/
|
|
942
966
|
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
|
967
|
+
/**
|
|
968
|
+
* A dispute statement was invalid.
|
|
969
|
+
**/
|
|
970
|
+
DisputeInvalid: AugmentedError<ApiType>;
|
|
971
|
+
/**
|
|
972
|
+
* The ordering of dispute statements was invalid.
|
|
973
|
+
**/
|
|
974
|
+
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
|
|
943
975
|
/**
|
|
944
976
|
* The data given to the inherent will result in an overweight block.
|
|
945
977
|
**/
|
package/polkadot/query.d.ts
CHANGED
|
@@ -569,13 +569,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
569
569
|
recipient?: any;
|
|
570
570
|
} | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
571
571
|
/**
|
|
572
|
-
* Maintains a mapping that can be used to answer the question:
|
|
573
|
-
*
|
|
574
|
-
* Invariants:
|
|
572
|
+
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
|
573
|
+
* the given block number for a given receiver. Invariants:
|
|
575
574
|
* - The inner `Vec<ParaId>` is never empty.
|
|
576
575
|
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
|
577
|
-
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
578
|
-
* block number.
|
|
576
|
+
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
577
|
+
* same block number.
|
|
579
578
|
**/
|
|
580
579
|
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
581
580
|
/**
|
|
@@ -588,8 +587,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
588
587
|
recipient?: any;
|
|
589
588
|
} | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
590
589
|
/**
|
|
591
|
-
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
592
|
-
* Used for checking if a given channel is registered for closure.
|
|
590
|
+
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
591
|
+
* change. Used for checking if a given channel is registered for closure.
|
|
593
592
|
*
|
|
594
593
|
* The set is accompanied by a list for iteration.
|
|
595
594
|
*
|
|
@@ -603,25 +602,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
603
602
|
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
604
603
|
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
605
604
|
/**
|
|
606
|
-
* Ingress/egress indexes allow to find all the senders and receivers given the opposite
|
|
607
|
-
*
|
|
605
|
+
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
|
606
|
+
* I.e.
|
|
608
607
|
*
|
|
609
608
|
* (a) ingress index allows to find all the senders for a given recipient.
|
|
610
609
|
* (b) egress index allows to find all the recipients for a given sender.
|
|
611
610
|
*
|
|
612
611
|
* Invariants:
|
|
613
|
-
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
614
|
-
* as `(I, P)`.
|
|
615
|
-
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
616
|
-
* as `(P, E)`.
|
|
612
|
+
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
613
|
+
* `HrmpChannels` as `(I, P)`.
|
|
614
|
+
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
615
|
+
* `HrmpChannels` as `(P, E)`.
|
|
617
616
|
* - there should be no other dangling channels in `HrmpChannels`.
|
|
618
617
|
* - the vectors are sorted.
|
|
619
618
|
**/
|
|
620
619
|
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
621
620
|
/**
|
|
622
621
|
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
|
623
|
-
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
624
|
-
* as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
622
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
623
|
+
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
625
624
|
**/
|
|
626
625
|
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
627
626
|
/**
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -1447,22 +1447,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1447
1447
|
* you to trigger the cleanup immediately for a specific parachain.
|
|
1448
1448
|
*
|
|
1449
1449
|
* Origin must be Root.
|
|
1450
|
+
*
|
|
1451
|
+
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
|
1450
1452
|
**/
|
|
1451
|
-
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1453
|
+
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
|
1452
1454
|
/**
|
|
1453
1455
|
* Force process HRMP close channel requests.
|
|
1454
1456
|
*
|
|
1455
1457
|
* If there are pending HRMP close channel requests, you can use this
|
|
1456
1458
|
* function process all of those requests immediately.
|
|
1459
|
+
*
|
|
1460
|
+
* Total number of closing channels must be provided as witness data of weighing.
|
|
1457
1461
|
**/
|
|
1458
|
-
forceProcessHrmpClose: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1462
|
+
forceProcessHrmpClose: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1459
1463
|
/**
|
|
1460
1464
|
* Force process HRMP open channel requests.
|
|
1461
1465
|
*
|
|
1462
1466
|
* If there are pending HRMP open channel requests, you can use this
|
|
1463
1467
|
* function process all of those requests immediately.
|
|
1468
|
+
*
|
|
1469
|
+
* Total number of opening channels must be provided as witness data of weighing.
|
|
1464
1470
|
**/
|
|
1465
|
-
forceProcessHrmpOpen: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1471
|
+
forceProcessHrmpOpen: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1466
1472
|
/**
|
|
1467
1473
|
* Accept a pending open channel request from the given sender.
|
|
1468
1474
|
*
|
|
@@ -1470,16 +1476,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1470
1476
|
**/
|
|
1471
1477
|
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1472
1478
|
/**
|
|
1473
|
-
* This cancels a pending open channel request. It can be canceled
|
|
1479
|
+
* This cancels a pending open channel request. It can be canceled by either of the sender
|
|
1474
1480
|
* or the recipient for that request. The origin must be either of those.
|
|
1475
1481
|
*
|
|
1476
1482
|
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
|
1477
1483
|
* already accepted.
|
|
1484
|
+
*
|
|
1485
|
+
* Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as
|
|
1486
|
+
* witness data.
|
|
1478
1487
|
**/
|
|
1479
1488
|
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | {
|
|
1480
1489
|
sender?: any;
|
|
1481
1490
|
recipient?: any;
|
|
1482
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
1491
|
+
} | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
|
|
1483
1492
|
/**
|
|
1484
1493
|
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
|
1485
1494
|
* recipient in the channel being closed.
|
package/substrate/consts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
2
|
+
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
5
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
|
@@ -898,6 +898,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
898
898
|
* An accepted proposal gets these back. A rejected proposal does not.
|
|
899
899
|
**/
|
|
900
900
|
proposalBond: Permill & AugmentedConst<ApiType>;
|
|
901
|
+
/**
|
|
902
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
903
|
+
**/
|
|
904
|
+
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
|
901
905
|
/**
|
|
902
906
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
903
907
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -189,8 +189,29 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
189
189
|
};
|
|
190
190
|
balances: {
|
|
191
191
|
/**
|
|
192
|
-
* The balance of an account.
|
|
192
|
+
* The Balances pallet example of storing the balance of an account.
|
|
193
193
|
*
|
|
194
|
+
* # Example
|
|
195
|
+
*
|
|
196
|
+
* ```nocompile
|
|
197
|
+
* impl pallet_balances::Config for Runtime {
|
|
198
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
199
|
+
* }
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
203
|
+
*
|
|
204
|
+
* # Example
|
|
205
|
+
*
|
|
206
|
+
* ```nocompile
|
|
207
|
+
* impl pallet_balances::Config for Runtime {
|
|
208
|
+
* type AccountStore = System
|
|
209
|
+
* }
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
213
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
214
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
194
215
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
195
216
|
**/
|
|
196
217
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|