@webb-tools/tangle-substrate-types 0.5.5 → 0.5.9
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 +104 -4
- package/build/interfaces/augment-api-errors.d.ts +365 -0
- package/build/interfaces/augment-api-events.d.ts +495 -2
- package/build/interfaces/augment-api-query.d.ts +140 -2
- package/build/interfaces/augment-api-tx.d.ts +609 -1
- package/build/interfaces/augment-types.d.ts +21 -2
- package/build/interfaces/lookup.d.ts +1377 -369
- package/build/interfaces/lookup.js +1360 -352
- package/build/interfaces/registry.d.ts +57 -1
- package/build/interfaces/types-lookup.d.ts +1477 -353
- 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/src/interfaces/augment-api-consts.ts +104 -4
- package/src/interfaces/augment-api-errors.ts +365 -0
- package/src/interfaces/augment-api-events.ts +294 -2
- package/src/interfaces/augment-api-query.ts +131 -2
- package/src/interfaces/augment-api-tx.ts +315 -1
- package/src/interfaces/augment-types.ts +21 -2
- package/src/interfaces/lookup.ts +1361 -353
- package/src/interfaces/registry.ts +57 -1
- package/src/interfaces/types-lookup.ts +1531 -353
- package/src/metadata/metadata.json +1 -1
- package/src/metadata/static-latest.ts +1 -1
- package/ts-types/src/interfaces/augment-api-consts.d.ts +104 -4
- package/ts-types/src/interfaces/augment-api-errors.d.ts +365 -0
- package/ts-types/src/interfaces/augment-api-events.d.ts +495 -2
- package/ts-types/src/interfaces/augment-api-query.d.ts +140 -2
- package/ts-types/src/interfaces/augment-api-tx.d.ts +609 -1
- package/ts-types/src/interfaces/augment-types.d.ts +21 -2
- package/ts-types/src/interfaces/lookup.d.ts +1377 -369
- package/ts-types/src/interfaces/registry.d.ts +57 -1
- package/ts-types/src/interfaces/types-lookup.d.ts +1477 -353
- 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 { 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, 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, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, FrameSystemLastRuntimeUpgradeInfo, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletZksaasFeeInfo } from '@polkadot/types/lookup';
|
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.
|
@@ -1340,6 +1394,90 @@ declare module '@polkadot/api-base/types/storage' {
|
|
1340
1394
|
**/
|
1341
1395
|
[key: string]: QueryableStorageEntry<ApiType>;
|
1342
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
|
+
};
|
1343
1481
|
system: {
|
1344
1482
|
/**
|
1345
1483
|
* The full account information for a particular account ID.
|