@polkadot/api-augment 7.0.2-0 → 7.0.2
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/augment/consts.d.ts +5 -0
- package/augment/errors.d.ts +56 -6
- package/augment/events.d.ts +25 -3
- package/augment/query.d.ts +25 -6
- package/augment/tx.d.ts +75 -18
- package/package.json +6 -6
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
package/augment/consts.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
10
10
|
* The amount of funds that must be reserved when creating a new approval.
|
|
11
11
|
**/
|
|
12
12
|
approvalDeposit: u128 & AugmentedConst<ApiType>;
|
|
13
|
+
/**
|
|
14
|
+
* The amount of funds that must be reserved for a non-provider asset account to be
|
|
15
|
+
* maintained.
|
|
16
|
+
**/
|
|
17
|
+
assetAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
13
18
|
/**
|
|
14
19
|
* The basic amount of funds that must be reserved for an asset.
|
|
15
20
|
**/
|
package/augment/errors.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
2
|
declare module '@polkadot/api-base/types/errors' {
|
|
3
3
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
4
4
|
assets: {
|
|
5
|
+
/**
|
|
6
|
+
* The asset-account already exists.
|
|
7
|
+
**/
|
|
8
|
+
AlreadyExists: AugmentedError<ApiType>;
|
|
5
9
|
/**
|
|
6
10
|
* Invalid metadata given.
|
|
7
11
|
**/
|
|
@@ -14,10 +18,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
14
18
|
* Account balance must be greater than or equal to the transfer amount.
|
|
15
19
|
**/
|
|
16
20
|
BalanceLow: AugmentedError<ApiType>;
|
|
17
|
-
/**
|
|
18
|
-
* Balance should be non-zero.
|
|
19
|
-
**/
|
|
20
|
-
BalanceZero: AugmentedError<ApiType>;
|
|
21
21
|
/**
|
|
22
22
|
* The origin account is frozen.
|
|
23
23
|
**/
|
|
@@ -30,13 +30,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
30
30
|
* Minimum balance should be non-zero.
|
|
31
31
|
**/
|
|
32
32
|
MinBalanceZero: AugmentedError<ApiType>;
|
|
33
|
+
/**
|
|
34
|
+
* The account to alter does not exist.
|
|
35
|
+
**/
|
|
36
|
+
NoAccount: AugmentedError<ApiType>;
|
|
37
|
+
/**
|
|
38
|
+
* The asset-account doesn't have an associated deposit.
|
|
39
|
+
**/
|
|
40
|
+
NoDeposit: AugmentedError<ApiType>;
|
|
33
41
|
/**
|
|
34
42
|
* The signing account has no permission to do the operation.
|
|
35
43
|
**/
|
|
36
44
|
NoPermission: AugmentedError<ApiType>;
|
|
37
45
|
/**
|
|
38
|
-
*
|
|
39
|
-
* asset
|
|
46
|
+
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
47
|
+
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or the
|
|
48
|
+
* maximum number of consumers has been reached.
|
|
40
49
|
**/
|
|
41
50
|
NoProvider: AugmentedError<ApiType>;
|
|
42
51
|
/**
|
|
@@ -47,6 +56,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
47
56
|
* The given asset ID is unknown.
|
|
48
57
|
**/
|
|
49
58
|
Unknown: AugmentedError<ApiType>;
|
|
59
|
+
/**
|
|
60
|
+
* The operation would result in funds being burned.
|
|
61
|
+
**/
|
|
62
|
+
WouldBurn: AugmentedError<ApiType>;
|
|
50
63
|
/**
|
|
51
64
|
* The source account would not survive the transfer and it needs to stay alive.
|
|
52
65
|
**/
|
|
@@ -247,6 +260,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
247
260
|
* No contract was found at the specified address.
|
|
248
261
|
**/
|
|
249
262
|
ContractNotFound: AugmentedError<ApiType>;
|
|
263
|
+
/**
|
|
264
|
+
* The contract ran to completion but decided to revert its storage changes.
|
|
265
|
+
* Please note that this error is only returned from extrinsics. When called directly
|
|
266
|
+
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
|
267
|
+
* to determine whether a reversion has taken place.
|
|
268
|
+
**/
|
|
269
|
+
ContractReverted: AugmentedError<ApiType>;
|
|
250
270
|
/**
|
|
251
271
|
* Contract trapped during execution.
|
|
252
272
|
**/
|
|
@@ -921,6 +941,36 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
921
941
|
**/
|
|
922
942
|
[key: string]: AugmentedError<ApiType>;
|
|
923
943
|
};
|
|
944
|
+
preimage: {
|
|
945
|
+
/**
|
|
946
|
+
* Preimage has already been noted on-chain.
|
|
947
|
+
**/
|
|
948
|
+
AlreadyNoted: AugmentedError<ApiType>;
|
|
949
|
+
/**
|
|
950
|
+
* The user is not authorized to perform this action.
|
|
951
|
+
**/
|
|
952
|
+
NotAuthorized: AugmentedError<ApiType>;
|
|
953
|
+
/**
|
|
954
|
+
* The preimage cannot be removed since it has not yet been noted.
|
|
955
|
+
**/
|
|
956
|
+
NotNoted: AugmentedError<ApiType>;
|
|
957
|
+
/**
|
|
958
|
+
* The preimage request cannot be removed since no outstanding requests exist.
|
|
959
|
+
**/
|
|
960
|
+
NotRequested: AugmentedError<ApiType>;
|
|
961
|
+
/**
|
|
962
|
+
* A preimage may not be removed when there are outstanding requests.
|
|
963
|
+
**/
|
|
964
|
+
Requested: AugmentedError<ApiType>;
|
|
965
|
+
/**
|
|
966
|
+
* Preimage is too large to store on-chain.
|
|
967
|
+
**/
|
|
968
|
+
TooLarge: AugmentedError<ApiType>;
|
|
969
|
+
/**
|
|
970
|
+
* Generic error
|
|
971
|
+
**/
|
|
972
|
+
[key: string]: AugmentedError<ApiType>;
|
|
973
|
+
};
|
|
924
974
|
proxy: {
|
|
925
975
|
/**
|
|
926
976
|
* Account is already a proxy.
|
package/augment/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
2
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
|
|
5
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
|
|
6
6
|
declare module '@polkadot/api-base/types/events' {
|
|
7
7
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
8
8
|
assets: {
|
|
@@ -605,6 +605,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
605
605
|
**/
|
|
606
606
|
[key: string]: AugmentedEvent<ApiType>;
|
|
607
607
|
};
|
|
608
|
+
preimage: {
|
|
609
|
+
/**
|
|
610
|
+
* A preimage has ben cleared.
|
|
611
|
+
**/
|
|
612
|
+
Cleared: AugmentedEvent<ApiType, [H256]>;
|
|
613
|
+
/**
|
|
614
|
+
* A preimage has been noted.
|
|
615
|
+
**/
|
|
616
|
+
Noted: AugmentedEvent<ApiType, [H256]>;
|
|
617
|
+
/**
|
|
618
|
+
* A preimage has been requested.
|
|
619
|
+
**/
|
|
620
|
+
Requested: AugmentedEvent<ApiType, [H256]>;
|
|
621
|
+
/**
|
|
622
|
+
* Generic event
|
|
623
|
+
**/
|
|
624
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
625
|
+
};
|
|
608
626
|
proxy: {
|
|
609
627
|
/**
|
|
610
628
|
* An announcement was placed to make a call in the future.
|
|
@@ -659,6 +677,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
659
677
|
[key: string]: AugmentedEvent<ApiType>;
|
|
660
678
|
};
|
|
661
679
|
scheduler: {
|
|
680
|
+
/**
|
|
681
|
+
* The call for the provided hash was not found so the task has been aborted.
|
|
682
|
+
**/
|
|
683
|
+
CallLookupFailed: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<Bytes>, FrameSupportScheduleLookupError]>;
|
|
662
684
|
/**
|
|
663
685
|
* Canceled some task.
|
|
664
686
|
**/
|
|
@@ -825,9 +847,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
825
847
|
};
|
|
826
848
|
sudo: {
|
|
827
849
|
/**
|
|
828
|
-
* The \[sudoer\] just switched identity; the old key is supplied.
|
|
850
|
+
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
|
|
829
851
|
**/
|
|
830
|
-
KeyChanged: AugmentedEvent<ApiType, [AccountId32]>;
|
|
852
|
+
KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;
|
|
831
853
|
/**
|
|
832
854
|
* A sudo just took place. \[result\]
|
|
833
855
|
**/
|
package/augment/query.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval,
|
|
6
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
declare module '@polkadot/api-base/types/storage' {
|
|
9
9
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
10
10
|
assets: {
|
|
11
11
|
/**
|
|
12
|
-
* The
|
|
12
|
+
* The holdings of a specific account for a specific asset.
|
|
13
13
|
**/
|
|
14
|
-
account: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<
|
|
14
|
+
account: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
15
15
|
/**
|
|
16
16
|
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
17
17
|
* is the amount of `T::Currency` reserved for storing this.
|
|
@@ -474,7 +474,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
474
474
|
* Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
|
|
475
475
|
* affect; we shouldn't need a cryptographically secure hasher.
|
|
476
476
|
**/
|
|
477
|
-
signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletElectionProviderMultiPhaseSignedSignedSubmission
|
|
477
|
+
signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
478
478
|
/**
|
|
479
479
|
* Snapshot data of the round.
|
|
480
480
|
*
|
|
@@ -752,6 +752,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
752
752
|
**/
|
|
753
753
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
754
754
|
};
|
|
755
|
+
preimage: {
|
|
756
|
+
/**
|
|
757
|
+
* The preimages stored by this pallet.
|
|
758
|
+
**/
|
|
759
|
+
preimageFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
760
|
+
/**
|
|
761
|
+
* The request status of a given hash.
|
|
762
|
+
**/
|
|
763
|
+
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
764
|
+
/**
|
|
765
|
+
* Generic query
|
|
766
|
+
**/
|
|
767
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
768
|
+
};
|
|
755
769
|
proxy: {
|
|
756
770
|
/**
|
|
757
771
|
* The announcements made by the proxy (key).
|
|
@@ -806,7 +820,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
806
820
|
/**
|
|
807
821
|
* Items to be executed, indexed by the block number that they should be executed on.
|
|
808
822
|
**/
|
|
809
|
-
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<
|
|
823
|
+
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
810
824
|
/**
|
|
811
825
|
* Lookup from identity to the block number and index of the task.
|
|
812
826
|
**/
|
|
@@ -1168,7 +1182,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1168
1182
|
/**
|
|
1169
1183
|
* The `AccountId` of the sudo key.
|
|
1170
1184
|
**/
|
|
1171
|
-
key: AugmentedQuery<ApiType, () => Observable<AccountId32
|
|
1185
|
+
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1172
1186
|
/**
|
|
1173
1187
|
* Generic query
|
|
1174
1188
|
**/
|
|
@@ -1416,6 +1430,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1416
1430
|
* Details of an asset class.
|
|
1417
1431
|
**/
|
|
1418
1432
|
class: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesClassDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1433
|
+
/**
|
|
1434
|
+
* The classes owned by any given account; set out this way so that classes owned by a single
|
|
1435
|
+
* account can be enumerated.
|
|
1436
|
+
**/
|
|
1437
|
+
classAccount: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
|
1419
1438
|
/**
|
|
1420
1439
|
* Metadata of an asset class.
|
|
1421
1440
|
**/
|
package/augment/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
7
7
|
declare module '@polkadot/api-base/types/submittable' {
|
|
8
8
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
9
9
|
assets: {
|
|
@@ -45,7 +45,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
45
45
|
*
|
|
46
46
|
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
47
47
|
*
|
|
48
|
-
* Bails with `
|
|
48
|
+
* Bails with `NoAccount` if the `who` is already dead.
|
|
49
49
|
*
|
|
50
50
|
* - `id`: The identifier of the asset to have some amount burned.
|
|
51
51
|
* - `who`: The account to be debited from.
|
|
@@ -431,6 +431,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
431
431
|
} | {
|
|
432
432
|
Address20: any;
|
|
433
433
|
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
|
|
434
|
+
/**
|
|
435
|
+
* Return the deposit (if any) of an asset account.
|
|
436
|
+
*
|
|
437
|
+
* The origin must be Signed.
|
|
438
|
+
*
|
|
439
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
440
|
+
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
441
|
+
*
|
|
442
|
+
* Emits `Refunded` event when successful.
|
|
443
|
+
**/
|
|
444
|
+
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
|
434
445
|
/**
|
|
435
446
|
* Set the metadata for an asset.
|
|
436
447
|
*
|
|
@@ -530,6 +541,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
530
541
|
* Weight: `O(1)`
|
|
531
542
|
**/
|
|
532
543
|
thawAsset: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
544
|
+
/**
|
|
545
|
+
* Create an asset account for non-provider assets.
|
|
546
|
+
*
|
|
547
|
+
* A deposit will be taken from the signer account.
|
|
548
|
+
*
|
|
549
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
550
|
+
* to be taken.
|
|
551
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
552
|
+
*
|
|
553
|
+
* Emits `Touched` event when successful.
|
|
554
|
+
**/
|
|
555
|
+
touch: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
533
556
|
/**
|
|
534
557
|
* Move some assets from the sender account to another.
|
|
535
558
|
*
|
|
@@ -2865,6 +2888,36 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2865
2888
|
**/
|
|
2866
2889
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2867
2890
|
};
|
|
2891
|
+
preimage: {
|
|
2892
|
+
/**
|
|
2893
|
+
* Register a preimage on-chain.
|
|
2894
|
+
*
|
|
2895
|
+
* If the preimage was previously requested, no fees or deposits are taken for providing
|
|
2896
|
+
* the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
|
|
2897
|
+
**/
|
|
2898
|
+
notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
2899
|
+
/**
|
|
2900
|
+
* Request a preimage be uploaded to the chain without paying any fees or deposits.
|
|
2901
|
+
*
|
|
2902
|
+
* If the preimage requests has already been provided on-chain, we unreserve any deposit
|
|
2903
|
+
* a user may have paid, and take the control of the preimage out of their hands.
|
|
2904
|
+
**/
|
|
2905
|
+
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2906
|
+
/**
|
|
2907
|
+
* Clear an unrequested preimage from the runtime storage.
|
|
2908
|
+
**/
|
|
2909
|
+
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2910
|
+
/**
|
|
2911
|
+
* Clear a previously made request for a preimage.
|
|
2912
|
+
*
|
|
2913
|
+
* NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
|
|
2914
|
+
**/
|
|
2915
|
+
unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2916
|
+
/**
|
|
2917
|
+
* Generic tx
|
|
2918
|
+
**/
|
|
2919
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2920
|
+
};
|
|
2868
2921
|
proxy: {
|
|
2869
2922
|
/**
|
|
2870
2923
|
* Register a proxy account for the sender that is able to make calls on its behalf.
|
|
@@ -3288,10 +3341,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3288
3341
|
/**
|
|
3289
3342
|
* Anonymously schedule a task.
|
|
3290
3343
|
**/
|
|
3291
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3344
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3345
|
+
Value: any;
|
|
3346
|
+
} | {
|
|
3347
|
+
Hash: any;
|
|
3348
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
3295
3349
|
/**
|
|
3296
3350
|
* Anonymously schedule a task after a delay.
|
|
3297
3351
|
*
|
|
@@ -3299,17 +3353,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3299
3353
|
* Same as [`schedule`].
|
|
3300
3354
|
* # </weight>
|
|
3301
3355
|
**/
|
|
3302
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3356
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3357
|
+
Value: any;
|
|
3358
|
+
} | {
|
|
3359
|
+
Hash: any;
|
|
3360
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
3306
3361
|
/**
|
|
3307
3362
|
* Schedule a named task.
|
|
3308
3363
|
**/
|
|
3309
|
-
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3364
|
+
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3365
|
+
Value: any;
|
|
3366
|
+
} | {
|
|
3367
|
+
Hash: any;
|
|
3368
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
3313
3369
|
/**
|
|
3314
3370
|
* Schedule a named task after a delay.
|
|
3315
3371
|
*
|
|
@@ -3317,10 +3373,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3317
3373
|
* Same as [`schedule_named`](Self::schedule_named).
|
|
3318
3374
|
* # </weight>
|
|
3319
3375
|
**/
|
|
3320
|
-
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3376
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3377
|
+
Value: any;
|
|
3378
|
+
} | {
|
|
3379
|
+
Hash: any;
|
|
3380
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
3324
3381
|
/**
|
|
3325
3382
|
* Generic tx
|
|
3326
3383
|
**/
|
package/package.json
CHANGED
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.0.2
|
|
23
|
+
"version": "7.0.2",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
-
"@polkadot/api-base": "7.0.2
|
|
28
|
-
"@polkadot/rpc-augment": "7.0.2
|
|
29
|
-
"@polkadot/types": "7.0.2
|
|
30
|
-
"@polkadot/types-augment": "7.0.2
|
|
31
|
-
"@polkadot/types-codec": "7.0.2
|
|
27
|
+
"@polkadot/api-base": "7.0.2",
|
|
28
|
+
"@polkadot/rpc-augment": "7.0.2",
|
|
29
|
+
"@polkadot/types": "7.0.2",
|
|
30
|
+
"@polkadot/types-augment": "7.0.2",
|
|
31
|
+
"@polkadot/types-codec": "7.0.2",
|
|
32
32
|
"@polkadot/util": "^8.2.2"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED