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

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +2 -9
  2. package/api/client/Network.d.ts +2 -2
  3. package/api/client/Network.d.ts.map +1 -1
  4. package/api/client/Network.js +6 -4
  5. package/api/client/Network.js.map +1 -1
  6. package/api/procedures/attestPrimaryKeyRotation.d.ts.map +1 -1
  7. package/api/procedures/attestPrimaryKeyRotation.js +9 -17
  8. package/api/procedures/attestPrimaryKeyRotation.js.map +1 -1
  9. package/api/procedures/inviteAccount.d.ts.map +1 -1
  10. package/api/procedures/inviteAccount.js +5 -11
  11. package/api/procedures/inviteAccount.js.map +1 -1
  12. package/api/procedures/setCustodian.d.ts.map +1 -1
  13. package/api/procedures/setCustodian.js +10 -15
  14. package/api/procedures/setCustodian.js.map +1 -1
  15. package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
  16. package/api/procedures/transferAssetOwnership.js +14 -4
  17. package/api/procedures/transferAssetOwnership.js.map +1 -1
  18. package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
  19. package/api/procedures/transferTickerOwnership.js +17 -7
  20. package/api/procedures/transferTickerOwnership.js.map +1 -1
  21. package/generated/types.d.ts +9 -2
  22. package/generated/types.d.ts.map +1 -1
  23. package/generated/types.js +7 -0
  24. package/generated/types.js.map +1 -1
  25. package/npm-package/polymeshassociation-polymesh-sdk-24.0.0-alpha.7.tgz +0 -0
  26. package/package.json +2 -2
  27. package/polkadot/augment-api-errors.d.ts +22 -0
  28. package/polkadot/augment-api-errors.d.ts.map +1 -1
  29. package/polkadot/augment-api-events.d.ts +43 -1
  30. package/polkadot/augment-api-events.d.ts.map +1 -1
  31. package/polkadot/augment-api-query.d.ts +29 -3
  32. package/polkadot/augment-api-query.d.ts.map +1 -1
  33. package/polkadot/augment-api-tx.d.ts +248 -23
  34. package/polkadot/augment-api-tx.d.ts.map +1 -1
  35. package/polkadot/lookup.d.ts +396 -302
  36. package/polkadot/lookup.d.ts.map +1 -1
  37. package/polkadot/lookup.js +403 -305
  38. package/polkadot/lookup.js.map +1 -1
  39. package/polkadot/registry.d.ts +8 -4
  40. package/polkadot/registry.d.ts.map +1 -1
  41. package/polkadot/types-lookup.d.ts +418 -306
  42. package/polkadot/types-lookup.d.ts.map +1 -1
  43. package/types/index.d.ts +5 -0
  44. package/types/index.d.ts.map +1 -1
  45. package/types/index.js.map +1 -1
  46. package/utils/constants.d.ts +2 -2
  47. package/utils/constants.d.ts.map +1 -1
  48. package/utils/constants.js +2 -2
  49. package/utils/constants.js.map +1 -1
  50. package/utils/internal.d.ts +11 -1
  51. package/utils/internal.d.ts.map +1 -1
  52. package/utils/internal.js +50 -1
  53. package/utils/internal.js.map +1 -1
  54. package/npm-package/polymeshassociation-polymesh-sdk-24.0.0-alpha.5.tgz +0 -0
@@ -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, PolymeshRuntimeTestnetRuntimeOriginCaller, PolymeshRuntimeTestnetRuntimeSessionKeys, 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, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, 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>;
@@ -59,6 +59,21 @@ declare module '@polkadot/api-base/types/submittable' {
59
59
  Vec<PolymeshPrimitivesDocument>,
60
60
  PolymeshPrimitivesTicker
61
61
  ]>;
62
+ /**
63
+ * Sets all identities in the `mediators` set as mandatory mediators for any instruction transfering `ticker`.
64
+ *
65
+ * # Arguments
66
+ * * `origin`: The secondary key of the sender.
67
+ * * `ticker`: The [`Ticker`] of the asset that will require the mediators.
68
+ * * `mediators`: A set of [`IdentityId`] of all the mandatory mediators for the given ticker.
69
+ *
70
+ * # Permissions
71
+ * * Asset
72
+ **/
73
+ addMandatoryMediators: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, mediators: BTreeSet<PolymeshPrimitivesIdentityId>) => SubmittableExtrinsic<ApiType>, [
74
+ PolymeshPrimitivesTicker,
75
+ BTreeSet<PolymeshPrimitivesIdentityId>
76
+ ]>;
62
77
  /**
63
78
  * Forces a transfer of token from `from_portfolio` to the caller's default portfolio.
64
79
  *
@@ -442,6 +457,21 @@ declare module '@polkadot/api-base/types/submittable' {
442
457
  PolymeshPrimitivesTicker,
443
458
  u64
444
459
  ]>;
460
+ /**
461
+ * Removes all identities in the `mediators` set from the mandatory mediators list for the given `ticker`.
462
+ *
463
+ * # Arguments
464
+ * * `origin`: The secondary key of the sender.
465
+ * * `ticker`: The [`Ticker`] of the asset that will have mediators removed.
466
+ * * `mediators`: A set of [`IdentityId`] of all the mediators that will be removed from the mandatory mediators list.
467
+ *
468
+ * # Permissions
469
+ * * Asset
470
+ **/
471
+ removeMandatoryMediators: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, mediators: BTreeSet<PolymeshPrimitivesIdentityId>) => SubmittableExtrinsic<ApiType>, [
472
+ PolymeshPrimitivesTicker,
473
+ BTreeSet<PolymeshPrimitivesIdentityId>
474
+ ]>;
445
475
  /**
446
476
  * Removes the asset metadata value of a metadata key.
447
477
  *
@@ -4268,13 +4298,13 @@ declare module '@polkadot/api-base/types/submittable' {
4268
4298
  * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
4269
4299
  * fixed.
4270
4300
  **/
4271
- setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeTestnetRuntimeSessionKeys | {
4301
+ setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeDevelopRuntimeSessionKeys | {
4272
4302
  grandpa?: any;
4273
4303
  babe?: any;
4274
4304
  imOnline?: any;
4275
4305
  authorityDiscovery?: any;
4276
4306
  } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4277
- PolymeshRuntimeTestnetRuntimeSessionKeys,
4307
+ PolymeshRuntimeDevelopRuntimeSessionKeys,
4278
4308
  Bytes
4279
4309
  ]>;
4280
4310
  };
@@ -4283,14 +4313,13 @@ declare module '@polkadot/api-base/types/submittable' {
4283
4313
  * Adds and affirms a new instruction.
4284
4314
  *
4285
4315
  * # Arguments
4286
- * * `venue_id` - ID of the venue this instruction belongs to.
4287
- * * `settlement_type` - Defines if the instruction should be settled in the next block, after receiving all affirmations
4288
- * or waiting till a specific block.
4289
- * * `trade_date` - Optional date from which people can interact with this instruction.
4290
- * * `value_date` - Optional date after which the instruction should be settled (not enforced)
4291
- * * `legs` - Legs included in this instruction.
4292
- * * `portfolios` - Portfolios that the sender controls and wants to use in this affirmations.
4293
- * * `instruction_memo` - Memo field for this instruction.
4316
+ * * `venue_id`: The [`VenueId`] of the venue this instruction belongs to.
4317
+ * * `settlement_type`: The [`SettlementType`] specifying when the instruction should be settled.
4318
+ * * `trade_date`: Optional date from which people can interact with this instruction.
4319
+ * * `value_date`: Optional date after which the instruction should be settled (not enforced).
4320
+ * * `legs`: A vector of all [`Leg`] included in this instruction.
4321
+ * * `portfolios`: A vector of [`PortfolioId`] under the caller's control and intended for affirmation.
4322
+ * * `memo`: An optional [`Memo`] field for this instruction.
4294
4323
  *
4295
4324
  * # Permissions
4296
4325
  * * Portfolio
@@ -4320,19 +4349,56 @@ declare module '@polkadot/api-base/types/submittable' {
4320
4349
  Option<PolymeshPrimitivesMemo>
4321
4350
  ]>;
4322
4351
  /**
4323
- * Adds a new instruction.
4352
+ * Adds and affirms a new instruction with mediators.
4324
4353
  *
4325
4354
  * # Arguments
4326
- * * `venue_id` - ID of the venue this instruction belongs to.
4327
- * * `settlement_type` - Defines if the instruction should be settled in the next block, after receiving all affirmations
4328
- * or waiting till a specific block.
4329
- * * `trade_date` - Optional date from which people can interact with this instruction.
4330
- * * `value_date` - Optional date after which the instruction should be settled (not enforced)
4331
- * * `legs` - Legs included in this instruction.
4332
- * * `memo` - Memo field for this instruction.
4355
+ * * `venue_id`: The [`VenueId`] of the venue this instruction belongs to.
4356
+ * * `settlement_type`: The [`SettlementType`] specifying when the instruction should be settled.
4357
+ * * `trade_date`: Optional date from which people can interact with this instruction.
4358
+ * * `value_date`: Optional date after which the instruction should be settled (not enforced).
4359
+ * * `legs`: A vector of all [`Leg`] included in this instruction.
4360
+ * * `portfolios`: A vector of [`PortfolioId`] under the caller's control and intended for affirmation.
4361
+ * * `instruction_memo`: An optional [`Memo`] field for this instruction.
4362
+ * * `mediators`: A set of [`IdentityId`] of all the mandatory mediators for the instruction.
4333
4363
  *
4334
- * # Weight
4335
- * `950_000_000 + 1_000_000 * legs.len()`
4364
+ * # Permissions
4365
+ * * Portfolio
4366
+ **/
4367
+ addAndAffirmWithMediators: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PolymeshPrimitivesSettlementSettlementType | {
4368
+ SettleOnAffirmation: any;
4369
+ } | {
4370
+ SettleOnBlock: any;
4371
+ } | {
4372
+ SettleManual: any;
4373
+ } | string | Uint8Array, tradeDate: Option<u64> | null | Uint8Array | u64 | AnyNumber, valueDate: Option<u64> | null | Uint8Array | u64 | AnyNumber, legs: Vec<PolymeshPrimitivesSettlementLeg> | (PolymeshPrimitivesSettlementLeg | {
4374
+ Fungible: any;
4375
+ } | {
4376
+ NonFungible: any;
4377
+ } | {
4378
+ OffChain: any;
4379
+ } | string | Uint8Array)[], portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
4380
+ did?: any;
4381
+ kind?: any;
4382
+ } | string | Uint8Array)[], instructionMemo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string, mediators: BTreeSet<PolymeshPrimitivesIdentityId>) => SubmittableExtrinsic<ApiType>, [
4383
+ u64,
4384
+ PolymeshPrimitivesSettlementSettlementType,
4385
+ Option<u64>,
4386
+ Option<u64>,
4387
+ Vec<PolymeshPrimitivesSettlementLeg>,
4388
+ Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
4389
+ Option<PolymeshPrimitivesMemo>,
4390
+ BTreeSet<PolymeshPrimitivesIdentityId>
4391
+ ]>;
4392
+ /**
4393
+ * Adds a new instruction.
4394
+ *
4395
+ * # Arguments
4396
+ * * `venue_id`: The [`VenueId`] of the venue this instruction belongs to.
4397
+ * * `settlement_type`: The [`SettlementType`] specifying when the instruction should be settled.
4398
+ * * `trade_date`: Optional date from which people can interact with this instruction.
4399
+ * * `value_date`: Optional date after which the instruction should be settled (not enforced).
4400
+ * * `legs`: A vector of all [`Leg`] included in this instruction.
4401
+ * * `memo`: An optional [`Memo`] field for this instruction.
4336
4402
  **/
4337
4403
  addInstruction: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PolymeshPrimitivesSettlementSettlementType | {
4338
4404
  SettleOnAffirmation: any;
@@ -4354,6 +4420,39 @@ declare module '@polkadot/api-base/types/submittable' {
4354
4420
  Vec<PolymeshPrimitivesSettlementLeg>,
4355
4421
  Option<PolymeshPrimitivesMemo>
4356
4422
  ]>;
4423
+ /**
4424
+ * Adds a new instruction with mediators.
4425
+ *
4426
+ * # Arguments
4427
+ * * `venue_id`: The [`VenueId`] of the venue this instruction belongs to.
4428
+ * * `settlement_type`: The [`SettlementType`] specifying when the instruction should be settled.
4429
+ * * `trade_date`: Optional date from which people can interact with this instruction.
4430
+ * * `value_date`: Optional date after which the instruction should be settled (not enforced).
4431
+ * * `legs`: A vector of all [`Leg`] included in this instruction.
4432
+ * * `instruction_memo`: An optional [`Memo`] field for this instruction.
4433
+ * * `mediators`: A set of [`IdentityId`] of all the mandatory mediators for the instruction.
4434
+ **/
4435
+ addInstructionWithMediators: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PolymeshPrimitivesSettlementSettlementType | {
4436
+ SettleOnAffirmation: any;
4437
+ } | {
4438
+ SettleOnBlock: any;
4439
+ } | {
4440
+ SettleManual: any;
4441
+ } | string | Uint8Array, tradeDate: Option<u64> | null | Uint8Array | u64 | AnyNumber, valueDate: Option<u64> | null | Uint8Array | u64 | AnyNumber, legs: Vec<PolymeshPrimitivesSettlementLeg> | (PolymeshPrimitivesSettlementLeg | {
4442
+ Fungible: any;
4443
+ } | {
4444
+ NonFungible: any;
4445
+ } | {
4446
+ OffChain: any;
4447
+ } | string | Uint8Array)[], instructionMemo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string, mediators: BTreeSet<PolymeshPrimitivesIdentityId>) => SubmittableExtrinsic<ApiType>, [
4448
+ u64,
4449
+ PolymeshPrimitivesSettlementSettlementType,
4450
+ Option<u64>,
4451
+ Option<u64>,
4452
+ Vec<PolymeshPrimitivesSettlementLeg>,
4453
+ Option<PolymeshPrimitivesMemo>,
4454
+ BTreeSet<PolymeshPrimitivesIdentityId>
4455
+ ]>;
4357
4456
  /**
4358
4457
  * Provide affirmation to an existing instruction.
4359
4458
  *
@@ -4371,6 +4470,18 @@ declare module '@polkadot/api-base/types/submittable' {
4371
4470
  u64,
4372
4471
  Vec<PolymeshPrimitivesIdentityIdPortfolioId>
4373
4472
  ]>;
4473
+ /**
4474
+ * Affirms the instruction as a mediator - should only be called by mediators, otherwise it will fail.
4475
+ *
4476
+ * # Arguments
4477
+ * * `origin`: The secondary key of the sender.
4478
+ * * `instruction_id`: The [`InstructionId`] that will be affirmed by the mediator.
4479
+ * * `expiry`: An Optional value for defining when the affirmation will expire (None means it will always be valid).
4480
+ **/
4481
+ affirmInstructionAsMediator: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array, expiry: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
4482
+ u64,
4483
+ Option<u64>
4484
+ ]>;
4374
4485
  /**
4375
4486
  * Provide affirmation to an existing instruction.
4376
4487
  *
@@ -4553,6 +4664,23 @@ declare module '@polkadot/api-base/types/submittable' {
4553
4664
  u64,
4554
4665
  PolymeshPrimitivesIdentityIdPortfolioId
4555
4666
  ]>;
4667
+ /**
4668
+ * Rejects an existing instruction - should only be called by mediators, otherwise it will fail.
4669
+ *
4670
+ * # Arguments
4671
+ * * `instruction_id` - the [`InstructionId`] of the instruction being rejected.
4672
+ * * `number_of_assets` - an optional [`AssetCount`] that will be used for a precise fee estimation before executing the extrinsic.
4673
+ *
4674
+ * Note: calling the rpc method `get_execute_instruction_info` returns an instance of [`ExecuteInstructionInfo`], which contain the asset count.
4675
+ **/
4676
+ rejectInstructionAsMediator: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array, numberOfAssets: Option<PolymeshPrimitivesSettlementAssetCount> | null | Uint8Array | PolymeshPrimitivesSettlementAssetCount | {
4677
+ fungible?: any;
4678
+ nonFungible?: any;
4679
+ offChain?: any;
4680
+ } | string) => SubmittableExtrinsic<ApiType>, [
4681
+ u64,
4682
+ Option<PolymeshPrimitivesSettlementAssetCount>
4683
+ ]>;
4556
4684
  /**
4557
4685
  * Rejects an existing instruction.
4558
4686
  *
@@ -4640,6 +4768,16 @@ declare module '@polkadot/api-base/types/submittable' {
4640
4768
  u64,
4641
4769
  Vec<PolymeshPrimitivesIdentityIdPortfolioId>
4642
4770
  ]>;
4771
+ /**
4772
+ * Removes the mediator's affirmation for the instruction - should only be called by mediators, otherwise it will fail.
4773
+ *
4774
+ * # Arguments
4775
+ * * `origin`: The secondary key of the sender.
4776
+ * * `instruction_id`: The [`InstructionId`] that will have the affirmation removed.
4777
+ **/
4778
+ withdrawAffirmationAsMediator: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4779
+ u64
4780
+ ]>;
4643
4781
  /**
4644
4782
  * Withdraw an affirmation for a given instruction.
4645
4783
  *
@@ -5639,6 +5777,93 @@ declare module '@polkadot/api-base/types/submittable' {
5639
5777
  u64
5640
5778
  ]>;
5641
5779
  };
5780
+ sudo: {
5781
+ /**
5782
+ * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
5783
+ *
5784
+ * The dispatch origin for this call must be _Signed_.
5785
+ *
5786
+ * # <weight>
5787
+ * - O(1).
5788
+ * - Limited storage reads.
5789
+ * - One DB change.
5790
+ * # </weight>
5791
+ **/
5792
+ setKey: AugmentedSubmittable<(updated: MultiAddress | {
5793
+ Id: any;
5794
+ } | {
5795
+ Index: any;
5796
+ } | {
5797
+ Raw: any;
5798
+ } | {
5799
+ Address32: any;
5800
+ } | {
5801
+ Address20: any;
5802
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5803
+ MultiAddress
5804
+ ]>;
5805
+ /**
5806
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
5807
+ *
5808
+ * The dispatch origin for this call must be _Signed_.
5809
+ *
5810
+ * # <weight>
5811
+ * - O(1).
5812
+ * - Limited storage reads.
5813
+ * - One DB write (event).
5814
+ * - Weight of derivative `call` execution + 10,000.
5815
+ * # </weight>
5816
+ **/
5817
+ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5818
+ Call
5819
+ ]>;
5820
+ /**
5821
+ * Authenticates the sudo key and dispatches a function call with `Signed` origin from
5822
+ * a given account.
5823
+ *
5824
+ * The dispatch origin for this call must be _Signed_.
5825
+ *
5826
+ * # <weight>
5827
+ * - O(1).
5828
+ * - Limited storage reads.
5829
+ * - One DB write (event).
5830
+ * - Weight of derivative `call` execution + 10,000.
5831
+ * # </weight>
5832
+ **/
5833
+ sudoAs: AugmentedSubmittable<(who: MultiAddress | {
5834
+ Id: any;
5835
+ } | {
5836
+ Index: any;
5837
+ } | {
5838
+ Raw: any;
5839
+ } | {
5840
+ Address32: any;
5841
+ } | {
5842
+ Address20: any;
5843
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5844
+ MultiAddress,
5845
+ Call
5846
+ ]>;
5847
+ /**
5848
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
5849
+ * This function does not check the weight of the call, and instead allows the
5850
+ * Sudo user to specify the weight of the call.
5851
+ *
5852
+ * The dispatch origin for this call must be _Signed_.
5853
+ *
5854
+ * # <weight>
5855
+ * - O(1).
5856
+ * - The weight of this call is defined by the caller.
5857
+ * # </weight>
5858
+ **/
5859
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
5860
+ refTime?: any;
5861
+ proofSize?: any;
5862
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5863
+ Call,
5864
+ SpWeightsWeightV2Weight
5865
+ ]>;
5866
+ };
5642
5867
  system: {
5643
5868
  /**
5644
5869
  * Kill all storage items with a key that starts with the given prefix.
@@ -6284,7 +6509,7 @@ declare module '@polkadot/api-base/types/submittable' {
6284
6509
  * ## Complexity
6285
6510
  * - O(1).
6286
6511
  **/
6287
- dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeTestnetRuntimeOriginCaller | {
6512
+ dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller | {
6288
6513
  system: any;
6289
6514
  } | {
6290
6515
  Void: any;
@@ -6295,7 +6520,7 @@ declare module '@polkadot/api-base/types/submittable' {
6295
6520
  } | {
6296
6521
  UpgradeCommittee: any;
6297
6522
  } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6298
- PolymeshRuntimeTestnetRuntimeOriginCaller,
6523
+ PolymeshRuntimeDevelopRuntimeOriginCaller,
6299
6524
  Call
6300
6525
  ]>;
6301
6526
  /**