@polymeshassociation/polymesh-sdk 24.0.0-alpha.4 → 24.0.0-alpha.5

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.
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
3
3
  import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
6
- import type { PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
6
+ import type { PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeTestnetRuntimeOriginCaller, PolymeshRuntimeTestnetRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
7
7
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
8
8
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
9
9
  export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -4268,13 +4268,13 @@ declare module '@polkadot/api-base/types/submittable' {
4268
4268
  * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
4269
4269
  * fixed.
4270
4270
  **/
4271
- setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeDevelopRuntimeSessionKeys | {
4271
+ setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeTestnetRuntimeSessionKeys | {
4272
4272
  grandpa?: any;
4273
4273
  babe?: any;
4274
4274
  imOnline?: any;
4275
4275
  authorityDiscovery?: any;
4276
4276
  } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4277
- PolymeshRuntimeDevelopRuntimeSessionKeys,
4277
+ PolymeshRuntimeTestnetRuntimeSessionKeys,
4278
4278
  Bytes
4279
4279
  ]>;
4280
4280
  };
@@ -5639,93 +5639,6 @@ declare module '@polkadot/api-base/types/submittable' {
5639
5639
  u64
5640
5640
  ]>;
5641
5641
  };
5642
- sudo: {
5643
- /**
5644
- * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
5645
- *
5646
- * The dispatch origin for this call must be _Signed_.
5647
- *
5648
- * # <weight>
5649
- * - O(1).
5650
- * - Limited storage reads.
5651
- * - One DB change.
5652
- * # </weight>
5653
- **/
5654
- setKey: AugmentedSubmittable<(updated: MultiAddress | {
5655
- Id: any;
5656
- } | {
5657
- Index: any;
5658
- } | {
5659
- Raw: any;
5660
- } | {
5661
- Address32: any;
5662
- } | {
5663
- Address20: any;
5664
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5665
- MultiAddress
5666
- ]>;
5667
- /**
5668
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
5669
- *
5670
- * The dispatch origin for this call must be _Signed_.
5671
- *
5672
- * # <weight>
5673
- * - O(1).
5674
- * - Limited storage reads.
5675
- * - One DB write (event).
5676
- * - Weight of derivative `call` execution + 10,000.
5677
- * # </weight>
5678
- **/
5679
- sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5680
- Call
5681
- ]>;
5682
- /**
5683
- * Authenticates the sudo key and dispatches a function call with `Signed` origin from
5684
- * a given account.
5685
- *
5686
- * The dispatch origin for this call must be _Signed_.
5687
- *
5688
- * # <weight>
5689
- * - O(1).
5690
- * - Limited storage reads.
5691
- * - One DB write (event).
5692
- * - Weight of derivative `call` execution + 10,000.
5693
- * # </weight>
5694
- **/
5695
- sudoAs: AugmentedSubmittable<(who: MultiAddress | {
5696
- Id: any;
5697
- } | {
5698
- Index: any;
5699
- } | {
5700
- Raw: any;
5701
- } | {
5702
- Address32: any;
5703
- } | {
5704
- Address20: any;
5705
- } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5706
- MultiAddress,
5707
- Call
5708
- ]>;
5709
- /**
5710
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
5711
- * This function does not check the weight of the call, and instead allows the
5712
- * Sudo user to specify the weight of the call.
5713
- *
5714
- * The dispatch origin for this call must be _Signed_.
5715
- *
5716
- * # <weight>
5717
- * - O(1).
5718
- * - The weight of this call is defined by the caller.
5719
- * # </weight>
5720
- **/
5721
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
5722
- refTime?: any;
5723
- proofSize?: any;
5724
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5725
- Call,
5726
- SpWeightsWeightV2Weight
5727
- ]>;
5728
- };
5729
5642
  system: {
5730
5643
  /**
5731
5644
  * Kill all storage items with a key that starts with the given prefix.
@@ -6231,6 +6144,18 @@ declare module '@polkadot/api-base/types/submittable' {
6231
6144
  ]>;
6232
6145
  };
6233
6146
  utility: {
6147
+ /**
6148
+ * Send a call through an indexed pseudonym of the sender.
6149
+ *
6150
+ * Filter from origin are passed along. The call will be dispatched with an origin which
6151
+ * use the same filter as the origin of this call.
6152
+ *
6153
+ * The dispatch origin for this call must be _Signed_.
6154
+ **/
6155
+ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6156
+ u16,
6157
+ Call
6158
+ ]>;
6234
6159
  /**
6235
6160
  * Send a batch of dispatch calls.
6236
6161
  *
@@ -6359,7 +6284,7 @@ declare module '@polkadot/api-base/types/submittable' {
6359
6284
  * ## Complexity
6360
6285
  * - O(1).
6361
6286
  **/
6362
- dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller | {
6287
+ dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeTestnetRuntimeOriginCaller | {
6363
6288
  system: any;
6364
6289
  } | {
6365
6290
  Void: any;
@@ -6370,7 +6295,7 @@ declare module '@polkadot/api-base/types/submittable' {
6370
6295
  } | {
6371
6296
  UpgradeCommittee: any;
6372
6297
  } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6373
- PolymeshRuntimeDevelopRuntimeOriginCaller,
6298
+ PolymeshRuntimeTestnetRuntimeOriginCaller,
6374
6299
  Call
6375
6300
  ]>;
6376
6301
  /**