@polymeshassociation/polymesh-sdk 24.0.0-alpha.6 → 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.
- package/CHANGELOG.md +2 -2
- package/api/procedures/attestPrimaryKeyRotation.d.ts.map +1 -1
- package/api/procedures/attestPrimaryKeyRotation.js +9 -17
- package/api/procedures/attestPrimaryKeyRotation.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js +5 -11
- package/api/procedures/inviteAccount.js.map +1 -1
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setCustodian.js +10 -15
- package/api/procedures/setCustodian.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js +14 -4
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
- package/api/procedures/transferTickerOwnership.js +17 -7
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/generated/types.d.ts +9 -2
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +7 -0
- package/generated/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.0.0-alpha.7.tgz +0 -0
- package/package.json +2 -2
- package/polkadot/augment-api-errors.d.ts +22 -0
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +43 -1
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +29 -3
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +248 -23
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +396 -302
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +403 -305
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +8 -4
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/types-lookup.d.ts +418 -306
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/utils/constants.d.ts +2 -2
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +2 -2
- package/utils/constants.js.map +1 -1
- package/utils/internal.d.ts +11 -1
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +50 -1
- package/utils/internal.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.0.0-alpha.6.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,
|
|
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:
|
|
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
|
-
|
|
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
|
|
4287
|
-
* * `settlement_type`
|
|
4288
|
-
*
|
|
4289
|
-
* * `
|
|
4290
|
-
* * `
|
|
4291
|
-
* * `
|
|
4292
|
-
* * `
|
|
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
|
|
4327
|
-
* * `settlement_type`
|
|
4328
|
-
*
|
|
4329
|
-
* * `
|
|
4330
|
-
* * `
|
|
4331
|
-
* * `
|
|
4332
|
-
* * `
|
|
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
|
-
* #
|
|
4335
|
-
*
|
|
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:
|
|
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
|
-
|
|
6523
|
+
PolymeshRuntimeDevelopRuntimeOriginCaller,
|
|
6299
6524
|
Call
|
|
6300
6525
|
]>;
|
|
6301
6526
|
/**
|