@webb-tools/tangle-substrate-types 0.5.4 → 0.5.8
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/build/interfaces/augment-api-consts.d.ts +147 -4
- package/build/interfaces/augment-api-errors.d.ts +403 -0
- package/build/interfaces/augment-api-events.d.ts +543 -2
- package/build/interfaces/augment-api-query.d.ts +159 -2
- package/build/interfaces/augment-api-tx.d.ts +745 -1
- package/build/interfaces/augment-types.d.ts +21 -2
- package/build/interfaces/lookup.d.ts +1470 -356
- package/build/interfaces/lookup.js +1464 -350
- package/build/interfaces/registry.d.ts +61 -1
- package/build/interfaces/types-lookup.d.ts +1592 -348
- package/build/metadata/static-latest.d.ts +1 -1
- package/build/metadata/static-latest.js +1 -1
- package/build/package.json +1 -1
- package/package.json +4 -4
- package/playground.ts +86 -0
- package/src/interfaces/augment-api-consts.ts +147 -11
- package/src/interfaces/augment-api-errors.ts +403 -0
- package/src/interfaces/augment-api-events.ts +321 -30
- package/src/interfaces/augment-api-query.ts +150 -87
- package/src/interfaces/augment-api-tx.ts +361 -54
- package/src/interfaces/augment-types.ts +21 -2
- package/src/interfaces/lookup.ts +1465 -351
- package/src/interfaces/registry.ts +61 -1
- package/src/interfaces/types-lookup.ts +1650 -348
- package/src/metadata/metadata.json +1 -1
- package/src/metadata/static-latest.ts +1 -1
- package/ts-types/playground.d.ts +1 -0
- package/ts-types/src/interfaces/augment-api-consts.d.ts +147 -4
- package/ts-types/src/interfaces/augment-api-errors.d.ts +403 -0
- package/ts-types/src/interfaces/augment-api-events.d.ts +543 -2
- package/ts-types/src/interfaces/augment-api-query.d.ts +159 -2
- package/ts-types/src/interfaces/augment-api-tx.d.ts +745 -1
- package/ts-types/src/interfaces/augment-types.d.ts +21 -2
- package/ts-types/src/interfaces/lookup.d.ts +1470 -356
- package/ts-types/src/interfaces/registry.d.ts +61 -1
- package/ts-types/src/interfaces/types-lookup.d.ts +1592 -348
- package/ts-types/src/metadata/static-latest.d.ts +1 -1
- package/ts-types/tsconfig.tsbuildinfo +1 -1
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
4
|
+
import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H160, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
|
-
import {
|
|
8
|
+
import { PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsPreDigest, SpConsensusBabeDigestsNextConfigDescriptor, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletAirdropClaimsUtilsMultiAddress, PalletAirdropClaimsStatementKind, PalletCollectiveVotes, PalletDemocracyMetadataOwner, FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold, PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting, PalletDkgFeeInfo, PalletElectionProviderMultiPhasePhase, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, EthereumBlock, EthereumReceiptReceiptV3, FpRpcTransactionStatus, EthereumTransactionTransactionV2, PalletEvmCodeMetadata, SpConsensusGrandpaAppPublic, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletIdentityAuthorityProperties, PalletImOnlineSr25519AppSr25519Public, TanglePrimitivesRolesRoleType, TanglePrimitivesJobsPhaseResult, TanglePrimitivesJobsJobInfo, PalletMultiAssetDelegationOperatorOperatorSnapshot, PalletMultiAssetDelegationDelegatorDelegatorMetadata, PalletMultiAssetDelegationOperatorOperatorMetadata, PalletMultiAssetDelegationRewardsRewardConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, SpStakingOffenceOffenceDetails, PalletPreimageRequestStatus, PalletPreimageOldRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletRolesRestakingLedger, PalletSchedulerScheduled, SpCoreCryptoKeyTypeId, TangleTestnetRuntimeOpaqueSessionKeys, SpStakingExposure, SpStakingPagedExposureMetadata, SpStakingExposurePage, PalletStakingValidatorPrefs, PalletStakingForcing, PalletStakingStakingLedger, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingUnappliedSlash, StagingXcmV4AssetAssetId, SygmaFeeHandlerRouterFeeHandlerType, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, FrameSystemLastRuntimeUpgradeInfo, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletZksaasFeeInfo } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
11
11
|
declare module '@polkadot/api-base/types/storage' {
|
|
12
12
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
13
|
+
assets: {
|
|
14
|
+
/**
|
|
15
|
+
* The holdings of a specific account for a specific asset.
|
|
16
|
+
**/
|
|
17
|
+
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [u128, AccountId32]> & QueryableStorageEntry<ApiType, [u128, AccountId32]>;
|
|
18
|
+
/**
|
|
19
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
20
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
21
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
22
|
+
**/
|
|
23
|
+
approvals: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [u128, AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [u128, AccountId32, AccountId32]>;
|
|
24
|
+
/**
|
|
25
|
+
* Details of an asset.
|
|
26
|
+
**/
|
|
27
|
+
asset: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [u128]> & QueryableStorageEntry<ApiType, [u128]>;
|
|
28
|
+
/**
|
|
29
|
+
* Metadata of an asset.
|
|
30
|
+
**/
|
|
31
|
+
metadata: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u128]> & QueryableStorageEntry<ApiType, [u128]>;
|
|
32
|
+
/**
|
|
33
|
+
* Generic query
|
|
34
|
+
**/
|
|
35
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
36
|
+
};
|
|
13
37
|
authorship: {
|
|
14
38
|
/**
|
|
15
39
|
* Author of current block.
|
|
@@ -776,6 +800,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
776
800
|
**/
|
|
777
801
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
778
802
|
};
|
|
803
|
+
multiAssetDelegation: {
|
|
804
|
+
/**
|
|
805
|
+
* Snapshot of collator delegation stake at the start of the round.
|
|
806
|
+
**/
|
|
807
|
+
atStake: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationOperatorOperatorSnapshot>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
808
|
+
/**
|
|
809
|
+
* Storage for the current round.
|
|
810
|
+
**/
|
|
811
|
+
currentRound: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
812
|
+
/**
|
|
813
|
+
* Storage for delegator information.
|
|
814
|
+
**/
|
|
815
|
+
delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationDelegatorDelegatorMetadata>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
816
|
+
/**
|
|
817
|
+
* Storage for operator information.
|
|
818
|
+
**/
|
|
819
|
+
operators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationOperatorOperatorMetadata>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
820
|
+
/**
|
|
821
|
+
* Storage for the reward configuration, which includes APY, cap for assets, and whitelisted blueprints.
|
|
822
|
+
**/
|
|
823
|
+
rewardConfigStorage: AugmentedQuery<ApiType, () => Observable<Option<PalletMultiAssetDelegationRewardsRewardConfig>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
824
|
+
/**
|
|
825
|
+
* Whitelisted assets that are allowed to be deposited
|
|
826
|
+
**/
|
|
827
|
+
whitelistedAssets: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
828
|
+
/**
|
|
829
|
+
* Generic query
|
|
830
|
+
**/
|
|
831
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
832
|
+
};
|
|
779
833
|
multisig: {
|
|
780
834
|
/**
|
|
781
835
|
* The set of open multisig operations.
|
|
@@ -927,6 +981,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
927
981
|
**/
|
|
928
982
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
929
983
|
};
|
|
984
|
+
proxy: {
|
|
985
|
+
/**
|
|
986
|
+
* The announcements made by the proxy (key).
|
|
987
|
+
**/
|
|
988
|
+
announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
989
|
+
/**
|
|
990
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
991
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
992
|
+
**/
|
|
993
|
+
proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
994
|
+
/**
|
|
995
|
+
* Generic query
|
|
996
|
+
**/
|
|
997
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
998
|
+
};
|
|
930
999
|
randomnessCollectiveFlip: {
|
|
931
1000
|
/**
|
|
932
1001
|
* Series of block headers from the last 81 blocks that acts as random seed material. This
|
|
@@ -963,6 +1032,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
963
1032
|
* The minimum re staking bond to become and maintain the role.
|
|
964
1033
|
**/
|
|
965
1034
|
minRestakingBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1035
|
+
/**
|
|
1036
|
+
* The total restake amount in the system
|
|
1037
|
+
**/
|
|
1038
|
+
totalRestake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
966
1039
|
/**
|
|
967
1040
|
* The number of jobs completed by a validator in era
|
|
968
1041
|
**/
|
|
@@ -1321,6 +1394,90 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1321
1394
|
**/
|
|
1322
1395
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1323
1396
|
};
|
|
1397
|
+
sygmaAccessSegregator: {
|
|
1398
|
+
/**
|
|
1399
|
+
* Mapping signature of extrinsic to account has access
|
|
1400
|
+
* (pallet_index, extrinsic_name) => account
|
|
1401
|
+
**/
|
|
1402
|
+
extrinsicAccess: AugmentedQuery<ApiType, (arg: ITuple<[u8, Bytes]> | [u8 | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[u8, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[u8, Bytes]>]>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Generic query
|
|
1405
|
+
**/
|
|
1406
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1407
|
+
};
|
|
1408
|
+
sygmaBasicFeeHandler: {
|
|
1409
|
+
/**
|
|
1410
|
+
* Mapping fungible asset id to corresponding fee amount
|
|
1411
|
+
**/
|
|
1412
|
+
assetFees: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [u8 | AnyNumber | Uint8Array, StagingXcmV4AssetAssetId | {
|
|
1413
|
+
parents?: any;
|
|
1414
|
+
interior?: any;
|
|
1415
|
+
} | string | Uint8Array]) => Observable<Option<u128>>, [ITuple<[u8, StagingXcmV4AssetAssetId]>]> & QueryableStorageEntry<ApiType, [ITuple<[u8, StagingXcmV4AssetAssetId]>]>;
|
|
1416
|
+
/**
|
|
1417
|
+
* Generic query
|
|
1418
|
+
**/
|
|
1419
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1420
|
+
};
|
|
1421
|
+
sygmaBridge: {
|
|
1422
|
+
/**
|
|
1423
|
+
* Deposit counter of dest domain
|
|
1424
|
+
**/
|
|
1425
|
+
depositCounts: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<u64>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Mark the pairs for supported dest domainID with its corresponding chainID
|
|
1428
|
+
* The chainID is not directly used in pallet, this map is designed more about rechecking the
|
|
1429
|
+
* domainID
|
|
1430
|
+
**/
|
|
1431
|
+
destChainIds: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<Option<U256>>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Mark supported dest domainID
|
|
1434
|
+
**/
|
|
1435
|
+
destDomainIds: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<bool>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Bridge Pause indicator
|
|
1438
|
+
* Bridge is unpaused initially, until pause
|
|
1439
|
+
* After mpc address setup, bridge should be paused until ready to unpause
|
|
1440
|
+
**/
|
|
1441
|
+
isPaused: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<bool>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Pre-set MPC address
|
|
1444
|
+
**/
|
|
1445
|
+
mpcAddr: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Mark whether a deposit nonce was used. Used to mark execution status of a proposal.
|
|
1448
|
+
**/
|
|
1449
|
+
usedNonces: AugmentedQuery<ApiType, (arg1: u8 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u64>, [u8, u64]> & QueryableStorageEntry<ApiType, [u8, u64]>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Generic query
|
|
1452
|
+
**/
|
|
1453
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1454
|
+
};
|
|
1455
|
+
sygmaFeeHandlerRouter: {
|
|
1456
|
+
/**
|
|
1457
|
+
* Return the Fee handler type based on domainID and assetID
|
|
1458
|
+
**/
|
|
1459
|
+
handlerType: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [u8 | AnyNumber | Uint8Array, StagingXcmV4AssetAssetId | {
|
|
1460
|
+
parents?: any;
|
|
1461
|
+
interior?: any;
|
|
1462
|
+
} | string | Uint8Array]) => Observable<Option<SygmaFeeHandlerRouterFeeHandlerType>>, [ITuple<[u8, StagingXcmV4AssetAssetId]>]> & QueryableStorageEntry<ApiType, [ITuple<[u8, StagingXcmV4AssetAssetId]>]>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Generic query
|
|
1465
|
+
**/
|
|
1466
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1467
|
+
};
|
|
1468
|
+
sygmaPercentageFeeHandler: {
|
|
1469
|
+
/**
|
|
1470
|
+
* Mapping fungible asset id with domain id to fee rate and its lower bound, upperbound
|
|
1471
|
+
**/
|
|
1472
|
+
assetFeeRate: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [u8 | AnyNumber | Uint8Array, StagingXcmV4AssetAssetId | {
|
|
1473
|
+
parents?: any;
|
|
1474
|
+
interior?: any;
|
|
1475
|
+
} | string | Uint8Array]) => Observable<Option<ITuple<[u32, u128, u128]>>>, [ITuple<[u8, StagingXcmV4AssetAssetId]>]> & QueryableStorageEntry<ApiType, [ITuple<[u8, StagingXcmV4AssetAssetId]>]>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Generic query
|
|
1478
|
+
**/
|
|
1479
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1480
|
+
};
|
|
1324
1481
|
system: {
|
|
1325
1482
|
/**
|
|
1326
1483
|
* The full account information for a particular account ID.
|