@polymeshassociation/polymesh-types 7.1.0 → 7.3.0
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +3 -2
- package/generated/types.d.ts +68 -8
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +66 -2
- package/generated/types.js.map +1 -1
- package/package.json +4 -3
- package/polkadot/asset/definitions.js +4 -4
- package/polkadot/asset/definitions.js.map +1 -1
- package/polkadot/augment-api-consts.d.ts +126 -4
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +438 -109
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +269 -175
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +325 -93
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +22 -25
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +295 -32
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +1031 -506
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +19 -2
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/identity/definitions.d.ts +0 -18
- package/polkadot/identity/definitions.d.ts.map +1 -1
- package/polkadot/identity/definitions.js +0 -42
- package/polkadot/identity/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts +4383 -3218
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +4643 -3386
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/nft/definitions.js +4 -4
- package/polkadot/nft/definitions.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +93 -8
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +228 -12
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +129 -20
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +107 -15
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +93 -26
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +238 -64
- package/polkadot/schema.js.map +1 -1
- package/polkadot/settlement/definitions.js +2 -2
- package/polkadot/types-lookup.d.ts +5274 -4326
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/rpc/index.d.ts +0 -18
- package/rpc/index.d.ts.map +1 -1
- package/rpc/index.js +10 -52
- package/rpc/index.js.map +1 -1
- package/runtime/assetApi/v5.d.ts +3 -0
- package/runtime/assetApi/v5.d.ts.map +1 -0
- package/runtime/assetApi/v5.js +32 -0
- package/runtime/assetApi/v5.js.map +1 -0
- package/runtime/index.d.ts.map +1 -1
- package/runtime/index.js +6 -0
- package/runtime/index.js.map +1 -1
- package/runtime/nftApi/v3.d.ts +3 -0
- package/runtime/nftApi/v3.d.ts.map +1 -0
- package/runtime/nftApi/v3.js +28 -0
- package/runtime/nftApi/v3.js.map +1 -0
- package/runtime/settlementApi/v3.d.ts +3 -0
- package/runtime/settlementApi/v3.d.ts.map +1 -0
- package/runtime/settlementApi/v3.js +74 -0
- package/runtime/settlementApi/v3.js.map +1 -0
- package/signedExtensions/index.d.ts +4 -0
- package/signedExtensions/index.d.ts.map +1 -1
- package/signedExtensions/index.js +4 -0
- package/signedExtensions/index.js.map +1 -1
- package/types/7.4.x.json +659 -0
- package/types/8.0.x.json +96 -15
- package/types/index.d.ts +477 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -0
- package/types/index.js.map +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/submittable';
|
|
2
2
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
3
|
-
import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { BTreeSet, Bytes, Compact, Option, U256, 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
|
-
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { PalletBalancesAdjustmentDirection, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier,
|
|
5
|
+
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { PalletBalancesAdjustmentDirection, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletValidatorsSlashingSwitch, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetHolderKind, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentitySecondaryKeyWithAuth, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAffirmationRequirement, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -103,7 +103,31 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
103
103
|
BTreeSet<PolymeshPrimitivesIdentityId>
|
|
104
104
|
]>;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Set the allowance for `spender` to transfer up to `amount` of `asset_id` from
|
|
107
|
+
* the caller's account.
|
|
108
|
+
*
|
|
109
|
+
* Replaces any existing allowance for this (owner, spender, asset_id) combination.
|
|
110
|
+
* Setting `amount` to 0 revokes the allowance (removes the storage entry).
|
|
111
|
+
* Setting `amount` to `Balance::MAX` grants an unlimited allowance that is never
|
|
112
|
+
* decremented on spend.
|
|
113
|
+
*
|
|
114
|
+
* # Arguments
|
|
115
|
+
* * `origin` — Signed origin. Caller must have a registered DID.
|
|
116
|
+
* * `asset_id` — The asset for which the allowance is set.
|
|
117
|
+
* * `spender` — The AccountId authorized to spend.
|
|
118
|
+
* * `amount` — Maximum amount the spender may transfer. 0 = revoke. Balance::MAX = unlimited.
|
|
119
|
+
*
|
|
120
|
+
* # Errors
|
|
121
|
+
* * `BadOrigin` — Unsigned origin.
|
|
122
|
+
* * `MissingIdentity` — Caller's key is not linked to a DID.
|
|
123
|
+
**/
|
|
124
|
+
approve: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, spender: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
125
|
+
PolymeshPrimitivesAssetAssetId,
|
|
126
|
+
AccountId32,
|
|
127
|
+
u128
|
|
128
|
+
]>;
|
|
129
|
+
/**
|
|
130
|
+
* Forces a transfer of tokens from `asset_holder` to the caller's default portfolio.
|
|
107
131
|
*
|
|
108
132
|
* This function allows the asset issuer or an external agent to force a transfer of tokens from one portfolio to another.
|
|
109
133
|
*
|
|
@@ -111,7 +135,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
111
135
|
* * `origin` - The origin of the call, which can be the primary or secondary key of an identity.
|
|
112
136
|
* * `asset_id` - The [`AssetId`] associated to the asset.
|
|
113
137
|
* * `value` - The [`Balance`] of tokens that will be transferred.
|
|
114
|
-
* * `
|
|
138
|
+
* * `source` - The [`AssetHolder`] that will have its balance reduced.
|
|
139
|
+
* * `destination_kind` - The [`AssetHolderKind`] of the destination.
|
|
115
140
|
*
|
|
116
141
|
* # Permissions
|
|
117
142
|
* * Asset
|
|
@@ -125,13 +150,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
125
150
|
* * `InvalidGranularity` - If the amount to transfer does not meet the granularity requirements.
|
|
126
151
|
* * `TotalSupplyOverflow` - If the total supply exceeds the maximum allowed limit.
|
|
127
152
|
**/
|
|
128
|
-
controllerTransfer: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, value: u128 | AnyNumber | Uint8Array,
|
|
129
|
-
|
|
130
|
-
|
|
153
|
+
controllerTransfer: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, source: PolymeshPrimitivesAssetAssetHolder | {
|
|
154
|
+
Portfolio: any;
|
|
155
|
+
} | {
|
|
156
|
+
Account: any;
|
|
157
|
+
} | string | Uint8Array, destinationKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
158
|
+
Account: any;
|
|
159
|
+
} | {
|
|
160
|
+
DefaultPortfolio: any;
|
|
161
|
+
} | {
|
|
162
|
+
UserPortfolio: any;
|
|
131
163
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
132
164
|
PolymeshPrimitivesAssetAssetId,
|
|
133
165
|
u128,
|
|
134
|
-
|
|
166
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
167
|
+
PolymeshPrimitivesAssetAssetHolderKind
|
|
135
168
|
]>;
|
|
136
169
|
/**
|
|
137
170
|
* Creates a new asset.
|
|
@@ -282,7 +315,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
282
315
|
* * `origin`: A signer that has permissions to act as an agent of `ticker`.
|
|
283
316
|
* * `asset_id`: the [`AssetId`] associated to the asset.
|
|
284
317
|
* * `amount`: The amount of tokens that will be issued.
|
|
285
|
-
* * `
|
|
318
|
+
* * `asset_holder_kind`: The [`AssetHolderKind`] of the portfolio that will receive the minted tokens.
|
|
286
319
|
*
|
|
287
320
|
* # Permissions
|
|
288
321
|
* * Asset
|
|
@@ -296,14 +329,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
296
329
|
* * `InvalidGranularity` - If the amount to issue does not meet the granularity requirements.
|
|
297
330
|
* * `TotalSupplyOverflow` - If the total supply exceeds the maximum allowed limit.
|
|
298
331
|
**/
|
|
299
|
-
issue: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array,
|
|
300
|
-
|
|
332
|
+
issue: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, assetHolderKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
333
|
+
Account: any;
|
|
301
334
|
} | {
|
|
302
|
-
|
|
335
|
+
DefaultPortfolio: any;
|
|
336
|
+
} | {
|
|
337
|
+
UserPortfolio: any;
|
|
303
338
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
304
339
|
PolymeshPrimitivesAssetAssetId,
|
|
305
340
|
u128,
|
|
306
|
-
|
|
341
|
+
PolymeshPrimitivesAssetAssetHolderKind
|
|
307
342
|
]>;
|
|
308
343
|
/**
|
|
309
344
|
* Establishes a connection between a ticker and an AssetId.
|
|
@@ -371,6 +406,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
371
406
|
preApproveAsset: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
372
407
|
PolymeshPrimitivesAssetAssetId
|
|
373
408
|
]>;
|
|
409
|
+
/**
|
|
410
|
+
* Receiver affirms a pending asset transfer.
|
|
411
|
+
*
|
|
412
|
+
* If someone tries to transfer asset to an account that requires receiver affirmations, then the receiver will need to affirm the transfer
|
|
413
|
+
* before the transfer is executed.
|
|
414
|
+
*
|
|
415
|
+
* # Arguments
|
|
416
|
+
* * `origin` - The origin of the call, which will be the receiver of the assets.
|
|
417
|
+
* * `transfer_id` - The [`InstructionId`] associated to the pending transfer.
|
|
418
|
+
*
|
|
419
|
+
* # Permissions
|
|
420
|
+
* * Asset
|
|
421
|
+
* * Portfolio
|
|
422
|
+
*
|
|
423
|
+
* # Events
|
|
424
|
+
* * `InstructionAffirmed` - The asset transfer settlement was affirmed by the caller as the receiver.
|
|
425
|
+
* * `InstructionExecuted` - The asset transfer settlement was executed successfully.
|
|
426
|
+
* * `AssetBalanceUpdated` - The asset balance was updated for both the sender and receiver portfolios.
|
|
427
|
+
*
|
|
428
|
+
* # Errors
|
|
429
|
+
* * `UnknownInstruction` - If the instruction associated to the given transfer ID does not exist.
|
|
430
|
+
* * `InvalidTransfer` - If the transfer validation check fails.
|
|
431
|
+
**/
|
|
432
|
+
receiverAffirmAssetTransfer: AugmentedSubmittable<(transferId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
433
|
+
u64
|
|
434
|
+
]>;
|
|
374
435
|
/**
|
|
375
436
|
* Redeems (i.e burns) existing tokens by reducing the balance of the caller's portfolio and the total supply of the asset.
|
|
376
437
|
*
|
|
@@ -380,7 +441,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
380
441
|
* * `origin`: is a signer that has permissions to act as an agent of `asset_id`.
|
|
381
442
|
* * `asset_id`: the [`AssetId`] associated to the asset.
|
|
382
443
|
* * `value`: amount of tokens to redeem.
|
|
383
|
-
* * `
|
|
444
|
+
* * `asset_holder_kind`: the [`AssetHolderKind`] that will have its balance reduced.
|
|
384
445
|
*
|
|
385
446
|
* # Permissions
|
|
386
447
|
* * Asset
|
|
@@ -394,14 +455,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
394
455
|
* * `InvalidGranularity` - If the value to redeem does not meet the granularity requirements.
|
|
395
456
|
* * `TotalSupplyOverflow` - If the total supply exceeds the maximum allowed limit.
|
|
396
457
|
**/
|
|
397
|
-
redeem: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, value: u128 | AnyNumber | Uint8Array,
|
|
398
|
-
|
|
458
|
+
redeem: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, assetHolderKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
459
|
+
Account: any;
|
|
460
|
+
} | {
|
|
461
|
+
DefaultPortfolio: any;
|
|
399
462
|
} | {
|
|
400
|
-
|
|
463
|
+
UserPortfolio: any;
|
|
401
464
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
402
465
|
PolymeshPrimitivesAssetAssetId,
|
|
403
466
|
u128,
|
|
404
|
-
|
|
467
|
+
PolymeshPrimitivesAssetAssetHolderKind
|
|
405
468
|
]>;
|
|
406
469
|
/**
|
|
407
470
|
* Registers and set local asset metadata.
|
|
@@ -537,6 +600,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
537
600
|
registerUniqueTicker: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
538
601
|
PolymeshPrimitivesTicker
|
|
539
602
|
]>;
|
|
603
|
+
/**
|
|
604
|
+
* Reject a pending asset transfer.
|
|
605
|
+
*
|
|
606
|
+
* If someone tries to transfer asset to an account that requires receiver affirmations, then the receiver can reject the transfer.
|
|
607
|
+
* The sender can also reject the transfer before the receiver affirms it.
|
|
608
|
+
*
|
|
609
|
+
* # Arguments
|
|
610
|
+
* * `origin` - The origin of the call, which can be either the sender or receiver.
|
|
611
|
+
* * `transfer_id` - The [`InstructionId`] associated to the pending transfer.
|
|
612
|
+
*
|
|
613
|
+
* # Permissions
|
|
614
|
+
* * Asset
|
|
615
|
+
* * Portfolio
|
|
616
|
+
*
|
|
617
|
+
* # Events
|
|
618
|
+
* * `InstructionRejected` - The asset transfer settlement was rejected by the caller.
|
|
619
|
+
*
|
|
620
|
+
* # Errors
|
|
621
|
+
* * `InvalidInstructionStatusForRejection` - Either the instruction doesn't exist or it has already been executed or rejected.
|
|
622
|
+
**/
|
|
623
|
+
rejectAssetTransfer: AugmentedSubmittable<(transferId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
624
|
+
u64
|
|
625
|
+
]>;
|
|
540
626
|
/**
|
|
541
627
|
* Removes the pre-approval of the asset for all identities.
|
|
542
628
|
*
|
|
@@ -778,6 +864,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
778
864
|
PolymeshPrimitivesAssetAssetId,
|
|
779
865
|
Bytes
|
|
780
866
|
]>;
|
|
867
|
+
/**
|
|
868
|
+
* Transfer assets from the caller's default portfolio to the target address's default portfolio.
|
|
869
|
+
*
|
|
870
|
+
* The settlement engine is used to perform the asset transfer.
|
|
871
|
+
*
|
|
872
|
+
* # Arguments
|
|
873
|
+
* * `origin` - The origin of the call, which will be the sender of the assets.
|
|
874
|
+
* * `asset_id` - The [`AssetId`] associated to the asset.
|
|
875
|
+
* * `to` - The target address to which the assets will be sent.
|
|
876
|
+
* * `amount` - The [`Balance`] of tokens that will be transferred.
|
|
877
|
+
* * `memo` - An optional [`Memo`] that can be attached to the transfer instruction.
|
|
878
|
+
*
|
|
879
|
+
* # Permissions
|
|
880
|
+
* * Asset
|
|
881
|
+
* * Portfolio
|
|
882
|
+
*
|
|
883
|
+
* # Events
|
|
884
|
+
* * `CreatedAssetTransfer` - When an asset transfer instruction is created.
|
|
885
|
+
* * `InstructionCreated` - The asset transfer settlement was created.
|
|
886
|
+
* * `InstructionAffirmed` - The asset transfer settlement was affirmed by the caller as the sender.
|
|
887
|
+
* * `InstructionAutomaticallyAffirmed` - If the receiver pre-approved the asset, the instruction is automatically affirmed for the receiver.
|
|
888
|
+
* * `InstructionExecuted` - The asset transfer settlement was executed successfully (if the receiver pre-approved the asset).
|
|
889
|
+
*
|
|
890
|
+
* # Errors
|
|
891
|
+
* * `InsufficientBalance` - If the sender's balance is not sufficient to cover the transfer amount.
|
|
892
|
+
* * `InvalidTransfer` - If the transfer validation check fails.
|
|
893
|
+
* * `ReceiverIdentityNotFound` - If the receiver's identity is not found.
|
|
894
|
+
* * `UnexpectedOFFChainAsset` - If the asset could not be found on-chain.
|
|
895
|
+
* * `MissingIdentity` - The caller doesn't have an identity.
|
|
896
|
+
**/
|
|
897
|
+
transferAsset: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, to: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, memo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string) => SubmittableExtrinsic<ApiType>, [
|
|
898
|
+
PolymeshPrimitivesAssetAssetId,
|
|
899
|
+
AccountId32,
|
|
900
|
+
u128,
|
|
901
|
+
Option<PolymeshPrimitivesMemo>
|
|
902
|
+
]>;
|
|
781
903
|
/**
|
|
782
904
|
* Unfreezes transfers of a given asset.
|
|
783
905
|
*
|
|
@@ -1209,6 +1331,130 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1209
1331
|
]>;
|
|
1210
1332
|
};
|
|
1211
1333
|
base: {};
|
|
1334
|
+
beefy: {
|
|
1335
|
+
/**
|
|
1336
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
1337
|
+
* equivocation proof and validate the given key ownership proof
|
|
1338
|
+
* against the extracted offender. If both are valid, the offence
|
|
1339
|
+
* will be reported.
|
|
1340
|
+
**/
|
|
1341
|
+
reportDoubleVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
1342
|
+
first?: any;
|
|
1343
|
+
second?: any;
|
|
1344
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1345
|
+
session?: any;
|
|
1346
|
+
trieNodes?: any;
|
|
1347
|
+
validatorCount?: any;
|
|
1348
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1349
|
+
SpConsensusBeefyDoubleVotingProof,
|
|
1350
|
+
SpSessionMembershipProof
|
|
1351
|
+
]>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
1354
|
+
* equivocation proof and validate the given key ownership proof
|
|
1355
|
+
* against the extracted offender. If both are valid, the offence
|
|
1356
|
+
* will be reported.
|
|
1357
|
+
*
|
|
1358
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1359
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1360
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1361
|
+
* reporter.
|
|
1362
|
+
**/
|
|
1363
|
+
reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
1364
|
+
first?: any;
|
|
1365
|
+
second?: any;
|
|
1366
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1367
|
+
session?: any;
|
|
1368
|
+
trieNodes?: any;
|
|
1369
|
+
validatorCount?: any;
|
|
1370
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1371
|
+
SpConsensusBeefyDoubleVotingProof,
|
|
1372
|
+
SpSessionMembershipProof
|
|
1373
|
+
]>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
1376
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1377
|
+
* If both are valid, the offence will be reported.
|
|
1378
|
+
**/
|
|
1379
|
+
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
|
|
1380
|
+
vote?: any;
|
|
1381
|
+
ancestryProof?: any;
|
|
1382
|
+
header?: any;
|
|
1383
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1384
|
+
session?: any;
|
|
1385
|
+
trieNodes?: any;
|
|
1386
|
+
validatorCount?: any;
|
|
1387
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1388
|
+
SpConsensusBeefyForkVotingProofAncestryProof,
|
|
1389
|
+
SpSessionMembershipProof
|
|
1390
|
+
]>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
1393
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1394
|
+
* If both are valid, the offence will be reported.
|
|
1395
|
+
*
|
|
1396
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1397
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1398
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1399
|
+
* reporter.
|
|
1400
|
+
**/
|
|
1401
|
+
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
|
|
1402
|
+
vote?: any;
|
|
1403
|
+
ancestryProof?: any;
|
|
1404
|
+
header?: any;
|
|
1405
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1406
|
+
session?: any;
|
|
1407
|
+
trieNodes?: any;
|
|
1408
|
+
validatorCount?: any;
|
|
1409
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1410
|
+
SpConsensusBeefyForkVotingProofAncestryProof,
|
|
1411
|
+
SpSessionMembershipProof
|
|
1412
|
+
]>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
1415
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1416
|
+
* If both are valid, the offence will be reported.
|
|
1417
|
+
**/
|
|
1418
|
+
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
1419
|
+
vote?: any;
|
|
1420
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1421
|
+
session?: any;
|
|
1422
|
+
trieNodes?: any;
|
|
1423
|
+
validatorCount?: any;
|
|
1424
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1425
|
+
SpConsensusBeefyFutureBlockVotingProof,
|
|
1426
|
+
SpSessionMembershipProof
|
|
1427
|
+
]>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
1430
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1431
|
+
* If both are valid, the offence will be reported.
|
|
1432
|
+
*
|
|
1433
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1434
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1435
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1436
|
+
* reporter.
|
|
1437
|
+
**/
|
|
1438
|
+
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
1439
|
+
vote?: any;
|
|
1440
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1441
|
+
session?: any;
|
|
1442
|
+
trieNodes?: any;
|
|
1443
|
+
validatorCount?: any;
|
|
1444
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1445
|
+
SpConsensusBeefyFutureBlockVotingProof,
|
|
1446
|
+
SpSessionMembershipProof
|
|
1447
|
+
]>;
|
|
1448
|
+
/**
|
|
1449
|
+
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
|
|
1450
|
+
* future.
|
|
1451
|
+
*
|
|
1452
|
+
* Note: `delay_in_blocks` has to be at least 1.
|
|
1453
|
+
**/
|
|
1454
|
+
setNewGenesis: AugmentedSubmittable<(delayInBlocks: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1455
|
+
u32
|
|
1456
|
+
]>;
|
|
1457
|
+
};
|
|
1212
1458
|
capitalDistribution: {
|
|
1213
1459
|
/**
|
|
1214
1460
|
* Claim a benefit of the capital distribution attached to `ca_id`.
|
|
@@ -1370,103 +1616,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1370
1616
|
PalletCorporateActionsCaId
|
|
1371
1617
|
]>;
|
|
1372
1618
|
};
|
|
1373
|
-
cddServiceProviders: {
|
|
1374
|
-
/**
|
|
1375
|
-
* Allows the calling member to *unilaterally quit* without this being subject to a GC
|
|
1376
|
-
* vote.
|
|
1377
|
-
*
|
|
1378
|
-
* # Arguments
|
|
1379
|
-
* * `origin` - Member of committee who wants to quit.
|
|
1380
|
-
*
|
|
1381
|
-
* # Error
|
|
1382
|
-
*
|
|
1383
|
-
* * Only primary key can abdicate.
|
|
1384
|
-
* * Last member of a group cannot abdicate.
|
|
1385
|
-
**/
|
|
1386
|
-
abdicateMembership: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1387
|
-
/**
|
|
1388
|
-
* Adds a member `who` to the group. May only be called from `AddOrigin` or root.
|
|
1389
|
-
*
|
|
1390
|
-
* # Arguments
|
|
1391
|
-
* * `origin` - Origin representing `AddOrigin` or root
|
|
1392
|
-
* * `who` - IdentityId to be added to the group.
|
|
1393
|
-
**/
|
|
1394
|
-
addMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1395
|
-
PolymeshPrimitivesIdentityId
|
|
1396
|
-
]>;
|
|
1397
|
-
/**
|
|
1398
|
-
* Disables a member at specific moment.
|
|
1399
|
-
*
|
|
1400
|
-
* Please note that if member is already revoked (a "valid member"), its revocation
|
|
1401
|
-
* time-stamp will be updated.
|
|
1402
|
-
*
|
|
1403
|
-
* Any disabled member should NOT allow to act like an active member of the group. For
|
|
1404
|
-
* instance, a disabled CDD member should NOT be able to generate a CDD claim. However any
|
|
1405
|
-
* generated claim issued before `at` would be considered as a valid one.
|
|
1406
|
-
*
|
|
1407
|
-
* If you want to invalidate any generated claim, you should use `Self::remove_member`.
|
|
1408
|
-
*
|
|
1409
|
-
* # Arguments
|
|
1410
|
-
* * `at` - Revocation time-stamp.
|
|
1411
|
-
* * `who` - Target member of the group.
|
|
1412
|
-
* * `expiry` - Time-stamp when `who` is removed from CDD. As soon as it is expired, the
|
|
1413
|
-
* generated claims will be "invalid" as `who` is not considered a member of the group.
|
|
1414
|
-
**/
|
|
1415
|
-
disableMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array, expiry: Option<u64> | null | Uint8Array | u64 | AnyNumber, at: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
1416
|
-
PolymeshPrimitivesIdentityId,
|
|
1417
|
-
Option<u64>,
|
|
1418
|
-
Option<u64>
|
|
1419
|
-
]>;
|
|
1420
|
-
/**
|
|
1421
|
-
* Removes a member `who` from the set. May only be called from `RemoveOrigin` or root.
|
|
1422
|
-
*
|
|
1423
|
-
* Any claim previously generated by this member is not valid as a group claim. For
|
|
1424
|
-
* instance, if a CDD member group generated a claim for a target identity and then it is
|
|
1425
|
-
* removed, that claim will be invalid. In case you want to keep the validity of generated
|
|
1426
|
-
* claims, you have to use `Self::disable_member` function
|
|
1427
|
-
*
|
|
1428
|
-
* # Arguments
|
|
1429
|
-
* * `origin` - Origin representing `RemoveOrigin` or root
|
|
1430
|
-
* * `who` - IdentityId to be removed from the group.
|
|
1431
|
-
**/
|
|
1432
|
-
removeMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1433
|
-
PolymeshPrimitivesIdentityId
|
|
1434
|
-
]>;
|
|
1435
|
-
/**
|
|
1436
|
-
* Changes the membership to a new set, disregarding the existing membership.
|
|
1437
|
-
* May only be called from `ResetOrigin` or root.
|
|
1438
|
-
*
|
|
1439
|
-
* # Arguments
|
|
1440
|
-
* * `origin` - Origin representing `ResetOrigin` or root
|
|
1441
|
-
* * `members` - New set of identities
|
|
1442
|
-
**/
|
|
1443
|
-
resetMembers: AugmentedSubmittable<(members: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
1444
|
-
Vec<PolymeshPrimitivesIdentityId>
|
|
1445
|
-
]>;
|
|
1446
|
-
/**
|
|
1447
|
-
* Change this group's limit for how many concurrent active members they may be.
|
|
1448
|
-
*
|
|
1449
|
-
* # Arguments
|
|
1450
|
-
* * `limit` - the number of active members there may be concurrently.
|
|
1451
|
-
**/
|
|
1452
|
-
setActiveMembersLimit: AugmentedSubmittable<(limit: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1453
|
-
u32
|
|
1454
|
-
]>;
|
|
1455
|
-
/**
|
|
1456
|
-
* Swaps out one member `remove` for another member `add`.
|
|
1457
|
-
*
|
|
1458
|
-
* May only be called from `SwapOrigin` or root.
|
|
1459
|
-
*
|
|
1460
|
-
* # Arguments
|
|
1461
|
-
* * `origin` - Origin representing `SwapOrigin` or root
|
|
1462
|
-
* * `remove` - IdentityId to be removed from the group.
|
|
1463
|
-
* * `add` - IdentityId to be added in place of `remove`.
|
|
1464
|
-
**/
|
|
1465
|
-
swapMember: AugmentedSubmittable<(remove: PolymeshPrimitivesIdentityId | string | Uint8Array, add: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1466
|
-
PolymeshPrimitivesIdentityId,
|
|
1467
|
-
PolymeshPrimitivesIdentityId
|
|
1468
|
-
]>;
|
|
1469
|
-
};
|
|
1470
1619
|
checkpoint: {
|
|
1471
1620
|
/**
|
|
1472
1621
|
* Creates a single checkpoint at the current time.
|
|
@@ -1501,11 +1650,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1501
1650
|
* # Permissions
|
|
1502
1651
|
* * Asset
|
|
1503
1652
|
**/
|
|
1504
|
-
createSchedule: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, schedule:
|
|
1653
|
+
createSchedule: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, schedule: PolymeshPrimitivesCheckpointScheduleCheckpoints | {
|
|
1505
1654
|
pending?: any;
|
|
1506
1655
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1507
1656
|
PolymeshPrimitivesAssetAssetId,
|
|
1508
|
-
|
|
1657
|
+
PolymeshPrimitivesCheckpointScheduleCheckpoints
|
|
1509
1658
|
]>;
|
|
1510
1659
|
/**
|
|
1511
1660
|
* Removes the checkpoint schedule of an asset identified by `id`.
|
|
@@ -2427,11 +2576,108 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2427
2576
|
Vec<PalletCorporateActionsBallotBallotVote>
|
|
2428
2577
|
]>;
|
|
2429
2578
|
};
|
|
2430
|
-
|
|
2579
|
+
didRegistrars: {
|
|
2431
2580
|
/**
|
|
2432
|
-
*
|
|
2581
|
+
* Allows the calling member to *unilaterally quit* without this being subject to a GC
|
|
2582
|
+
* vote.
|
|
2433
2583
|
*
|
|
2434
|
-
*
|
|
2584
|
+
* # Arguments
|
|
2585
|
+
* * `origin` - Member of committee who wants to quit.
|
|
2586
|
+
*
|
|
2587
|
+
* # Error
|
|
2588
|
+
*
|
|
2589
|
+
* * Only primary key can abdicate.
|
|
2590
|
+
* * Last member of a group cannot abdicate.
|
|
2591
|
+
**/
|
|
2592
|
+
abdicateMembership: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2593
|
+
/**
|
|
2594
|
+
* Adds a member `who` to the group. May only be called from `AddOrigin` or root.
|
|
2595
|
+
*
|
|
2596
|
+
* # Arguments
|
|
2597
|
+
* * `origin` - Origin representing `AddOrigin` or root
|
|
2598
|
+
* * `who` - IdentityId to be added to the group.
|
|
2599
|
+
**/
|
|
2600
|
+
addMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2601
|
+
PolymeshPrimitivesIdentityId
|
|
2602
|
+
]>;
|
|
2603
|
+
/**
|
|
2604
|
+
* Disables a member at specific moment.
|
|
2605
|
+
*
|
|
2606
|
+
* Please note that if member is already revoked (a "valid member"), its revocation
|
|
2607
|
+
* time-stamp will be updated.
|
|
2608
|
+
*
|
|
2609
|
+
* Any disabled member should NOT allow to act like an active member of the group. For
|
|
2610
|
+
* instance, a disabled CDD member should NOT be able to generate a CDD claim. However any
|
|
2611
|
+
* generated claim issued before `at` would be considered as a valid one.
|
|
2612
|
+
*
|
|
2613
|
+
* If you want to invalidate any generated claim, you should use `Self::remove_member`.
|
|
2614
|
+
*
|
|
2615
|
+
* # Arguments
|
|
2616
|
+
* * `at` - Revocation time-stamp.
|
|
2617
|
+
* * `who` - Target member of the group.
|
|
2618
|
+
* * `expiry` - Time-stamp when `who` is removed from CDD. As soon as it is expired, the
|
|
2619
|
+
* generated claims will be "invalid" as `who` is not considered a member of the group.
|
|
2620
|
+
**/
|
|
2621
|
+
disableMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array, expiry: Option<u64> | null | Uint8Array | u64 | AnyNumber, at: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
2622
|
+
PolymeshPrimitivesIdentityId,
|
|
2623
|
+
Option<u64>,
|
|
2624
|
+
Option<u64>
|
|
2625
|
+
]>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Removes a member `who` from the set. May only be called from `RemoveOrigin` or root.
|
|
2628
|
+
*
|
|
2629
|
+
* Any claim previously generated by this member is not valid as a group claim. For
|
|
2630
|
+
* instance, if a CDD member group generated a claim for a target identity and then it is
|
|
2631
|
+
* removed, that claim will be invalid. In case you want to keep the validity of generated
|
|
2632
|
+
* claims, you have to use `Self::disable_member` function
|
|
2633
|
+
*
|
|
2634
|
+
* # Arguments
|
|
2635
|
+
* * `origin` - Origin representing `RemoveOrigin` or root
|
|
2636
|
+
* * `who` - IdentityId to be removed from the group.
|
|
2637
|
+
**/
|
|
2638
|
+
removeMember: AugmentedSubmittable<(who: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2639
|
+
PolymeshPrimitivesIdentityId
|
|
2640
|
+
]>;
|
|
2641
|
+
/**
|
|
2642
|
+
* Changes the membership to a new set, disregarding the existing membership.
|
|
2643
|
+
* May only be called from `ResetOrigin` or root.
|
|
2644
|
+
*
|
|
2645
|
+
* # Arguments
|
|
2646
|
+
* * `origin` - Origin representing `ResetOrigin` or root
|
|
2647
|
+
* * `members` - New set of identities
|
|
2648
|
+
**/
|
|
2649
|
+
resetMembers: AugmentedSubmittable<(members: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
2650
|
+
Vec<PolymeshPrimitivesIdentityId>
|
|
2651
|
+
]>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Change this group's limit for how many concurrent active members they may be.
|
|
2654
|
+
*
|
|
2655
|
+
* # Arguments
|
|
2656
|
+
* * `limit` - the number of active members there may be concurrently.
|
|
2657
|
+
**/
|
|
2658
|
+
setActiveMembersLimit: AugmentedSubmittable<(limit: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2659
|
+
u32
|
|
2660
|
+
]>;
|
|
2661
|
+
/**
|
|
2662
|
+
* Swaps out one member `remove` for another member `add`.
|
|
2663
|
+
*
|
|
2664
|
+
* May only be called from `SwapOrigin` or root.
|
|
2665
|
+
*
|
|
2666
|
+
* # Arguments
|
|
2667
|
+
* * `origin` - Origin representing `SwapOrigin` or root
|
|
2668
|
+
* * `remove` - IdentityId to be removed from the group.
|
|
2669
|
+
* * `add` - IdentityId to be added in place of `remove`.
|
|
2670
|
+
**/
|
|
2671
|
+
swapMember: AugmentedSubmittable<(remove: PolymeshPrimitivesIdentityId | string | Uint8Array, add: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2672
|
+
PolymeshPrimitivesIdentityId,
|
|
2673
|
+
PolymeshPrimitivesIdentityId
|
|
2674
|
+
]>;
|
|
2675
|
+
};
|
|
2676
|
+
electionProviderMultiPhase: {
|
|
2677
|
+
/**
|
|
2678
|
+
* Trigger the governance fallback.
|
|
2679
|
+
*
|
|
2680
|
+
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
2435
2681
|
* calling [`Call::set_emergency_election_result`].
|
|
2436
2682
|
**/
|
|
2437
2683
|
governanceFallback: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
@@ -2773,12 +3019,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2773
3019
|
* instead of leaving it as a secondary key.
|
|
2774
3020
|
*
|
|
2775
3021
|
* # Arguments
|
|
2776
|
-
* * `
|
|
2777
|
-
* * `cdd_auth_id` Authorization from a CDD service provider
|
|
3022
|
+
* * `rotation_auth_id` Authorization from the owner who initiated the change
|
|
2778
3023
|
**/
|
|
2779
|
-
acceptPrimaryKey: AugmentedSubmittable<(rotationAuthId: u64 | AnyNumber | Uint8Array
|
|
2780
|
-
u64
|
|
2781
|
-
Option<u64>
|
|
3024
|
+
acceptPrimaryKey: AugmentedSubmittable<(rotationAuthId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3025
|
+
u64
|
|
2782
3026
|
]>;
|
|
2783
3027
|
/**
|
|
2784
3028
|
* Adds an authorization.
|
|
@@ -2804,7 +3048,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2804
3048
|
} | {
|
|
2805
3049
|
BecomeAgent: any;
|
|
2806
3050
|
} | {
|
|
2807
|
-
|
|
3051
|
+
OldAddRelayerPayingKey: any;
|
|
2808
3052
|
} | {
|
|
2809
3053
|
RotatePrimaryKeyToSecondary: any;
|
|
2810
3054
|
} | string | Uint8Array, expiry: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
@@ -2847,32 +3091,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2847
3091
|
*
|
|
2848
3092
|
* Keys are directly added to identity because each of them has an authorization.
|
|
2849
3093
|
*
|
|
2850
|
-
* # Arguments
|
|
2851
|
-
*
|
|
2852
|
-
*
|
|
2853
|
-
* - `additional_keys` which includes secondary keys,
|
|
3094
|
+
* # Arguments
|
|
3095
|
+
* * `origin` which must be the primary key of the identity `id`.
|
|
3096
|
+
* * `additional_keys` which includes secondary keys,
|
|
2854
3097
|
* coupled with authorization data, to add to target identity.
|
|
3098
|
+
* * `expires_at` expiration time for the authorizations.
|
|
2855
3099
|
*
|
|
2856
3100
|
* # Errors
|
|
2857
|
-
*
|
|
2858
|
-
*
|
|
3101
|
+
* * Can only called by primary key owner.
|
|
3102
|
+
* * Keys should be able to linked to any identity.
|
|
2859
3103
|
**/
|
|
2860
|
-
addSecondaryKeysWithAuthorization: AugmentedSubmittable<(additionalKeys: Vec<
|
|
3104
|
+
addSecondaryKeysWithAuthorization: AugmentedSubmittable<(additionalKeys: Vec<PolymeshPrimitivesIdentitySecondaryKeyWithAuth> | (PolymeshPrimitivesIdentitySecondaryKeyWithAuth | {
|
|
2861
3105
|
secondaryKey?: any;
|
|
2862
3106
|
authSignature?: any;
|
|
2863
3107
|
} | string | Uint8Array)[], expiresAt: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2864
|
-
Vec<
|
|
3108
|
+
Vec<PolymeshPrimitivesIdentitySecondaryKeyWithAuth>,
|
|
2865
3109
|
u64
|
|
2866
3110
|
]>;
|
|
2867
3111
|
/**
|
|
2868
3112
|
* Register `target_account` with a new Identity.
|
|
2869
3113
|
*
|
|
2870
3114
|
* # Failure
|
|
2871
|
-
* - `origin` has to be
|
|
2872
|
-
*
|
|
3115
|
+
* - `origin` has to be an active DID registrar. Inactive DID registrars cannot register new
|
|
3116
|
+
* identities.
|
|
2873
3117
|
* - `target_account` (primary key of the new Identity) can be linked to just one and only
|
|
2874
3118
|
* one identity.
|
|
2875
3119
|
* - External secondary keys can be linked to just one identity.
|
|
3120
|
+
*
|
|
3121
|
+
* @deprecated Use `register_did` instead. CDD claims are no longer enforced. Since 8.0.0.
|
|
2876
3122
|
**/
|
|
2877
3123
|
cddRegisterDid: AugmentedSubmittable<(targetAccount: AccountId32 | string | Uint8Array, secondaryKeys: Vec<PolymeshPrimitivesSecondaryKey> | (PolymeshPrimitivesSecondaryKey | {
|
|
2878
3124
|
key?: any;
|
|
@@ -2885,11 +3131,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2885
3131
|
* Register `target_account` with a new Identity and issue a CDD claim with a blank CddId
|
|
2886
3132
|
*
|
|
2887
3133
|
* # Failure
|
|
2888
|
-
* - `origin` has to be
|
|
2889
|
-
*
|
|
3134
|
+
* - `origin` has to be an active DID registrar. Inactive DID registrars cannot register new
|
|
3135
|
+
* identities.
|
|
2890
3136
|
* - `target_account` (primary key of the new Identity) can be linked to just one and only
|
|
2891
3137
|
* one identity.
|
|
2892
3138
|
* - External secondary keys can be linked to just one identity.
|
|
3139
|
+
*
|
|
3140
|
+
* @deprecated Use `register_did` instead. CDD claims are no longer enforced. Since 8.0.0.
|
|
2893
3141
|
**/
|
|
2894
3142
|
cddRegisterDidWithCdd: AugmentedSubmittable<(targetAccount: AccountId32 | string | Uint8Array, secondaryKeys: Vec<PolymeshPrimitivesSecondaryKey> | (PolymeshPrimitivesSecondaryKey | {
|
|
2895
3143
|
key?: any;
|
|
@@ -2899,57 +3147,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2899
3147
|
Vec<PolymeshPrimitivesSecondaryKey>,
|
|
2900
3148
|
Option<u64>
|
|
2901
3149
|
]>;
|
|
2902
|
-
/**
|
|
2903
|
-
* Set if CDD authorization is required for updating primary key of an identity.
|
|
2904
|
-
* Callable via root (governance)
|
|
2905
|
-
*
|
|
2906
|
-
* # Arguments
|
|
2907
|
-
* * `auth_required` CDD Authorization required or not
|
|
2908
|
-
**/
|
|
2909
|
-
changeCddRequirementForMkRotation: AugmentedSubmittable<(authRequired: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2910
|
-
bool
|
|
2911
|
-
]>;
|
|
2912
|
-
/**
|
|
2913
|
-
* Create a child identities.
|
|
2914
|
-
*
|
|
2915
|
-
* The new primary key for each child identity will need to sign (off-chain)
|
|
2916
|
-
* an authorization.
|
|
2917
|
-
*
|
|
2918
|
-
* Only the primary key can create child identities.
|
|
2919
|
-
*
|
|
2920
|
-
* # Arguments
|
|
2921
|
-
* - `child_keys` the keys that will become primary keys of their own child identity.
|
|
2922
|
-
*
|
|
2923
|
-
* # Errors
|
|
2924
|
-
* - `KeyNotAllowed` only the primary key can create a new identity.
|
|
2925
|
-
* - `AlreadyLinked` one of the keys is already linked to an identity.
|
|
2926
|
-
* - `DuplicateKey` one of the keys is included multiple times.
|
|
2927
|
-
* - `IsChildIdentity` the caller's identity is already a child identity and can't create child identities.
|
|
2928
|
-
**/
|
|
2929
|
-
createChildIdentities: AugmentedSubmittable<(childKeys: Vec<PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth> | (PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth | {
|
|
2930
|
-
key?: any;
|
|
2931
|
-
authSignature?: any;
|
|
2932
|
-
} | string | Uint8Array)[], expiresAt: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2933
|
-
Vec<PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth>,
|
|
2934
|
-
u64
|
|
2935
|
-
]>;
|
|
2936
|
-
/**
|
|
2937
|
-
* Create a child identity and make the `secondary_key` it's primary key.
|
|
2938
|
-
*
|
|
2939
|
-
* Only the primary key can create child identities.
|
|
2940
|
-
*
|
|
2941
|
-
* # Arguments
|
|
2942
|
-
* - `secondary_key` the secondary key that will become the primary key of the new identity.
|
|
2943
|
-
*
|
|
2944
|
-
* # Errors
|
|
2945
|
-
* - `KeyNotAllowed` only the primary key can create a new identity.
|
|
2946
|
-
* - `NotASigner` the `secondary_key` is not a secondary key of the caller's identity.
|
|
2947
|
-
* - `AccountKeyIsBeingUsed` the `secondary_key` can't be unlinked from it's current identity.
|
|
2948
|
-
* - `IsChildIdentity` the caller's identity is already a child identity and can't create child identities.
|
|
2949
|
-
**/
|
|
2950
|
-
createChildIdentity: AugmentedSubmittable<(secondaryKey: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2951
|
-
AccountId32
|
|
2952
|
-
]>;
|
|
2953
3150
|
/**
|
|
2954
3151
|
* It disables all secondary keys at `did` identity.
|
|
2955
3152
|
*
|
|
@@ -2969,17 +3166,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2969
3166
|
gcRevokeCddClaim: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2970
3167
|
PolymeshPrimitivesIdentityId
|
|
2971
3168
|
]>;
|
|
2972
|
-
/**
|
|
2973
|
-
* Invalidates any claim generated by `cdd` from `disable_from` timestamps.
|
|
2974
|
-
*
|
|
2975
|
-
* You can also define an expiration time,
|
|
2976
|
-
* which will invalidate all claims generated by that `cdd` and remove it as CDD member group.
|
|
2977
|
-
**/
|
|
2978
|
-
invalidateCddClaims: AugmentedSubmittable<(cdd: PolymeshPrimitivesIdentityId | string | Uint8Array, disableFrom: u64 | AnyNumber | Uint8Array, expiry: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
2979
|
-
PolymeshPrimitivesIdentityId,
|
|
2980
|
-
u64,
|
|
2981
|
-
Option<u64>
|
|
2982
|
-
]>;
|
|
2983
3169
|
/**
|
|
2984
3170
|
* Join an identity as a secondary key.
|
|
2985
3171
|
**/
|
|
@@ -3001,6 +3187,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3001
3187
|
registerCustomClaimType: AugmentedSubmittable<(ty: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3002
3188
|
Bytes
|
|
3003
3189
|
]>;
|
|
3190
|
+
/**
|
|
3191
|
+
* Register a new DID for the target account.
|
|
3192
|
+
*
|
|
3193
|
+
* Caller must be a DID registrar (formerly CDD provider).
|
|
3194
|
+
* No CDD claim is added - DID existence is sufficient for onboarding.
|
|
3195
|
+
*
|
|
3196
|
+
* Note: This extrinsic does NOT support secondary keys.
|
|
3197
|
+
* Use the deprecated `cdd_register_did` if secondary keys are needed.
|
|
3198
|
+
*
|
|
3199
|
+
* # Failure
|
|
3200
|
+
* - `origin` has to be an active DID registrar. Inactive DID registrars cannot register new
|
|
3201
|
+
* identities.
|
|
3202
|
+
* - `target_account` (primary key of the new Identity) can be linked to just one and only
|
|
3203
|
+
* one identity.
|
|
3204
|
+
**/
|
|
3205
|
+
registerDid: AugmentedSubmittable<(targetAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3206
|
+
AccountId32
|
|
3207
|
+
]>;
|
|
3004
3208
|
/**
|
|
3005
3209
|
* Removes an authorization.
|
|
3006
3210
|
* `_auth_issuer_pays` determines whether the issuer of the authorisation pays the transaction fee
|
|
@@ -3101,13 +3305,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3101
3305
|
* instead of unlinking the old primary key.
|
|
3102
3306
|
*
|
|
3103
3307
|
* # Arguments
|
|
3104
|
-
* * `
|
|
3105
|
-
* * `cdd_auth_id` Authorization from a CDD service provider
|
|
3308
|
+
* * `auth_id` Authorization from the owner who initiated the change
|
|
3106
3309
|
**/
|
|
3107
|
-
rotatePrimaryKeyToSecondary: AugmentedSubmittable<(authId: u64 | AnyNumber | Uint8Array
|
|
3108
|
-
u64
|
|
3109
|
-
Option<u64>
|
|
3310
|
+
rotatePrimaryKeyToSecondary: AugmentedSubmittable<(authId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3311
|
+
u64
|
|
3110
3312
|
]>;
|
|
3313
|
+
/**
|
|
3314
|
+
* Register for a new DID for the caller's account.
|
|
3315
|
+
*
|
|
3316
|
+
* This is callable by any account that is not already linked to an identity, and will create a new DID with the caller as the primary key.
|
|
3317
|
+
* This allows users to self onboard without needing to go through a DID registrar (formerly CDD provider).
|
|
3318
|
+
*
|
|
3319
|
+
* No CDD claim is added - DID existence is sufficient for onboarding.
|
|
3320
|
+
*
|
|
3321
|
+
* # Errors
|
|
3322
|
+
* - Caller must not already have an identity.
|
|
3323
|
+
**/
|
|
3324
|
+
selfRegisterDid: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3111
3325
|
/**
|
|
3112
3326
|
* Sets permissions for an specific `target_key` key.
|
|
3113
3327
|
*
|
|
@@ -3125,22 +3339,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3125
3339
|
* Re-enables all secondary keys of the caller's identity.
|
|
3126
3340
|
**/
|
|
3127
3341
|
unfreezeSecondaryKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3128
|
-
/**
|
|
3129
|
-
* Unlink a child identity from it's parent identity.
|
|
3130
|
-
*
|
|
3131
|
-
* Only the primary key of the parent or child identities can unlink the identities.
|
|
3132
|
-
*
|
|
3133
|
-
* # Arguments
|
|
3134
|
-
* - `child_did` the child identity to unlink from its parent identity.
|
|
3135
|
-
*
|
|
3136
|
-
* # Errors
|
|
3137
|
-
* - `KeyNotAllowed` only the primary key of either the parent or child identity can unlink the identities.
|
|
3138
|
-
* - `NoParentIdentity` the identity `child_did` doesn't have a parent identity.
|
|
3139
|
-
* - `NotParentOrChildIdentity` the caller's identity isn't the parent or child identity.
|
|
3140
|
-
**/
|
|
3141
|
-
unlinkChildIdentity: AugmentedSubmittable<(childDid: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3142
|
-
PolymeshPrimitivesIdentityId
|
|
3143
|
-
]>;
|
|
3144
3342
|
};
|
|
3145
3343
|
imOnline: {
|
|
3146
3344
|
/**
|
|
@@ -3474,8 +3672,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3474
3672
|
* # Arguments
|
|
3475
3673
|
* * `origin` - is a signer that has permissions to act as an agent of `asset_id`.
|
|
3476
3674
|
* * `nft_id` - the [`NFTId`] of the NFT to be transferred.
|
|
3477
|
-
* * `
|
|
3478
|
-
* * `
|
|
3675
|
+
* * `source` - the [`AssetHolder`] that currently holds the NFT.
|
|
3676
|
+
* * `destination_kind` - the [`AssetHolderKind`] of the caller's portfolio.
|
|
3479
3677
|
*
|
|
3480
3678
|
* # Permissions
|
|
3481
3679
|
* * Asset
|
|
@@ -3484,17 +3682,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3484
3682
|
controllerTransfer: AugmentedSubmittable<(nfts: PolymeshPrimitivesNftNfTs | {
|
|
3485
3683
|
assetId?: any;
|
|
3486
3684
|
ids?: any;
|
|
3487
|
-
} | string | Uint8Array,
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3685
|
+
} | string | Uint8Array, source: PolymeshPrimitivesAssetAssetHolder | {
|
|
3686
|
+
Portfolio: any;
|
|
3687
|
+
} | {
|
|
3688
|
+
Account: any;
|
|
3689
|
+
} | string | Uint8Array, destinationKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
3690
|
+
Account: any;
|
|
3492
3691
|
} | {
|
|
3493
|
-
|
|
3692
|
+
DefaultPortfolio: any;
|
|
3693
|
+
} | {
|
|
3694
|
+
UserPortfolio: any;
|
|
3494
3695
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3495
3696
|
PolymeshPrimitivesNftNfTs,
|
|
3496
|
-
|
|
3497
|
-
|
|
3697
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
3698
|
+
PolymeshPrimitivesAssetAssetHolderKind
|
|
3498
3699
|
]>;
|
|
3499
3700
|
/**
|
|
3500
3701
|
* Cretes a new `NFTCollection`.
|
|
@@ -3535,7 +3736,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3535
3736
|
* * `origin` - is a signer that has permissions to act as an agent of `asset_id`.
|
|
3536
3737
|
* * `asset_id` - the [`AssetId`] of the NFT collection.
|
|
3537
3738
|
* * `nft_metadata_attributes` - all mandatory metadata keys and values for the NFT.
|
|
3538
|
-
* - `
|
|
3739
|
+
* - `holdings_kind` - the [`AssetHolderKind`] that will receive the minted nft.
|
|
3539
3740
|
*
|
|
3540
3741
|
* ## Errors
|
|
3541
3742
|
* - `CollectionNotFound` - if the collection associated to the given asset_id has not been created.
|
|
@@ -3550,14 +3751,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3550
3751
|
issueNft: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, nftMetadataAttributes: Vec<PolymeshPrimitivesNftNftMetadataAttribute> | (PolymeshPrimitivesNftNftMetadataAttribute | {
|
|
3551
3752
|
key?: any;
|
|
3552
3753
|
value?: any;
|
|
3553
|
-
} | string | Uint8Array)[],
|
|
3554
|
-
|
|
3754
|
+
} | string | Uint8Array)[], holdingsKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
3755
|
+
Account: any;
|
|
3756
|
+
} | {
|
|
3757
|
+
DefaultPortfolio: any;
|
|
3555
3758
|
} | {
|
|
3556
|
-
|
|
3759
|
+
UserPortfolio: any;
|
|
3557
3760
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3558
3761
|
PolymeshPrimitivesAssetAssetId,
|
|
3559
3762
|
Vec<PolymeshPrimitivesNftNftMetadataAttribute>,
|
|
3560
|
-
|
|
3763
|
+
PolymeshPrimitivesAssetAssetHolderKind
|
|
3561
3764
|
]>;
|
|
3562
3765
|
/**
|
|
3563
3766
|
* Redeems the given NFT from the caller's portfolio.
|
|
@@ -3566,7 +3769,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3566
3769
|
* * `origin` - is a signer that has permissions to act as an agent of `asset_id`.
|
|
3567
3770
|
* * `asset_id` - the [`AssetId`] of the NFT collection.
|
|
3568
3771
|
* * `nft_id` - the id of the NFT to be burned.
|
|
3569
|
-
* * `
|
|
3772
|
+
* * `holdings_kind` - the [`AssetHolderKind`] that contains the nft.
|
|
3570
3773
|
*
|
|
3571
3774
|
* ## Errors
|
|
3572
3775
|
* - `CollectionNotFound` - if the collection associated to the given asset_id has not been created.
|
|
@@ -3576,16 +3779,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3576
3779
|
* * Asset
|
|
3577
3780
|
* * Portfolio
|
|
3578
3781
|
**/
|
|
3579
|
-
redeemNft: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, nftId: u64 | AnyNumber | Uint8Array,
|
|
3580
|
-
|
|
3782
|
+
redeemNft: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, nftId: u64 | AnyNumber | Uint8Array, holdingsKind: PolymeshPrimitivesAssetAssetHolderKind | {
|
|
3783
|
+
Account: any;
|
|
3784
|
+
} | {
|
|
3785
|
+
DefaultPortfolio: any;
|
|
3581
3786
|
} | {
|
|
3582
|
-
|
|
3787
|
+
UserPortfolio: any;
|
|
3583
3788
|
} | string | Uint8Array, numberOfKeys: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
3584
3789
|
PolymeshPrimitivesAssetAssetId,
|
|
3585
3790
|
u64,
|
|
3586
|
-
|
|
3791
|
+
PolymeshPrimitivesAssetAssetHolderKind,
|
|
3587
3792
|
Option<u8>
|
|
3588
3793
|
]>;
|
|
3794
|
+
/**
|
|
3795
|
+
* Transfer NFTs from the caller's account to another account.
|
|
3796
|
+
*
|
|
3797
|
+
* Same-identity transfers move NFTs directly. Cross-identity transfers
|
|
3798
|
+
* route through the settlement engine.
|
|
3799
|
+
*
|
|
3800
|
+
* For portfolio-based transfers, use `Settlement::transfer_funds`.
|
|
3801
|
+
*
|
|
3802
|
+
* # Arguments
|
|
3803
|
+
* * `origin` — Signed origin. Caller must have a registered DID.
|
|
3804
|
+
* * `nfts` — The NFTs to transfer.
|
|
3805
|
+
* * `to` — Destination account.
|
|
3806
|
+
* * `memo` — Optional memo attached to the transfer.
|
|
3807
|
+
**/
|
|
3808
|
+
transferNft: AugmentedSubmittable<(nfts: PolymeshPrimitivesNftNfTs | {
|
|
3809
|
+
assetId?: any;
|
|
3810
|
+
ids?: any;
|
|
3811
|
+
} | string | Uint8Array, to: AccountId32 | string | Uint8Array, memo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string) => SubmittableExtrinsic<ApiType>, [
|
|
3812
|
+
PolymeshPrimitivesNftNfTs,
|
|
3813
|
+
AccountId32,
|
|
3814
|
+
Option<PolymeshPrimitivesMemo>
|
|
3815
|
+
]>;
|
|
3589
3816
|
};
|
|
3590
3817
|
pips: {
|
|
3591
3818
|
/**
|
|
@@ -3890,6 +4117,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3890
4117
|
*
|
|
3891
4118
|
* # Arguments
|
|
3892
4119
|
* * `origin` - The origin of the call, which must be a GC member.
|
|
4120
|
+
* * `limit` - Weight witness for the expected queue length (typically the active PIP limit). The actual weight is refunded based on the real queue size.
|
|
3893
4121
|
*
|
|
3894
4122
|
* # Events
|
|
3895
4123
|
* * `SnapshotTaken` - Emitted when a snapshot is successfully taken, containing the ID of the snapshot and the queue of PIPs.
|
|
@@ -3897,7 +4125,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3897
4125
|
* # Errors
|
|
3898
4126
|
* * `NotACommitteeMember` - If the call is not made by a GC member.
|
|
3899
4127
|
**/
|
|
3900
|
-
snapshot: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, [
|
|
4128
|
+
snapshot: AugmentedSubmittable<(limit: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4129
|
+
u32
|
|
4130
|
+
]>;
|
|
3901
4131
|
/**
|
|
3902
4132
|
* Casts a vote either in favor or against a PIP with `id`.
|
|
3903
4133
|
* The "conviction" or strength of the vote is given by `deposit`, which is reserved.
|
|
@@ -4009,31 +4239,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4009
4239
|
]>;
|
|
4010
4240
|
};
|
|
4011
4241
|
polymeshContracts: {
|
|
4012
|
-
/**
|
|
4013
|
-
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
4014
|
-
*
|
|
4015
|
-
* The contract will be attached as a primary key of a newly created child identity of the caller.
|
|
4016
|
-
*
|
|
4017
|
-
* # Arguments
|
|
4018
|
-
* - `endowment`: Amount of POLYX to transfer to the contract.
|
|
4019
|
-
* - `gas_limit`: For how much gas the `deploy` code in the contract may at most consume.
|
|
4020
|
-
* - `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved from the caller to pay for the storage consumed.
|
|
4021
|
-
* - `code`: The WASM binary defining the smart contract.
|
|
4022
|
-
* - `data`: The input data to pass to the contract constructor.
|
|
4023
|
-
* - `salt`: Used for contract address derivation. By varying this, the same `code` can be used under the same identity.
|
|
4024
|
-
*
|
|
4025
|
-
**/
|
|
4026
|
-
instantiateWithCodeAsPrimaryKey: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
4027
|
-
refTime?: any;
|
|
4028
|
-
proofSize?: any;
|
|
4029
|
-
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4030
|
-
u128,
|
|
4031
|
-
SpWeightsWeightV2Weight,
|
|
4032
|
-
Option<u128>,
|
|
4033
|
-
Bytes,
|
|
4034
|
-
Bytes,
|
|
4035
|
-
Bytes
|
|
4036
|
-
]>;
|
|
4037
4242
|
/**
|
|
4038
4243
|
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
4039
4244
|
*
|
|
@@ -4076,33 +4281,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4076
4281
|
Bytes,
|
|
4077
4282
|
PolymeshPrimitivesSecondaryKeyPermissions
|
|
4078
4283
|
]>;
|
|
4079
|
-
/**
|
|
4080
|
-
* Instantiates a smart contract defining using the given `code_hash` and `salt`.
|
|
4081
|
-
*
|
|
4082
|
-
* Unlike `instantiate_with_code`, this assumes that at least one contract with the same WASM code has already been uploaded.
|
|
4083
|
-
*
|
|
4084
|
-
* The contract will be attached as a primary key of a newly created child identity of the caller.
|
|
4085
|
-
*
|
|
4086
|
-
* # Arguments
|
|
4087
|
-
* - `endowment`: amount of POLYX to transfer to the contract.
|
|
4088
|
-
* - `gas_limit`: for how much gas the `deploy` code in the contract may at most consume.
|
|
4089
|
-
* - `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved from the caller to pay for the storage consumed.
|
|
4090
|
-
* - `code_hash`: of an already uploaded WASM binary.
|
|
4091
|
-
* - `data`: The input data to pass to the contract constructor.
|
|
4092
|
-
* - `salt`: used for contract address derivation. By varying this, the same `code` can be used under the same identity.
|
|
4093
|
-
*
|
|
4094
|
-
**/
|
|
4095
|
-
instantiateWithHashAsPrimaryKey: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
4096
|
-
refTime?: any;
|
|
4097
|
-
proofSize?: any;
|
|
4098
|
-
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4099
|
-
u128,
|
|
4100
|
-
SpWeightsWeightV2Weight,
|
|
4101
|
-
Option<u128>,
|
|
4102
|
-
H256,
|
|
4103
|
-
Bytes,
|
|
4104
|
-
Bytes
|
|
4105
|
-
]>;
|
|
4106
4284
|
/**
|
|
4107
4285
|
* Instantiates a smart contract defining using the given `code_hash` and `salt`.
|
|
4108
4286
|
*
|
|
@@ -4169,6 +4347,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4169
4347
|
PolymeshContractsNextUpgrade
|
|
4170
4348
|
]>;
|
|
4171
4349
|
};
|
|
4350
|
+
polymeshTransactionPayment: {
|
|
4351
|
+
setDisableFees: AugmentedSubmittable<(value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4352
|
+
bool
|
|
4353
|
+
]>;
|
|
4354
|
+
};
|
|
4172
4355
|
portfolio: {
|
|
4173
4356
|
acceptPortfolioCustody: AugmentedSubmittable<(authId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4174
4357
|
u64
|
|
@@ -4205,13 +4388,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4205
4388
|
* Deletes a user portfolio. A portfolio can be deleted only if it has no funds.
|
|
4206
4389
|
*
|
|
4207
4390
|
* # Errors
|
|
4208
|
-
* * `PortfolioDoesNotExist` if `
|
|
4391
|
+
* * `PortfolioDoesNotExist` if `portfolio_number` doesn't reference a valid portfolio.
|
|
4209
4392
|
* * `PortfolioNotEmpty` if the portfolio still holds any asset
|
|
4210
4393
|
*
|
|
4211
4394
|
* # Permissions
|
|
4212
4395
|
* * Portfolio
|
|
4213
4396
|
**/
|
|
4214
|
-
deletePortfolio: AugmentedSubmittable<(
|
|
4397
|
+
deletePortfolio: AugmentedSubmittable<(portfolioNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4215
4398
|
u64
|
|
4216
4399
|
]>;
|
|
4217
4400
|
/**
|
|
@@ -4304,12 +4487,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4304
4487
|
* Renames a non-default portfolio.
|
|
4305
4488
|
*
|
|
4306
4489
|
* # Errors
|
|
4307
|
-
* * `PortfolioDoesNotExist` if `
|
|
4490
|
+
* * `PortfolioDoesNotExist` if `portfolio_number` doesn't reference a valid portfolio.
|
|
4308
4491
|
*
|
|
4309
4492
|
* # Permissions
|
|
4310
4493
|
* * Portfolio
|
|
4311
4494
|
**/
|
|
4312
|
-
renamePortfolio: AugmentedSubmittable<(
|
|
4495
|
+
renamePortfolio: AugmentedSubmittable<(portfolioNumber: u64 | AnyNumber | Uint8Array, newPortfolioName: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4313
4496
|
u64,
|
|
4314
4497
|
Bytes
|
|
4315
4498
|
]>;
|
|
@@ -4378,8 +4561,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4378
4561
|
* # Errors
|
|
4379
4562
|
* * `BadOrigin` - Only root allowed.
|
|
4380
4563
|
**/
|
|
4381
|
-
changeBaseFee: AugmentedSubmittable<(op:
|
|
4382
|
-
|
|
4564
|
+
changeBaseFee: AugmentedSubmittable<(op: PolymeshPrimitivesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | number | Uint8Array, baseFee: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4565
|
+
PolymeshPrimitivesProtocolFeeProtocolOp,
|
|
4383
4566
|
u128
|
|
4384
4567
|
]>;
|
|
4385
4568
|
/**
|
|
@@ -4394,109 +4577,390 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4394
4577
|
};
|
|
4395
4578
|
relayer: {
|
|
4396
4579
|
/**
|
|
4397
|
-
* Accepts a `paying_key
|
|
4580
|
+
* Accepts a subsidy from a `paying_key`.
|
|
4581
|
+
*
|
|
4582
|
+
* # Arguments
|
|
4583
|
+
* - `paying_key` the paying key that is subsidising the caller's `user_key`.
|
|
4584
|
+
**/
|
|
4585
|
+
acceptSubsidy: AugmentedSubmittable<(payingKey: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4586
|
+
AccountId32
|
|
4587
|
+
]>;
|
|
4588
|
+
/**
|
|
4589
|
+
* Approve a subsidy for a `user_key`.
|
|
4398
4590
|
*
|
|
4399
4591
|
* # Arguments
|
|
4400
|
-
* - `
|
|
4592
|
+
* - `user_key` the user key to subsidise.
|
|
4593
|
+
* - `polyx_limit` the initial POLYX limit for this subsidy.
|
|
4594
|
+
*
|
|
4595
|
+
**/
|
|
4596
|
+
approveSubsidy: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array, polyxLimit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4597
|
+
AccountId32,
|
|
4598
|
+
u128
|
|
4599
|
+
]>;
|
|
4600
|
+
/**
|
|
4601
|
+
* Decrease the available POLYX for a `user_key`.
|
|
4602
|
+
*
|
|
4603
|
+
* # Arguments
|
|
4604
|
+
* - `user_key` the user key of the subsidy to update the available POLYX.
|
|
4605
|
+
* - `amount` the amount of POLYX to remove from the subsidy of `user_key`.
|
|
4401
4606
|
*
|
|
4402
4607
|
* # Errors
|
|
4403
|
-
* - `
|
|
4404
|
-
* - `
|
|
4405
|
-
* - `
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4608
|
+
* - `NoPayingKey` if the `user_key` doesn't have a `paying_key`.
|
|
4609
|
+
* - `NotPayingKey` if `origin` doesn't match the current `paying_key`.
|
|
4610
|
+
* - `Overlow` if the subsidy has less then `amount` POLYX remaining.
|
|
4611
|
+
**/
|
|
4612
|
+
decreasePolyxLimit: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4613
|
+
AccountId32,
|
|
4614
|
+
u128
|
|
4615
|
+
]>;
|
|
4616
|
+
/**
|
|
4617
|
+
* Increase the available POLYX for a `user_key`.
|
|
4618
|
+
*
|
|
4619
|
+
* # Arguments
|
|
4620
|
+
* - `user_key` the user key of the subsidy to update the available POLYX.
|
|
4621
|
+
* - `amount` the amount of POLYX to add to the subsidy of `user_key`.
|
|
4622
|
+
*
|
|
4623
|
+
* # Errors
|
|
4624
|
+
* - `NoPayingKey` if the `user_key` doesn't have a `paying_key`.
|
|
4625
|
+
* - `NotPayingKey` if `origin` doesn't match the current `paying_key`.
|
|
4626
|
+
* - `Overlow` if the subsidy's remaining POLYX would have overflowed `u128::MAX`.
|
|
4627
|
+
**/
|
|
4628
|
+
increasePolyxLimit: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4629
|
+
AccountId32,
|
|
4630
|
+
u128
|
|
4631
|
+
]>;
|
|
4632
|
+
/**
|
|
4633
|
+
* Relay a call for a target from an origin
|
|
4634
|
+
*
|
|
4635
|
+
* Relaying in this context refers to the ability of origin to make a call on behalf of
|
|
4636
|
+
* target.
|
|
4637
|
+
*
|
|
4638
|
+
* Transaction and protocol fees are charged to origin.
|
|
4639
|
+
*
|
|
4640
|
+
* # Parameters
|
|
4641
|
+
* - `target`: Account to be relayed
|
|
4642
|
+
* - `signature`: Signature from target authorizing the relay
|
|
4643
|
+
* - `call`: Call to be relayed on behalf of target
|
|
4644
|
+
**/
|
|
4645
|
+
relayTx: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, signature: SpRuntimeMultiSignature | {
|
|
4646
|
+
Ed25519: any;
|
|
4647
|
+
} | {
|
|
4648
|
+
Sr25519: any;
|
|
4649
|
+
} | {
|
|
4650
|
+
Ecdsa: any;
|
|
4651
|
+
} | {
|
|
4652
|
+
Eth: any;
|
|
4653
|
+
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array, expiresAt: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4654
|
+
AccountId32,
|
|
4655
|
+
SpRuntimeMultiSignature,
|
|
4656
|
+
Call,
|
|
4413
4657
|
u64
|
|
4414
4658
|
]>;
|
|
4415
4659
|
/**
|
|
4416
|
-
*
|
|
4660
|
+
* Removes the `paying_key` from a `user_key`.
|
|
4661
|
+
*
|
|
4662
|
+
* This can only be called by either the `user_key` or the `paying_key`.
|
|
4663
|
+
*
|
|
4664
|
+
* # Arguments
|
|
4665
|
+
* - `user_key` the user key to remove the subsidy from.
|
|
4666
|
+
* - `paying_key` the paying key that was subsidising the `user_key`.
|
|
4667
|
+
*
|
|
4668
|
+
* # Errors
|
|
4669
|
+
* - `NoPayingKey` if the `user_key` doesn't have a `paying_key`.
|
|
4670
|
+
* - `NotPayingKey` if the `paying_key` doesn't match the current `paying_key`.
|
|
4671
|
+
**/
|
|
4672
|
+
removeSubsidy: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array, payingKey: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4673
|
+
AccountId32,
|
|
4674
|
+
AccountId32
|
|
4675
|
+
]>;
|
|
4676
|
+
/**
|
|
4677
|
+
* Revoke a previously approved subsidy.
|
|
4678
|
+
*
|
|
4679
|
+
* # Arguments
|
|
4680
|
+
* - `user_key` the user key to revoke the subsidy for.
|
|
4681
|
+
**/
|
|
4682
|
+
revokeSubsidy: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4683
|
+
AccountId32
|
|
4684
|
+
]>;
|
|
4685
|
+
/**
|
|
4686
|
+
* Updates the available POLYX for a `user_key`.
|
|
4687
|
+
*
|
|
4688
|
+
* # Arguments
|
|
4689
|
+
* - `user_key` the user key of the subsidy to update the available POLYX.
|
|
4690
|
+
* - `polyx_limit` the amount of POLYX available for subsidising the `user_key`.
|
|
4691
|
+
*
|
|
4692
|
+
* # Errors
|
|
4693
|
+
* - `NoPayingKey` if the `user_key` doesn't have a `paying_key`.
|
|
4694
|
+
* - `NotPayingKey` if `origin` doesn't match the current `paying_key`.
|
|
4695
|
+
**/
|
|
4696
|
+
updatePolyxLimit: AugmentedSubmittable<(userKey: AccountId32 | string | Uint8Array, polyxLimit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4697
|
+
AccountId32,
|
|
4698
|
+
u128
|
|
4699
|
+
]>;
|
|
4700
|
+
};
|
|
4701
|
+
revive: {
|
|
4702
|
+
/**
|
|
4703
|
+
* Makes a call to an account, optionally transferring some balance.
|
|
4704
|
+
*
|
|
4705
|
+
* # Parameters
|
|
4706
|
+
*
|
|
4707
|
+
* * `dest`: Address of the contract to call.
|
|
4708
|
+
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
4709
|
+
* * `weight_limit`: The weight limit enforced when executing the constructor.
|
|
4710
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
4711
|
+
* caller to pay for the storage consumed.
|
|
4712
|
+
* * `data`: The input data to pass to the contract.
|
|
4713
|
+
*
|
|
4714
|
+
* * If the account is a smart-contract account, the associated code will be
|
|
4715
|
+
* executed and any value will be transferred.
|
|
4716
|
+
* * If the account is a regular account, any value will be transferred.
|
|
4717
|
+
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
4718
|
+
* a regular account will be created and any value will be transferred.
|
|
4719
|
+
**/
|
|
4720
|
+
call: AugmentedSubmittable<(dest: H160 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
4721
|
+
refTime?: any;
|
|
4722
|
+
proofSize?: any;
|
|
4723
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4724
|
+
H160,
|
|
4725
|
+
Compact<u128>,
|
|
4726
|
+
SpWeightsWeightV2Weight,
|
|
4727
|
+
Compact<u128>,
|
|
4728
|
+
Bytes
|
|
4729
|
+
]>;
|
|
4730
|
+
/**
|
|
4731
|
+
* Dispatch an `call` with the origin set to the callers fallback address.
|
|
4732
|
+
*
|
|
4733
|
+
* Every `AccountId32` can control its corresponding fallback account. The fallback account
|
|
4734
|
+
* is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
|
|
4735
|
+
* recovery function in case an `AccountId20` was used without creating a mapping first.
|
|
4736
|
+
**/
|
|
4737
|
+
dispatchAsFallbackAccount: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4738
|
+
Call
|
|
4739
|
+
]>;
|
|
4740
|
+
/**
|
|
4741
|
+
* Same as [`Self::call`], but intended to be dispatched **only**
|
|
4742
|
+
* by an EVM transaction through the EVM compatibility layer.
|
|
4743
|
+
*
|
|
4744
|
+
* # Parameters
|
|
4745
|
+
*
|
|
4746
|
+
* * `dest`: The Ethereum address of the account to be called
|
|
4747
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
4748
|
+
* * `weight_limit`: The gas limit used to derive the transaction weight for transaction
|
|
4749
|
+
* payment
|
|
4750
|
+
* * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
|
|
4751
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
4752
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
4753
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
4754
|
+
* is used for building the Ethereum transaction root.
|
|
4755
|
+
* * effective_gas_price: the price of a unit of gas
|
|
4756
|
+
* * encoded len: the byte code size of the `eth_transact` extrinsic
|
|
4757
|
+
**/
|
|
4758
|
+
ethCall: AugmentedSubmittable<(dest: H160 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
4759
|
+
refTime?: any;
|
|
4760
|
+
proofSize?: any;
|
|
4761
|
+
} | string | Uint8Array, ethGasLimit: U256 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, transactionEncoded: Bytes | string | Uint8Array, effectiveGasPrice: U256 | AnyNumber | Uint8Array, encodedLen: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4762
|
+
H160,
|
|
4763
|
+
U256,
|
|
4764
|
+
SpWeightsWeightV2Weight,
|
|
4765
|
+
U256,
|
|
4766
|
+
Bytes,
|
|
4767
|
+
Bytes,
|
|
4768
|
+
U256,
|
|
4769
|
+
u32
|
|
4770
|
+
]>;
|
|
4771
|
+
/**
|
|
4772
|
+
* Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
|
|
4773
|
+
* by an EVM transaction through the EVM compatibility layer.
|
|
4774
|
+
*
|
|
4775
|
+
* # Parameters
|
|
4776
|
+
*
|
|
4777
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
4778
|
+
* * `weight_limit`: The gas limit used to derive the transaction weight for transaction
|
|
4779
|
+
* payment
|
|
4780
|
+
* * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
|
|
4781
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
4782
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
4783
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
4784
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
4785
|
+
* is used for building the Ethereum transaction root.
|
|
4786
|
+
* * effective_gas_price: the price of a unit of gas
|
|
4787
|
+
* * encoded len: the byte code size of the `eth_transact` extrinsic
|
|
4788
|
+
*
|
|
4789
|
+
* Calling this dispatchable ensures that the origin's nonce is bumped only once,
|
|
4790
|
+
* via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
|
|
4791
|
+
* also bumps the nonce after contract instantiation, since it may be invoked multiple
|
|
4792
|
+
* times within a batch call transaction.
|
|
4793
|
+
**/
|
|
4794
|
+
ethInstantiateWithCode: AugmentedSubmittable<(value: U256 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
4795
|
+
refTime?: any;
|
|
4796
|
+
proofSize?: any;
|
|
4797
|
+
} | string | Uint8Array, ethGasLimit: U256 | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, transactionEncoded: Bytes | string | Uint8Array, effectiveGasPrice: U256 | AnyNumber | Uint8Array, encodedLen: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4798
|
+
U256,
|
|
4799
|
+
SpWeightsWeightV2Weight,
|
|
4800
|
+
U256,
|
|
4801
|
+
Bytes,
|
|
4802
|
+
Bytes,
|
|
4803
|
+
Bytes,
|
|
4804
|
+
U256,
|
|
4805
|
+
u32
|
|
4806
|
+
]>;
|
|
4807
|
+
/**
|
|
4808
|
+
* Executes a Substrate runtime call from an Ethereum transaction.
|
|
4809
|
+
*
|
|
4810
|
+
* This dispatchable is intended to be called **only** through the EVM compatibility
|
|
4811
|
+
* layer. The provided call will be dispatched using `RawOrigin::Signed`.
|
|
4812
|
+
*
|
|
4813
|
+
* # Parameters
|
|
4814
|
+
*
|
|
4815
|
+
* * `origin`: Must be an [`Origin::EthTransaction`] origin.
|
|
4816
|
+
* * `call`: The Substrate runtime call to execute.
|
|
4817
|
+
* * `transaction_encoded`: The RLP encoding of the Ethereum transaction,
|
|
4818
|
+
**/
|
|
4819
|
+
ethSubstrateCall: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, transactionEncoded: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4820
|
+
Call,
|
|
4821
|
+
Bytes
|
|
4822
|
+
]>;
|
|
4823
|
+
/**
|
|
4824
|
+
* A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
|
|
4825
|
+
*
|
|
4826
|
+
* # Parameters
|
|
4827
|
+
*
|
|
4828
|
+
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
4829
|
+
*
|
|
4830
|
+
* # Note
|
|
4831
|
+
*
|
|
4832
|
+
* This call cannot be dispatched directly; attempting to do so will result in a failed
|
|
4833
|
+
* transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
|
|
4834
|
+
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
|
4835
|
+
* signer and validating the transaction.
|
|
4836
|
+
**/
|
|
4837
|
+
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4838
|
+
Bytes
|
|
4839
|
+
]>;
|
|
4840
|
+
/**
|
|
4841
|
+
* Instantiates a contract from a previously deployed vm binary.
|
|
4842
|
+
*
|
|
4843
|
+
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
4844
|
+
* code deployment step. Instead, the `code_hash` of an on-chain deployed vm binary
|
|
4845
|
+
* must be supplied.
|
|
4846
|
+
**/
|
|
4847
|
+
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
4848
|
+
refTime?: any;
|
|
4849
|
+
proofSize?: any;
|
|
4850
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option<U8aFixed> | null | Uint8Array | U8aFixed | string) => SubmittableExtrinsic<ApiType>, [
|
|
4851
|
+
Compact<u128>,
|
|
4852
|
+
SpWeightsWeightV2Weight,
|
|
4853
|
+
Compact<u128>,
|
|
4854
|
+
H256,
|
|
4855
|
+
Bytes,
|
|
4856
|
+
Option<U8aFixed>
|
|
4857
|
+
]>;
|
|
4858
|
+
/**
|
|
4859
|
+
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
4860
|
+
* some balance.
|
|
4861
|
+
*
|
|
4862
|
+
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
4863
|
+
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
4864
|
+
* also check the documentation of [`Self::upload_code`].
|
|
4865
|
+
*
|
|
4866
|
+
* # Parameters
|
|
4867
|
+
*
|
|
4868
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
4869
|
+
* * `weight_limit`: The weight limit enforced when executing the constructor.
|
|
4870
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
4871
|
+
* from the caller to pay for the storage consumed.
|
|
4872
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
4873
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
4874
|
+
* * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
|
|
4875
|
+
* semantics are used. If `None` then `CRATE1` is used.
|
|
4417
4876
|
*
|
|
4418
|
-
* # Arguments
|
|
4419
|
-
* - `user_key` the user key of the subsidy to update the available POLYX.
|
|
4420
|
-
* - `amount` the amount of POLYX to remove from the subsidy of `user_key`.
|
|
4421
4877
|
*
|
|
4422
|
-
*
|
|
4423
|
-
*
|
|
4424
|
-
* - `
|
|
4425
|
-
* -
|
|
4426
|
-
* -
|
|
4878
|
+
* Instantiation is executed as follows:
|
|
4879
|
+
*
|
|
4880
|
+
* - The supplied `code` is deployed, and a `code_hash` is created for that code.
|
|
4881
|
+
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
4882
|
+
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
4883
|
+
* - The smart-contract account is created at the computed address.
|
|
4884
|
+
* - The `value` is transferred to the new account.
|
|
4885
|
+
* - The `deploy` function is executed in the context of the newly-created account.
|
|
4427
4886
|
**/
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4887
|
+
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
4888
|
+
refTime?: any;
|
|
4889
|
+
proofSize?: any;
|
|
4890
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option<U8aFixed> | null | Uint8Array | U8aFixed | string) => SubmittableExtrinsic<ApiType>, [
|
|
4891
|
+
Compact<u128>,
|
|
4892
|
+
SpWeightsWeightV2Weight,
|
|
4893
|
+
Compact<u128>,
|
|
4894
|
+
Bytes,
|
|
4895
|
+
Bytes,
|
|
4896
|
+
Option<U8aFixed>
|
|
4431
4897
|
]>;
|
|
4432
4898
|
/**
|
|
4433
|
-
*
|
|
4899
|
+
* Register the callers account id so that it can be used in contract interactions.
|
|
4434
4900
|
*
|
|
4435
|
-
*
|
|
4436
|
-
*
|
|
4437
|
-
|
|
4901
|
+
* This will error if the origin is already mapped or is a eth native `Address20`. It will
|
|
4902
|
+
* take a deposit that can be released by calling [`Self::unmap_account`].
|
|
4903
|
+
**/
|
|
4904
|
+
mapAccount: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4905
|
+
/**
|
|
4906
|
+
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
4438
4907
|
*
|
|
4439
|
-
*
|
|
4440
|
-
*
|
|
4441
|
-
* - `NotPayingKey` if `origin` doesn't match the current `paying_key`.
|
|
4442
|
-
* - `UnauthorizedCaller` if `origin` is not authorized to call this extrinsic.
|
|
4443
|
-
* - `Overlow` if the subsidy's remaining POLYX would have overflowed `u128::MAX`.
|
|
4908
|
+
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
4909
|
+
* not used by any contract.
|
|
4444
4910
|
**/
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
u128
|
|
4911
|
+
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4912
|
+
H256
|
|
4448
4913
|
]>;
|
|
4449
4914
|
/**
|
|
4450
|
-
*
|
|
4915
|
+
* Privileged function that changes the code of an existing contract.
|
|
4451
4916
|
*
|
|
4452
|
-
*
|
|
4453
|
-
*
|
|
4454
|
-
* - `paying_key` the paying key that was subsidising the `user_key`.
|
|
4917
|
+
* This takes care of updating refcounts and all other necessary operations. Returns
|
|
4918
|
+
* an error if either the `code_hash` or `dest` do not exist.
|
|
4455
4919
|
*
|
|
4456
|
-
* #
|
|
4457
|
-
*
|
|
4458
|
-
*
|
|
4459
|
-
*
|
|
4460
|
-
*
|
|
4920
|
+
* # Note
|
|
4921
|
+
*
|
|
4922
|
+
* This does **not** change the address of the contract in question. This means
|
|
4923
|
+
* that the contract address is no longer derived from its code hash after calling
|
|
4924
|
+
* this dispatchable.
|
|
4461
4925
|
**/
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4926
|
+
setCode: AugmentedSubmittable<(dest: H160 | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4927
|
+
H160,
|
|
4928
|
+
H256
|
|
4465
4929
|
]>;
|
|
4466
4930
|
/**
|
|
4467
|
-
*
|
|
4468
|
-
*
|
|
4469
|
-
* # Arguments
|
|
4470
|
-
* - `user_key` the user key to subsidise.
|
|
4471
|
-
* - `polyx_limit` the initial POLYX limit for this subsidy.
|
|
4931
|
+
* Unregister the callers account id in order to free the deposit.
|
|
4472
4932
|
*
|
|
4473
|
-
*
|
|
4474
|
-
*
|
|
4933
|
+
* There is no reason to ever call this function other than freeing up the deposit.
|
|
4934
|
+
* This is only useful when the account should no longer be used.
|
|
4475
4935
|
**/
|
|
4476
|
-
|
|
4477
|
-
AccountId32,
|
|
4478
|
-
u128
|
|
4479
|
-
]>;
|
|
4936
|
+
unmapAccount: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4480
4937
|
/**
|
|
4481
|
-
*
|
|
4938
|
+
* Upload new `code` without instantiating a contract from it.
|
|
4482
4939
|
*
|
|
4483
|
-
*
|
|
4484
|
-
*
|
|
4485
|
-
* - `polyx_limit` the amount of POLYX available for subsidising the `user_key`.
|
|
4940
|
+
* If the code does not already exist a deposit is reserved from the caller
|
|
4941
|
+
* The size of the reserve depends on the size of the supplied `code`.
|
|
4486
4942
|
*
|
|
4487
|
-
* #
|
|
4488
|
-
*
|
|
4489
|
-
*
|
|
4490
|
-
*
|
|
4943
|
+
* # Note
|
|
4944
|
+
*
|
|
4945
|
+
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
4946
|
+
* To avoid this situation a constructor could employ access control so that it can
|
|
4947
|
+
* only be instantiated by permissioned entities. The same is true when uploading
|
|
4948
|
+
* through [`Self::instantiate_with_code`].
|
|
4949
|
+
*
|
|
4950
|
+
* If the refcount of the code reaches zero after terminating the last contract that
|
|
4951
|
+
* references this code, the code will be removed automatically.
|
|
4491
4952
|
**/
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
u128
|
|
4953
|
+
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4954
|
+
Bytes,
|
|
4955
|
+
Compact<u128>
|
|
4495
4956
|
]>;
|
|
4496
4957
|
};
|
|
4497
4958
|
scheduler: {
|
|
4498
4959
|
/**
|
|
4499
|
-
* Cancel
|
|
4960
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
4961
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
4962
|
+
*
|
|
4963
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
4500
4964
|
**/
|
|
4501
4965
|
cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4502
4966
|
u32,
|
|
@@ -4571,6 +5035,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4571
5035
|
* clones of the original task. Their retry configuration will be derived from the
|
|
4572
5036
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4573
5037
|
* original `total_retries`.
|
|
5038
|
+
*
|
|
5039
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
4574
5040
|
**/
|
|
4575
5041
|
setRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4576
5042
|
ITuple<[u32, u32]>,
|
|
@@ -4590,6 +5056,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4590
5056
|
* clones of the original task. Their retry configuration will be derived from the
|
|
4591
5057
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
4592
5058
|
* original `total_retries`.
|
|
5059
|
+
*
|
|
5060
|
+
* This is the only way to set a retry configuration for a named task.
|
|
4593
5061
|
**/
|
|
4594
5062
|
setRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4595
5063
|
U8aFixed,
|
|
@@ -4607,30 +5075,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4607
5075
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
4608
5076
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
4609
5077
|
* usually means being a stash account).
|
|
4610
|
-
*
|
|
4611
|
-
* ## Complexity
|
|
4612
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
4613
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
4614
5078
|
**/
|
|
4615
5079
|
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4616
5080
|
/**
|
|
4617
5081
|
* Sets the session key(s) of the function caller to `keys`.
|
|
5082
|
+
*
|
|
4618
5083
|
* Allows an account to set its session key prior to becoming a validator.
|
|
4619
5084
|
* This doesn't take effect until the next session.
|
|
4620
5085
|
*
|
|
4621
|
-
* The dispatch origin of this function must be signed.
|
|
4622
|
-
*
|
|
4623
|
-
*
|
|
4624
|
-
* - `
|
|
4625
|
-
*
|
|
5086
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
5087
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
5088
|
+
* setup in the runtime.
|
|
5089
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
5090
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
5091
|
+
* proof format.
|
|
4626
5092
|
**/
|
|
4627
|
-
setKeys: AugmentedSubmittable<(keys:
|
|
5093
|
+
setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeDevelopRuntimeSessionKeys | {
|
|
4628
5094
|
grandpa?: any;
|
|
4629
5095
|
babe?: any;
|
|
4630
5096
|
imOnline?: any;
|
|
4631
5097
|
authorityDiscovery?: any;
|
|
5098
|
+
beefy?: any;
|
|
4632
5099
|
} | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4633
|
-
|
|
5100
|
+
PolymeshRuntimeDevelopRuntimeSessionKeys,
|
|
4634
5101
|
Bytes
|
|
4635
5102
|
]>;
|
|
4636
5103
|
};
|
|
@@ -4644,7 +5111,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4644
5111
|
* * `trade_date`: Optional date from which people can interact with this instruction.
|
|
4645
5112
|
* * `value_date`: Optional date after which the instruction should be settled (not enforced).
|
|
4646
5113
|
* * `legs`: A vector of all [`Leg`] included in this instruction.
|
|
4647
|
-
* * `
|
|
5114
|
+
* * `holder_set`: A set of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4648
5115
|
* * `memo`: An optional [`Memo`] field for this instruction.
|
|
4649
5116
|
*
|
|
4650
5117
|
* # Permissions
|
|
@@ -4664,13 +5131,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4664
5131
|
NonFungible: any;
|
|
4665
5132
|
} | {
|
|
4666
5133
|
OffChain: any;
|
|
4667
|
-
} | string | Uint8Array)[],
|
|
5134
|
+
} | string | Uint8Array)[], holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>, instructionMemo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string) => SubmittableExtrinsic<ApiType>, [
|
|
4668
5135
|
Option<u64>,
|
|
4669
5136
|
PolymeshPrimitivesSettlementSettlementType,
|
|
4670
5137
|
Option<u64>,
|
|
4671
5138
|
Option<u64>,
|
|
4672
5139
|
Vec<PolymeshPrimitivesSettlementLeg>,
|
|
4673
|
-
BTreeSet<
|
|
5140
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>,
|
|
4674
5141
|
Option<PolymeshPrimitivesMemo>
|
|
4675
5142
|
]>;
|
|
4676
5143
|
/**
|
|
@@ -4682,7 +5149,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4682
5149
|
* * `trade_date`: Optional date from which people can interact with this instruction.
|
|
4683
5150
|
* * `value_date`: Optional date after which the instruction should be settled (not enforced).
|
|
4684
5151
|
* * `legs`: A vector of all [`Leg`] included in this instruction.
|
|
4685
|
-
* * `
|
|
5152
|
+
* * `holder_set`: A set of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4686
5153
|
* * `instruction_memo`: An optional [`Memo`] field for this instruction.
|
|
4687
5154
|
* * `mediators`: A set of [`IdentityId`] of all the mandatory mediators for the instruction.
|
|
4688
5155
|
*
|
|
@@ -4703,13 +5170,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4703
5170
|
NonFungible: any;
|
|
4704
5171
|
} | {
|
|
4705
5172
|
OffChain: any;
|
|
4706
|
-
} | string | Uint8Array)[],
|
|
5173
|
+
} | string | Uint8Array)[], holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>, instructionMemo: Option<PolymeshPrimitivesMemo> | null | Uint8Array | PolymeshPrimitivesMemo | string, mediators: BTreeSet<PolymeshPrimitivesIdentityId>) => SubmittableExtrinsic<ApiType>, [
|
|
4707
5174
|
Option<u64>,
|
|
4708
5175
|
PolymeshPrimitivesSettlementSettlementType,
|
|
4709
5176
|
Option<u64>,
|
|
4710
5177
|
Option<u64>,
|
|
4711
5178
|
Vec<PolymeshPrimitivesSettlementLeg>,
|
|
4712
|
-
BTreeSet<
|
|
5179
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>,
|
|
4713
5180
|
Option<PolymeshPrimitivesMemo>,
|
|
4714
5181
|
BTreeSet<PolymeshPrimitivesIdentityId>
|
|
4715
5182
|
]>;
|
|
@@ -4786,14 +5253,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4786
5253
|
*
|
|
4787
5254
|
* # Arguments
|
|
4788
5255
|
* * `id` - the [`InstructionId`] of the instruction being affirmed.
|
|
4789
|
-
* * `
|
|
5256
|
+
* * `holder_set` - a set of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4790
5257
|
*
|
|
4791
5258
|
* # Permissions
|
|
4792
5259
|
* * Portfolio
|
|
4793
5260
|
**/
|
|
4794
|
-
affirmInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array,
|
|
5261
|
+
affirmInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>) => SubmittableExtrinsic<ApiType>, [
|
|
4795
5262
|
u64,
|
|
4796
|
-
BTreeSet<
|
|
5263
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>
|
|
4797
5264
|
]>;
|
|
4798
5265
|
/**
|
|
4799
5266
|
* Affirms the instruction as a mediator - should only be called by mediators, otherwise it will fail.
|
|
@@ -4812,7 +5279,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4812
5279
|
*
|
|
4813
5280
|
* # Arguments
|
|
4814
5281
|
* * `id` - the [`InstructionId`] of the instruction being affirmed.
|
|
4815
|
-
* * `
|
|
5282
|
+
* * `holder_set` - a vector of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4816
5283
|
* * `number_of_assets` - an optional [`AffirmationCount`] that will be used for a precise fee estimation before executing the extrinsic.
|
|
4817
5284
|
*
|
|
4818
5285
|
* Note: calling the rpc method `get_affirmation_count` returns an instance of [`AffirmationCount`].
|
|
@@ -4820,13 +5287,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4820
5287
|
* # Permissions
|
|
4821
5288
|
* * Portfolio
|
|
4822
5289
|
**/
|
|
4823
|
-
affirmInstructionWithCount: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array,
|
|
5290
|
+
affirmInstructionWithCount: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>, numberOfAssets: Option<PolymeshPrimitivesSettlementAffirmationCount> | null | Uint8Array | PolymeshPrimitivesSettlementAffirmationCount | {
|
|
4824
5291
|
senderAssetCount?: any;
|
|
4825
5292
|
receiverAssetCount?: any;
|
|
4826
5293
|
offchainCount?: any;
|
|
4827
5294
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
4828
5295
|
u64,
|
|
4829
|
-
BTreeSet<
|
|
5296
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>,
|
|
4830
5297
|
Option<PolymeshPrimitivesSettlementAffirmationCount>
|
|
4831
5298
|
]>;
|
|
4832
5299
|
/**
|
|
@@ -4835,10 +5302,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4835
5302
|
* # Arguments
|
|
4836
5303
|
* * `id` - the [`InstructionId`] of the instruction being affirmed.
|
|
4837
5304
|
* * `receipt_details` - a vector of [`ReceiptDetails`], which contain the details about the offchain transfer.
|
|
4838
|
-
* * `
|
|
5305
|
+
* * `holder_set` - a vector of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4839
5306
|
*
|
|
4840
5307
|
* # Permissions
|
|
4841
|
-
* * Portfolio
|
|
5308
|
+
* * Portfolio/Account
|
|
4842
5309
|
**/
|
|
4843
5310
|
affirmWithReceipts: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, receiptDetails: Vec<PolymeshPrimitivesSettlementReceiptDetails> | (PolymeshPrimitivesSettlementReceiptDetails | {
|
|
4844
5311
|
uid?: any;
|
|
@@ -4846,11 +5313,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4846
5313
|
legId?: any;
|
|
4847
5314
|
signer?: any;
|
|
4848
5315
|
signature?: any;
|
|
5316
|
+
expiresAt?: any;
|
|
4849
5317
|
metadata?: any;
|
|
4850
|
-
} | string | Uint8Array)[],
|
|
5318
|
+
} | string | Uint8Array)[], holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>) => SubmittableExtrinsic<ApiType>, [
|
|
4851
5319
|
u64,
|
|
4852
5320
|
Vec<PolymeshPrimitivesSettlementReceiptDetails>,
|
|
4853
|
-
BTreeSet<
|
|
5321
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>
|
|
4854
5322
|
]>;
|
|
4855
5323
|
/**
|
|
4856
5324
|
* Affirms an instruction using receipts for offchain transfers.
|
|
@@ -4858,7 +5326,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4858
5326
|
* # Arguments
|
|
4859
5327
|
* * `id` - the [`InstructionId`] of the instruction being affirmed.
|
|
4860
5328
|
* * `receipt_details` - a vector of [`ReceiptDetails`], which contain the details about the offchain transfer.
|
|
4861
|
-
* * `
|
|
5329
|
+
* * `holder_set` - a vector of [`AssetHolder`] under the caller's control and intended for affirmation.
|
|
4862
5330
|
* * `number_of_assets` - an optional [`AffirmationCount`] that will be used for a precise fee estimation before executing the extrinsic.
|
|
4863
5331
|
*
|
|
4864
5332
|
* Note: calling the rpc method `get_affirmation_count` returns an instance of [`AffirmationCount`].
|
|
@@ -4872,15 +5340,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4872
5340
|
legId?: any;
|
|
4873
5341
|
signer?: any;
|
|
4874
5342
|
signature?: any;
|
|
5343
|
+
expiresAt?: any;
|
|
4875
5344
|
metadata?: any;
|
|
4876
|
-
} | string | Uint8Array)[],
|
|
5345
|
+
} | string | Uint8Array)[], holderSet: BTreeSet<PolymeshPrimitivesAssetAssetHolder>, numberOfAssets: Option<PolymeshPrimitivesSettlementAffirmationCount> | null | Uint8Array | PolymeshPrimitivesSettlementAffirmationCount | {
|
|
4877
5346
|
senderAssetCount?: any;
|
|
4878
5347
|
receiverAssetCount?: any;
|
|
4879
5348
|
offchainCount?: any;
|
|
4880
5349
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
4881
5350
|
u64,
|
|
4882
5351
|
Vec<PolymeshPrimitivesSettlementReceiptDetails>,
|
|
4883
|
-
BTreeSet<
|
|
5352
|
+
BTreeSet<PolymeshPrimitivesAssetAssetHolder>,
|
|
4884
5353
|
Option<PolymeshPrimitivesSettlementAffirmationCount>
|
|
4885
5354
|
]>;
|
|
4886
5355
|
/**
|
|
@@ -4903,9 +5372,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4903
5372
|
* * `signers` - Array of signers that are allowed to sign receipts for this venue
|
|
4904
5373
|
* * `typ` - Type of venue being created
|
|
4905
5374
|
**/
|
|
4906
|
-
createVenue: AugmentedSubmittable<(details: Bytes | string | Uint8Array, signers:
|
|
5375
|
+
createVenue: AugmentedSubmittable<(details: Bytes | string | Uint8Array, signers: BTreeSet<AccountId32>, typ: PolymeshPrimitivesSettlementVenueType | 'Other' | 'Distribution' | 'Sto' | 'Exchange' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4907
5376
|
Bytes,
|
|
4908
|
-
|
|
5377
|
+
BTreeSet<AccountId32>,
|
|
4909
5378
|
PolymeshPrimitivesSettlementVenueType
|
|
4910
5379
|
]>;
|
|
4911
5380
|
/**
|
|
@@ -4926,7 +5395,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4926
5395
|
*
|
|
4927
5396
|
* # Arguments
|
|
4928
5397
|
* * `id`: The [`InstructionId`] of the instruction to be executed.
|
|
4929
|
-
* * `
|
|
5398
|
+
* * `asset_holder`: One of the caller's [`AssetHolder`] which is also a counter patry in the instruction.
|
|
4930
5399
|
* If None, the caller must be the venue creator or a counter party in a [`Leg::OffChain`].
|
|
4931
5400
|
* * `fungible_transfers`: The number of fungible legs in the instruction.
|
|
4932
5401
|
* * `nfts_transfers`: The number of nfts being transferred in the instruction.
|
|
@@ -4936,15 +5405,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4936
5405
|
*
|
|
4937
5406
|
* Note: calling the rpc method `get_execute_instruction_info` returns an instance of [`ExecuteInstructionInfo`], which contains the count parameters.
|
|
4938
5407
|
**/
|
|
4939
|
-
executeManualInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array,
|
|
4940
|
-
|
|
4941
|
-
|
|
5408
|
+
executeManualInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, assetHolder: Option<PolymeshPrimitivesAssetAssetHolder> | null | Uint8Array | PolymeshPrimitivesAssetAssetHolder | {
|
|
5409
|
+
Portfolio: any;
|
|
5410
|
+
} | {
|
|
5411
|
+
Account: any;
|
|
4942
5412
|
} | string, fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array, offchainTransfers: u32 | AnyNumber | Uint8Array, weightLimit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
|
|
4943
5413
|
refTime?: any;
|
|
4944
5414
|
proofSize?: any;
|
|
4945
5415
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
4946
5416
|
u64,
|
|
4947
|
-
Option<
|
|
5417
|
+
Option<PolymeshPrimitivesAssetAssetHolder>,
|
|
4948
5418
|
u32,
|
|
4949
5419
|
u32,
|
|
4950
5420
|
u32,
|
|
@@ -4989,17 +5459,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4989
5459
|
*
|
|
4990
5460
|
* # Arguments
|
|
4991
5461
|
* * `id` - the [`InstructionId`] of the instruction being rejected.
|
|
4992
|
-
* * `
|
|
5462
|
+
* * `asset_holder` - the [`AssetHolder`] that belongs to the instruction and is rejecting it.
|
|
4993
5463
|
*
|
|
4994
5464
|
* # Permissions
|
|
4995
5465
|
* * Portfolio
|
|
4996
5466
|
**/
|
|
4997
|
-
rejectInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array,
|
|
4998
|
-
|
|
4999
|
-
|
|
5467
|
+
rejectInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
5468
|
+
Portfolio: any;
|
|
5469
|
+
} | {
|
|
5470
|
+
Account: any;
|
|
5000
5471
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5001
5472
|
u64,
|
|
5002
|
-
|
|
5473
|
+
PolymeshPrimitivesAssetAssetHolder
|
|
5003
5474
|
]>;
|
|
5004
5475
|
/**
|
|
5005
5476
|
* Rejects an existing instruction - should only be called by mediators, otherwise it will fail.
|
|
@@ -5023,7 +5494,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5023
5494
|
*
|
|
5024
5495
|
* # Arguments
|
|
5025
5496
|
* * `id` - the [`InstructionId`] of the instruction being rejected.
|
|
5026
|
-
* * `
|
|
5497
|
+
* * `asset_holder` - the [`AssetHolder`] that belongs to the instruction and is rejecting it.
|
|
5027
5498
|
* * `number_of_assets` - an optional [`AssetCount`] that will be used for a precise fee estimation before executing the extrinsic.
|
|
5028
5499
|
*
|
|
5029
5500
|
* Note: calling the rpc method `get_execute_instruction_info` returns an instance of [`ExecuteInstructionInfo`], which contain the asset count.
|
|
@@ -5031,18 +5502,31 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5031
5502
|
* # Permissions
|
|
5032
5503
|
* * Portfolio
|
|
5033
5504
|
**/
|
|
5034
|
-
rejectInstructionWithCount: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array,
|
|
5035
|
-
|
|
5036
|
-
|
|
5505
|
+
rejectInstructionWithCount: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
5506
|
+
Portfolio: any;
|
|
5507
|
+
} | {
|
|
5508
|
+
Account: any;
|
|
5037
5509
|
} | string | Uint8Array, numberOfAssets: Option<PolymeshPrimitivesSettlementAssetCount> | null | Uint8Array | PolymeshPrimitivesSettlementAssetCount | {
|
|
5038
5510
|
fungible?: any;
|
|
5039
5511
|
nonFungible?: any;
|
|
5040
5512
|
offChain?: any;
|
|
5041
5513
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
5042
5514
|
u64,
|
|
5043
|
-
|
|
5515
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
5044
5516
|
Option<PolymeshPrimitivesSettlementAssetCount>
|
|
5045
5517
|
]>;
|
|
5518
|
+
/**
|
|
5519
|
+
* Sets whether the caller's identity requires mandatory receiver affirmation for incoming transfers.
|
|
5520
|
+
*
|
|
5521
|
+
* When `require` is `true`, the caller's identity must explicitly affirm any incoming asset transfer.
|
|
5522
|
+
* When `require` is `false` (default), incoming transfers are auto-affirmed.
|
|
5523
|
+
*
|
|
5524
|
+
* # Events
|
|
5525
|
+
* * `MandatoryReceiverAffirmationSet` - When the mandatory receiver affirmation flag is updated.
|
|
5526
|
+
**/
|
|
5527
|
+
setMandatoryReceiverAffirmation: AugmentedSubmittable<(requirement: PolymeshPrimitivesSettlementAffirmationRequirement | 'Automatic' | 'Required' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5528
|
+
PolymeshPrimitivesSettlementAffirmationRequirement
|
|
5529
|
+
]>;
|
|
5046
5530
|
/**
|
|
5047
5531
|
* Enables or disabled venue filtering for a token.
|
|
5048
5532
|
*
|
|
@@ -5057,6 +5541,62 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5057
5541
|
PolymeshPrimitivesAssetAssetId,
|
|
5058
5542
|
bool
|
|
5059
5543
|
]>;
|
|
5544
|
+
/**
|
|
5545
|
+
* Transfer assets between accounts and portfolios.
|
|
5546
|
+
*
|
|
5547
|
+
* Currently supports two modes:
|
|
5548
|
+
* - Direct (owner, same-identity): `from` and `to` resolve to the same DID.
|
|
5549
|
+
* Transfers immediately via `base_transfer` — no settlement instruction, no affirmation.
|
|
5550
|
+
* - Direct (spender): Caller differs from source owner. Spender-approval mode.
|
|
5551
|
+
* Allowance is checked and decremented. Spender mode is only available for
|
|
5552
|
+
* `AssetHolder::Account` sources with fungible funds.
|
|
5553
|
+
*
|
|
5554
|
+
* When `from` is `None`, defaults to `AssetHolder::Account(caller)`.
|
|
5555
|
+
*
|
|
5556
|
+
* # Spender-mode allowance behavior
|
|
5557
|
+
* - Finite allowance: decremented by transfer amount. Removed when depleted to zero.
|
|
5558
|
+
* - Unlimited allowance (`Balance::MAX`): never decremented, no storage write.
|
|
5559
|
+
* - No `Approval` event emitted on spend. Use the `allowance` Runtime API to query
|
|
5560
|
+
* remaining allowance.
|
|
5561
|
+
*
|
|
5562
|
+
* # Arguments
|
|
5563
|
+
* * `origin` — Signed origin. Caller must have a registered DID.
|
|
5564
|
+
* * `from` — Source. `None` defaults to caller's account. When set to a different
|
|
5565
|
+
* account, spender-approval mode activates.
|
|
5566
|
+
* * `to` — Destination account or portfolio.
|
|
5567
|
+
* * `fund` — Asset and amount (fungible) or NFT IDs (non-fungible), plus optional memo.
|
|
5568
|
+
**/
|
|
5569
|
+
transferFunds: AugmentedSubmittable<(from: Option<PolymeshPrimitivesAssetAssetHolder> | null | Uint8Array | PolymeshPrimitivesAssetAssetHolder | {
|
|
5570
|
+
Portfolio: any;
|
|
5571
|
+
} | {
|
|
5572
|
+
Account: any;
|
|
5573
|
+
} | string, to: PolymeshPrimitivesAssetAssetHolder | {
|
|
5574
|
+
Portfolio: any;
|
|
5575
|
+
} | {
|
|
5576
|
+
Account: any;
|
|
5577
|
+
} | string | Uint8Array, fund: PolymeshPrimitivesPortfolioFund | {
|
|
5578
|
+
description?: any;
|
|
5579
|
+
memo?: any;
|
|
5580
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5581
|
+
Option<PolymeshPrimitivesAssetAssetHolder>,
|
|
5582
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
5583
|
+
PolymeshPrimitivesPortfolioFund
|
|
5584
|
+
]>;
|
|
5585
|
+
/**
|
|
5586
|
+
* Unlocks an instruction that is currently in `LockedForExecution` status,
|
|
5587
|
+
* moving it back to `Pending`. Only a mediator of the instruction can call this.
|
|
5588
|
+
*
|
|
5589
|
+
* After unlocking, the mediator must wait at least [`Config::RelockCooldown`] before
|
|
5590
|
+
* locking the instruction again. This gives other parties time to reject the
|
|
5591
|
+
* instruction if they wish to back out.
|
|
5592
|
+
*
|
|
5593
|
+
* # Arguments
|
|
5594
|
+
* * `origin` - The origin of the call, must be a mediator of the instruction.
|
|
5595
|
+
* * `inst_id` - The [`InstructionId`] of the instruction to unlock.
|
|
5596
|
+
**/
|
|
5597
|
+
unlockInstruction: AugmentedSubmittable<(instId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5598
|
+
u64
|
|
5599
|
+
]>;
|
|
5060
5600
|
/**
|
|
5061
5601
|
* Edit a venue's details.
|
|
5062
5602
|
*
|
|
@@ -5073,9 +5613,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5073
5613
|
* * `signers` specifies the signers to add/remove.
|
|
5074
5614
|
* * `add_signers` specifies the update type add/remove of venue where add is true and remove is false.
|
|
5075
5615
|
**/
|
|
5076
|
-
updateVenueSigners: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, signers:
|
|
5616
|
+
updateVenueSigners: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, signers: BTreeSet<AccountId32>, addSigners: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5077
5617
|
u64,
|
|
5078
|
-
|
|
5618
|
+
BTreeSet<AccountId32>,
|
|
5079
5619
|
bool
|
|
5080
5620
|
]>;
|
|
5081
5621
|
/**
|
|
@@ -5088,52 +5628,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5088
5628
|
u64,
|
|
5089
5629
|
PolymeshPrimitivesSettlementVenueType
|
|
5090
5630
|
]>;
|
|
5091
|
-
/**
|
|
5092
|
-
* Withdraw an affirmation for a given instruction.
|
|
5093
|
-
*
|
|
5094
|
-
* # Arguments
|
|
5095
|
-
* * `id` - the [`InstructionId`] of the instruction getting an affirmation withdrawn.
|
|
5096
|
-
* * `portfolios` - a vector of [`PortfolioId`] under the caller's control and intended for affirmation withdrawal.
|
|
5097
|
-
*
|
|
5098
|
-
* # Permissions
|
|
5099
|
-
* * Portfolio
|
|
5100
|
-
**/
|
|
5101
|
-
withdrawAffirmation: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: BTreeSet<PolymeshPrimitivesIdentityIdPortfolioId>) => SubmittableExtrinsic<ApiType>, [
|
|
5102
|
-
u64,
|
|
5103
|
-
BTreeSet<PolymeshPrimitivesIdentityIdPortfolioId>
|
|
5104
|
-
]>;
|
|
5105
|
-
/**
|
|
5106
|
-
* Removes the mediator's affirmation for the instruction - should only be called by mediators, otherwise it will fail.
|
|
5107
|
-
*
|
|
5108
|
-
* # Arguments
|
|
5109
|
-
* * `origin`: The secondary key of the sender.
|
|
5110
|
-
* * `instruction_id`: The [`InstructionId`] that will have the affirmation removed.
|
|
5111
|
-
**/
|
|
5112
|
-
withdrawAffirmationAsMediator: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5113
|
-
u64
|
|
5114
|
-
]>;
|
|
5115
|
-
/**
|
|
5116
|
-
* Withdraw an affirmation for a given instruction.
|
|
5117
|
-
*
|
|
5118
|
-
* # Arguments
|
|
5119
|
-
* * `id` - the [`InstructionId`] of the instruction getting an affirmation withdrawn.
|
|
5120
|
-
* * `portfolios` - a vector of [`PortfolioId`] under the caller's control and intended for affirmation withdrawal.
|
|
5121
|
-
* * `number_of_assets` - an optional [`AffirmationCount`] that will be used for a precise fee estimation before executing the extrinsic.
|
|
5122
|
-
*
|
|
5123
|
-
* Note: calling the rpc method `get_affirmation_count` returns an instance of [`AffirmationCount`].
|
|
5124
|
-
*
|
|
5125
|
-
* # Permissions
|
|
5126
|
-
* * Portfolio
|
|
5127
|
-
**/
|
|
5128
|
-
withdrawAffirmationWithCount: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: BTreeSet<PolymeshPrimitivesIdentityIdPortfolioId>, numberOfAssets: Option<PolymeshPrimitivesSettlementAffirmationCount> | null | Uint8Array | PolymeshPrimitivesSettlementAffirmationCount | {
|
|
5129
|
-
senderAssetCount?: any;
|
|
5130
|
-
receiverAssetCount?: any;
|
|
5131
|
-
offchainCount?: any;
|
|
5132
|
-
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
5133
|
-
u64,
|
|
5134
|
-
BTreeSet<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
5135
|
-
Option<PolymeshPrimitivesSettlementAffirmationCount>
|
|
5136
|
-
]>;
|
|
5137
5631
|
};
|
|
5138
5632
|
staking: {
|
|
5139
5633
|
/**
|
|
@@ -5457,7 +5951,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5457
5951
|
*
|
|
5458
5952
|
* If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
|
|
5459
5953
|
* them, then the list of nominators is paged, with each page being capped at
|
|
5460
|
-
* [`Config::MaxExposurePageSize
|
|
5954
|
+
* [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators,
|
|
5461
5955
|
* the call needs to be made for each page separately in order for all the nominators
|
|
5462
5956
|
* backing a validator to receive the reward. The nominators are not sorted across pages
|
|
5463
5957
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
@@ -6083,6 +6577,71 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6083
6577
|
u64
|
|
6084
6578
|
]>;
|
|
6085
6579
|
};
|
|
6580
|
+
sudo: {
|
|
6581
|
+
/**
|
|
6582
|
+
* Permanently removes the sudo key.
|
|
6583
|
+
*
|
|
6584
|
+
* **This cannot be un-done.**
|
|
6585
|
+
**/
|
|
6586
|
+
removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6587
|
+
/**
|
|
6588
|
+
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
|
|
6589
|
+
* key.
|
|
6590
|
+
**/
|
|
6591
|
+
setKey: AugmentedSubmittable<(updated: MultiAddress | {
|
|
6592
|
+
Id: any;
|
|
6593
|
+
} | {
|
|
6594
|
+
Index: any;
|
|
6595
|
+
} | {
|
|
6596
|
+
Raw: any;
|
|
6597
|
+
} | {
|
|
6598
|
+
Address32: any;
|
|
6599
|
+
} | {
|
|
6600
|
+
Address20: any;
|
|
6601
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6602
|
+
MultiAddress
|
|
6603
|
+
]>;
|
|
6604
|
+
/**
|
|
6605
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
6606
|
+
**/
|
|
6607
|
+
sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6608
|
+
Call
|
|
6609
|
+
]>;
|
|
6610
|
+
/**
|
|
6611
|
+
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
|
6612
|
+
* a given account.
|
|
6613
|
+
*
|
|
6614
|
+
* The dispatch origin for this call must be _Signed_.
|
|
6615
|
+
**/
|
|
6616
|
+
sudoAs: AugmentedSubmittable<(who: MultiAddress | {
|
|
6617
|
+
Id: any;
|
|
6618
|
+
} | {
|
|
6619
|
+
Index: any;
|
|
6620
|
+
} | {
|
|
6621
|
+
Raw: any;
|
|
6622
|
+
} | {
|
|
6623
|
+
Address32: any;
|
|
6624
|
+
} | {
|
|
6625
|
+
Address20: any;
|
|
6626
|
+
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6627
|
+
MultiAddress,
|
|
6628
|
+
Call
|
|
6629
|
+
]>;
|
|
6630
|
+
/**
|
|
6631
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
6632
|
+
* This function does not check the weight of the call, and instead allows the
|
|
6633
|
+
* Sudo user to specify the weight of the call.
|
|
6634
|
+
*
|
|
6635
|
+
* The dispatch origin for this call must be _Signed_.
|
|
6636
|
+
**/
|
|
6637
|
+
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
|
|
6638
|
+
refTime?: any;
|
|
6639
|
+
proofSize?: any;
|
|
6640
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6641
|
+
Call,
|
|
6642
|
+
SpWeightsWeightV2Weight
|
|
6643
|
+
]>;
|
|
6644
|
+
};
|
|
6086
6645
|
system: {
|
|
6087
6646
|
/**
|
|
6088
6647
|
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
|
|
@@ -6380,11 +6939,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6380
6939
|
Compact<u64>
|
|
6381
6940
|
]>;
|
|
6382
6941
|
};
|
|
6383
|
-
transactionPayment: {
|
|
6384
|
-
setDisableFees: AugmentedSubmittable<(value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6385
|
-
bool
|
|
6386
|
-
]>;
|
|
6387
|
-
};
|
|
6388
6942
|
treasury: {
|
|
6389
6943
|
/**
|
|
6390
6944
|
* It transfers balances from treasury to each of beneficiaries and the specific amount
|
|
@@ -6648,7 +7202,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6648
7202
|
* ## Complexity
|
|
6649
7203
|
* - O(1).
|
|
6650
7204
|
**/
|
|
6651
|
-
dispatchAs: AugmentedSubmittable<(asOrigin:
|
|
7205
|
+
dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller | {
|
|
6652
7206
|
system: any;
|
|
6653
7207
|
} | {
|
|
6654
7208
|
PolymeshCommittee: any;
|
|
@@ -6656,8 +7210,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6656
7210
|
TechnicalCommittee: any;
|
|
6657
7211
|
} | {
|
|
6658
7212
|
UpgradeCommittee: any;
|
|
7213
|
+
} | {
|
|
7214
|
+
Revive: any;
|
|
6659
7215
|
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6660
|
-
|
|
7216
|
+
PolymeshRuntimeDevelopRuntimeOriginCaller,
|
|
6661
7217
|
Call
|
|
6662
7218
|
]>;
|
|
6663
7219
|
/**
|
|
@@ -6678,37 +7234,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6678
7234
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
6679
7235
|
Vec<Call>
|
|
6680
7236
|
]>;
|
|
6681
|
-
/**
|
|
6682
|
-
* Relay a call for a target from an origin
|
|
6683
|
-
*
|
|
6684
|
-
* Relaying in this context refers to the ability of origin to make a call on behalf of
|
|
6685
|
-
* target.
|
|
6686
|
-
*
|
|
6687
|
-
* Fees are charged to origin
|
|
6688
|
-
*
|
|
6689
|
-
* # Parameters
|
|
6690
|
-
* - `target`: Account to be relayed
|
|
6691
|
-
* - `signature`: Signature from target authorizing the relay
|
|
6692
|
-
* - `call`: Call to be relayed on behalf of target
|
|
6693
|
-
*
|
|
6694
|
-
* POLYMESH: added.
|
|
6695
|
-
**/
|
|
6696
|
-
relayTx: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, signature: SpRuntimeMultiSignature | {
|
|
6697
|
-
Ed25519: any;
|
|
6698
|
-
} | {
|
|
6699
|
-
Sr25519: any;
|
|
6700
|
-
} | {
|
|
6701
|
-
Ecdsa: any;
|
|
6702
|
-
} | {
|
|
6703
|
-
Eth: any;
|
|
6704
|
-
} | string | Uint8Array, call: PalletUtilityUniqueCall | {
|
|
6705
|
-
nonce?: any;
|
|
6706
|
-
call?: any;
|
|
6707
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6708
|
-
AccountId32,
|
|
6709
|
-
SpRuntimeMultiSignature,
|
|
6710
|
-
PalletUtilityUniqueCall
|
|
6711
|
-
]>;
|
|
6712
7237
|
/**
|
|
6713
7238
|
* Dispatch a function call with a specified weight.
|
|
6714
7239
|
*
|