@polymeshassociation/polymesh-sdk 15.1.1-beta.2 → 15.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/CHANGELOG.md +3 -3
- package/README.md +3 -3
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +2 -2
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +3 -1
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +2 -2
- package/api/procedures/modifyAsset.js.map +1 -1
- package/generated/types.d.ts +43 -10
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +35 -1
- package/generated/types.js.map +1 -1
- package/middleware/queriesV2.d.ts.map +1 -1
- package/middleware/queriesV2.js +7 -11
- package/middleware/queriesV2.js.map +1 -1
- package/middleware/types.d.ts +476 -516
- package/middleware/types.d.ts.map +1 -1
- package/middleware/types.js +458 -498
- package/middleware/types.js.map +1 -1
- package/middleware/typesV2.d.ts +4 -20
- package/middleware/typesV2.d.ts.map +1 -1
- package/middleware/typesV2.js +2 -9
- package/middleware/typesV2.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.3.0.tgz +0 -0
- package/package.json +61 -60
- package/polkadot/augment-api-consts.d.ts +34 -11
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +226 -23
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +223 -16
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +148 -19
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +42 -10
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +883 -250
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +101 -27
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/definitions.d.ts +2 -0
- package/polkadot/definitions.d.ts.map +1 -1
- package/polkadot/definitions.js +5 -1
- package/polkadot/definitions.js.map +1 -1
- package/polkadot/group/definitions.d.ts +25 -0
- package/polkadot/group/definitions.d.ts.map +1 -0
- package/polkadot/group/definitions.js +31 -0
- package/polkadot/group/definitions.js.map +1 -0
- package/polkadot/group/index.d.ts +2 -0
- package/polkadot/group/index.d.ts.map +1 -0
- package/polkadot/group/index.js +20 -0
- package/polkadot/group/index.js.map +1 -0
- package/polkadot/group/types.d.ts +2 -0
- package/polkadot/group/types.d.ts.map +1 -0
- package/polkadot/group/types.js +5 -0
- package/polkadot/group/types.js.map +1 -0
- package/polkadot/lookup.d.ts +807 -460
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +934 -539
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/nft/definitions.d.ts +16 -0
- package/polkadot/nft/definitions.d.ts.map +1 -0
- package/polkadot/nft/definitions.js +35 -0
- package/polkadot/nft/definitions.js.map +1 -0
- package/polkadot/nft/index.d.ts +2 -0
- package/polkadot/nft/index.d.ts.map +1 -0
- package/polkadot/nft/index.js +20 -0
- package/polkadot/nft/index.js.map +1 -0
- package/polkadot/nft/types.d.ts +2 -0
- package/polkadot/nft/types.d.ts.map +1 -0
- package/polkadot/nft/types.js +5 -0
- package/polkadot/nft/types.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +60 -41
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +61 -42
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +84 -61
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +38 -23
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +97 -41
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +119 -42
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +1003 -551
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +2 -0
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +2 -0
- package/polkadot/types.js.map +1 -1
- package/utils/conversion.d.ts +3 -11
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +5 -41
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +5 -3
- package/utils/internal.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.1.1-beta.2.tgz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { BTreeSet, Bytes, Compact, Option, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
2
|
+
import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ConfidentialIdentityV2ClaimProofsScopeClaimProof, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletPortfolioMovePortfolioItem, PalletRewardsItnRewardStatus, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementLegV2, PalletSettlementReceiptDetails, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuthV1, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsChainExtensionExtrinsicId, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEcdsaSignature, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpRuntimeHeader, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
|
|
6
6
|
declare module '@polkadot/api-base/types/submittable' {
|
|
7
7
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
8
8
|
asset: {
|
|
@@ -115,7 +115,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
115
115
|
* - `AssetAlreadyCreated` if asset was already created.
|
|
116
116
|
* - `TickerTooLong` if `ticker`'s length is greater than `config.max_ticker_length` chain
|
|
117
117
|
* parameter.
|
|
118
|
-
* - `
|
|
118
|
+
* - `TickerNotAlphanumeric` if `ticker` is not yet registered, and contains non-alphanumeric characters or any character after first occurrence of `\0`.
|
|
119
119
|
*
|
|
120
120
|
* ## Permissions
|
|
121
121
|
* * Portfolio
|
|
@@ -142,6 +142,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
142
142
|
Custom: any;
|
|
143
143
|
} | {
|
|
144
144
|
StableCoin: any;
|
|
145
|
+
} | {
|
|
146
|
+
NonFungible: any;
|
|
145
147
|
} | string | Uint8Array, identifiers: Vec<PolymeshPrimitivesAssetIdentifier> | (PolymeshPrimitivesAssetIdentifier | {
|
|
146
148
|
CUSIP: any;
|
|
147
149
|
} | {
|
|
@@ -253,6 +255,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
253
255
|
PolymeshPrimitivesTicker,
|
|
254
256
|
u128
|
|
255
257
|
]>;
|
|
258
|
+
/**
|
|
259
|
+
* Redeems existing tokens by reducing the balance of the caller's portfolio and the total supply of the token
|
|
260
|
+
*
|
|
261
|
+
* # Arguments
|
|
262
|
+
* * `origin` is a signer that has permissions to act as an agent of `ticker`.
|
|
263
|
+
* * `ticker` Ticker of the token.
|
|
264
|
+
* * `value` Amount of tokens to redeem.
|
|
265
|
+
* * `portfolio` From whom portfolio tokens gets transferred.
|
|
266
|
+
*
|
|
267
|
+
* # Errors
|
|
268
|
+
* - `Unauthorized` If called by someone without the appropriate external agent permissions
|
|
269
|
+
* - `InvalidGranularity` If the amount is not divisible by 10^6 for non-divisible tokens
|
|
270
|
+
* - `InsufficientPortfolioBalance` If the caller's `portfolio` doesn't have enough free balance
|
|
271
|
+
* - `PortfolioDoesNotExist` If the portfolio doesn't exist.
|
|
272
|
+
*
|
|
273
|
+
* # Permissions
|
|
274
|
+
* * Asset
|
|
275
|
+
* * Portfolio
|
|
276
|
+
**/
|
|
277
|
+
redeemFromPortfolio: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, portfolio: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
278
|
+
Default: any;
|
|
279
|
+
} | {
|
|
280
|
+
User: any;
|
|
281
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
282
|
+
PolymeshPrimitivesTicker,
|
|
283
|
+
u128,
|
|
284
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
285
|
+
]>;
|
|
256
286
|
/**
|
|
257
287
|
* Registers and set local asset metadata.
|
|
258
288
|
*
|
|
@@ -376,6 +406,53 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
376
406
|
Vec<u32>,
|
|
377
407
|
PolymeshPrimitivesTicker
|
|
378
408
|
]>;
|
|
409
|
+
/**
|
|
410
|
+
* Removes the asset metadata key and value of a local key.
|
|
411
|
+
*
|
|
412
|
+
* # Arguments
|
|
413
|
+
* * `origin` - the secondary key of the sender.
|
|
414
|
+
* * `ticker` - the ticker of the local metadata key.
|
|
415
|
+
* * `local_key` - the local metadata key.
|
|
416
|
+
*
|
|
417
|
+
* # Errors
|
|
418
|
+
* - `SecondaryKeyNotAuthorizedForAsset` - if called by someone without the appropriate external agent permissions.
|
|
419
|
+
* - `UnauthorizedAgent` - if called by someone without the appropriate external agent permissions.
|
|
420
|
+
* - `AssetMetadataKeyIsMissing` - if the key doens't exist.
|
|
421
|
+
* - `AssetMetadataValueIsLocked` - if the value of the key is locked.
|
|
422
|
+
* - AssetMetadataKeyBelongsToNFTCollection - if the key is a mandatory key in an NFT collection.
|
|
423
|
+
*
|
|
424
|
+
* # Permissions
|
|
425
|
+
* * Asset
|
|
426
|
+
**/
|
|
427
|
+
removeLocalMetadataKey: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, localKey: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
428
|
+
PolymeshPrimitivesTicker,
|
|
429
|
+
u64
|
|
430
|
+
]>;
|
|
431
|
+
/**
|
|
432
|
+
* Removes the asset metadata value of a metadata key.
|
|
433
|
+
*
|
|
434
|
+
* # Arguments
|
|
435
|
+
* * `origin` - the secondary key of the sender.
|
|
436
|
+
* * `ticker` - the ticker of the local metadata key.
|
|
437
|
+
* * `metadata_key` - the metadata key that will have its value deleted.
|
|
438
|
+
*
|
|
439
|
+
* # Errors
|
|
440
|
+
* - `SecondaryKeyNotAuthorizedForAsset` - if called by someone without the appropriate external agent permissions.
|
|
441
|
+
* - `UnauthorizedAgent` - if called by someone without the appropriate external agent permissions.
|
|
442
|
+
* - `AssetMetadataKeyIsMissing` - if the key doens't exist.
|
|
443
|
+
* - `AssetMetadataValueIsLocked` - if the value of the key is locked.
|
|
444
|
+
*
|
|
445
|
+
* # Permissions
|
|
446
|
+
* * Asset
|
|
447
|
+
**/
|
|
448
|
+
removeMetadataValue: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, metadataKey: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
|
|
449
|
+
Global: any;
|
|
450
|
+
} | {
|
|
451
|
+
Local: any;
|
|
452
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
453
|
+
PolymeshPrimitivesTicker,
|
|
454
|
+
PolymeshPrimitivesAssetMetadataAssetMetadataKey
|
|
455
|
+
]>;
|
|
379
456
|
/**
|
|
380
457
|
* Renames a given token.
|
|
381
458
|
*
|
|
@@ -516,6 +593,48 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
516
593
|
unfreeze: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
517
594
|
PolymeshPrimitivesTicker
|
|
518
595
|
]>;
|
|
596
|
+
/**
|
|
597
|
+
* Updates the type of an asset.
|
|
598
|
+
*
|
|
599
|
+
* # Arguments
|
|
600
|
+
* * `origin` - the secondary key of the sender.
|
|
601
|
+
* * `ticker` - the ticker of the token.
|
|
602
|
+
* * `asset_type` - the new type of the token.
|
|
603
|
+
*
|
|
604
|
+
* ## Errors
|
|
605
|
+
* - `InvalidCustomAssetTypeId` if `asset_type` is of type custom and has an invalid type id.
|
|
606
|
+
*
|
|
607
|
+
* # Permissions
|
|
608
|
+
* * Asset
|
|
609
|
+
**/
|
|
610
|
+
updateAssetType: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, assetType: PolymeshPrimitivesAssetAssetType | {
|
|
611
|
+
EquityCommon: any;
|
|
612
|
+
} | {
|
|
613
|
+
EquityPreferred: any;
|
|
614
|
+
} | {
|
|
615
|
+
Commodity: any;
|
|
616
|
+
} | {
|
|
617
|
+
FixedIncome: any;
|
|
618
|
+
} | {
|
|
619
|
+
REIT: any;
|
|
620
|
+
} | {
|
|
621
|
+
Fund: any;
|
|
622
|
+
} | {
|
|
623
|
+
RevenueShareAgreement: any;
|
|
624
|
+
} | {
|
|
625
|
+
StructuredProduct: any;
|
|
626
|
+
} | {
|
|
627
|
+
Derivative: any;
|
|
628
|
+
} | {
|
|
629
|
+
Custom: any;
|
|
630
|
+
} | {
|
|
631
|
+
StableCoin: any;
|
|
632
|
+
} | {
|
|
633
|
+
NonFungible: any;
|
|
634
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
635
|
+
PolymeshPrimitivesTicker,
|
|
636
|
+
PolymeshPrimitivesAssetAssetType
|
|
637
|
+
]>;
|
|
519
638
|
/**
|
|
520
639
|
* Updates the asset identifiers.
|
|
521
640
|
*
|
|
@@ -1402,7 +1521,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1402
1521
|
complianceManager: {
|
|
1403
1522
|
/**
|
|
1404
1523
|
* Adds a compliance requirement to an asset's compliance by ticker.
|
|
1405
|
-
* If
|
|
1524
|
+
* If there are duplicate ClaimTypes for a particular trusted issuer, duplicates are removed.
|
|
1406
1525
|
*
|
|
1407
1526
|
* # Arguments
|
|
1408
1527
|
* * origin - Signer of the dispatchable. It should be the owner of the ticker
|
|
@@ -1556,6 +1675,207 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1556
1675
|
PolymeshPrimitivesTicker
|
|
1557
1676
|
]>;
|
|
1558
1677
|
};
|
|
1678
|
+
contracts: {
|
|
1679
|
+
/**
|
|
1680
|
+
* Makes a call to an account, optionally transferring some balance.
|
|
1681
|
+
*
|
|
1682
|
+
* # Parameters
|
|
1683
|
+
*
|
|
1684
|
+
* * `dest`: Address of the contract to call.
|
|
1685
|
+
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
1686
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1687
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
1688
|
+
* caller to pay for the storage consumed.
|
|
1689
|
+
* * `data`: The input data to pass to the contract.
|
|
1690
|
+
*
|
|
1691
|
+
* * If the account is a smart-contract account, the associated code will be
|
|
1692
|
+
* executed and any value will be transferred.
|
|
1693
|
+
* * If the account is a regular account, any value will be transferred.
|
|
1694
|
+
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
1695
|
+
* a regular account will be created and any value will be transferred.
|
|
1696
|
+
**/
|
|
1697
|
+
call: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1698
|
+
Id: any;
|
|
1699
|
+
} | {
|
|
1700
|
+
Index: any;
|
|
1701
|
+
} | {
|
|
1702
|
+
Raw: any;
|
|
1703
|
+
} | {
|
|
1704
|
+
Address32: any;
|
|
1705
|
+
} | {
|
|
1706
|
+
Address20: any;
|
|
1707
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1708
|
+
refTime?: any;
|
|
1709
|
+
proofSize?: any;
|
|
1710
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1711
|
+
MultiAddress,
|
|
1712
|
+
Compact<u128>,
|
|
1713
|
+
SpWeightsWeightV2Weight,
|
|
1714
|
+
Option<Compact<u128>>,
|
|
1715
|
+
Bytes
|
|
1716
|
+
]>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Deprecated version if [`Self::call`] for use in an in-storage `Call`.
|
|
1719
|
+
**/
|
|
1720
|
+
callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1721
|
+
Id: any;
|
|
1722
|
+
} | {
|
|
1723
|
+
Index: any;
|
|
1724
|
+
} | {
|
|
1725
|
+
Raw: any;
|
|
1726
|
+
} | {
|
|
1727
|
+
Address32: any;
|
|
1728
|
+
} | {
|
|
1729
|
+
Address20: any;
|
|
1730
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1731
|
+
MultiAddress,
|
|
1732
|
+
Compact<u128>,
|
|
1733
|
+
Compact<u64>,
|
|
1734
|
+
Option<Compact<u128>>,
|
|
1735
|
+
Bytes
|
|
1736
|
+
]>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Instantiates a contract from a previously deployed wasm binary.
|
|
1739
|
+
*
|
|
1740
|
+
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
1741
|
+
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
1742
|
+
* must be supplied.
|
|
1743
|
+
**/
|
|
1744
|
+
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1745
|
+
refTime?: any;
|
|
1746
|
+
proofSize?: any;
|
|
1747
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1748
|
+
Compact<u128>,
|
|
1749
|
+
SpWeightsWeightV2Weight,
|
|
1750
|
+
Option<Compact<u128>>,
|
|
1751
|
+
H256,
|
|
1752
|
+
Bytes,
|
|
1753
|
+
Bytes
|
|
1754
|
+
]>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
|
|
1757
|
+
**/
|
|
1758
|
+
instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1759
|
+
Compact<u128>,
|
|
1760
|
+
Compact<u64>,
|
|
1761
|
+
Option<Compact<u128>>,
|
|
1762
|
+
H256,
|
|
1763
|
+
Bytes,
|
|
1764
|
+
Bytes
|
|
1765
|
+
]>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
1768
|
+
* some balance.
|
|
1769
|
+
*
|
|
1770
|
+
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
1771
|
+
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
1772
|
+
* also check the documentation of [`Self::upload_code`].
|
|
1773
|
+
*
|
|
1774
|
+
* # Parameters
|
|
1775
|
+
*
|
|
1776
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
1777
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1778
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
1779
|
+
* from the caller to pay for the storage consumed.
|
|
1780
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
1781
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
1782
|
+
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
|
1783
|
+
*
|
|
1784
|
+
* Instantiation is executed as follows:
|
|
1785
|
+
*
|
|
1786
|
+
* - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
|
|
1787
|
+
* code.
|
|
1788
|
+
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
1789
|
+
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
1790
|
+
* - The smart-contract account is created at the computed address.
|
|
1791
|
+
* - The `value` is transferred to the new account.
|
|
1792
|
+
* - The `deploy` function is executed in the context of the newly-created account.
|
|
1793
|
+
**/
|
|
1794
|
+
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1795
|
+
refTime?: any;
|
|
1796
|
+
proofSize?: any;
|
|
1797
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1798
|
+
Compact<u128>,
|
|
1799
|
+
SpWeightsWeightV2Weight,
|
|
1800
|
+
Option<Compact<u128>>,
|
|
1801
|
+
Bytes,
|
|
1802
|
+
Bytes,
|
|
1803
|
+
Bytes
|
|
1804
|
+
]>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
|
|
1807
|
+
**/
|
|
1808
|
+
instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1809
|
+
Compact<u128>,
|
|
1810
|
+
Compact<u64>,
|
|
1811
|
+
Option<Compact<u128>>,
|
|
1812
|
+
Bytes,
|
|
1813
|
+
Bytes,
|
|
1814
|
+
Bytes
|
|
1815
|
+
]>;
|
|
1816
|
+
/**
|
|
1817
|
+
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
1818
|
+
*
|
|
1819
|
+
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
1820
|
+
* not used by any contract.
|
|
1821
|
+
**/
|
|
1822
|
+
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1823
|
+
H256
|
|
1824
|
+
]>;
|
|
1825
|
+
/**
|
|
1826
|
+
* Privileged function that changes the code of an existing contract.
|
|
1827
|
+
*
|
|
1828
|
+
* This takes care of updating refcounts and all other necessary operations. Returns
|
|
1829
|
+
* an error if either the `code_hash` or `dest` do not exist.
|
|
1830
|
+
*
|
|
1831
|
+
* # Note
|
|
1832
|
+
*
|
|
1833
|
+
* This does **not** change the address of the contract in question. This means
|
|
1834
|
+
* that the contract address is no longer derived from its code hash after calling
|
|
1835
|
+
* this dispatchable.
|
|
1836
|
+
**/
|
|
1837
|
+
setCode: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1838
|
+
Id: any;
|
|
1839
|
+
} | {
|
|
1840
|
+
Index: any;
|
|
1841
|
+
} | {
|
|
1842
|
+
Raw: any;
|
|
1843
|
+
} | {
|
|
1844
|
+
Address32: any;
|
|
1845
|
+
} | {
|
|
1846
|
+
Address20: any;
|
|
1847
|
+
} | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1848
|
+
MultiAddress,
|
|
1849
|
+
H256
|
|
1850
|
+
]>;
|
|
1851
|
+
/**
|
|
1852
|
+
* Upload new `code` without instantiating a contract from it.
|
|
1853
|
+
*
|
|
1854
|
+
* If the code does not already exist a deposit is reserved from the caller
|
|
1855
|
+
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
1856
|
+
* depends on the instrumented size of the the supplied `code`.
|
|
1857
|
+
*
|
|
1858
|
+
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
1859
|
+
* the in storage version to the current
|
|
1860
|
+
* [`InstructionWeights::version`](InstructionWeights).
|
|
1861
|
+
*
|
|
1862
|
+
* - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
|
1863
|
+
* then the only way to use this code is to delegate call into it from an offchain
|
|
1864
|
+
* execution. Set to [`Determinism::Deterministic`] if in doubt.
|
|
1865
|
+
*
|
|
1866
|
+
* # Note
|
|
1867
|
+
*
|
|
1868
|
+
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
1869
|
+
* To avoid this situation a constructor could employ access control so that it can
|
|
1870
|
+
* only be instantiated by permissioned entities. The same is true when uploading
|
|
1871
|
+
* through [`Self::instantiate_with_code`].
|
|
1872
|
+
**/
|
|
1873
|
+
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1874
|
+
Bytes,
|
|
1875
|
+
Option<Compact<u128>>,
|
|
1876
|
+
PalletContractsWasmDeterminism
|
|
1877
|
+
]>;
|
|
1878
|
+
};
|
|
1559
1879
|
corporateAction: {
|
|
1560
1880
|
/**
|
|
1561
1881
|
* Changes the record date of the CA identified by `ca_id`.
|
|
@@ -2058,14 +2378,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2058
2378
|
These: any;
|
|
2059
2379
|
} | {
|
|
2060
2380
|
Except: any;
|
|
2061
|
-
} | string | Uint8Array, target:
|
|
2062
|
-
Identity: any;
|
|
2063
|
-
} | {
|
|
2064
|
-
Account: any;
|
|
2065
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2381
|
+
} | string | Uint8Array, target: PolymeshPrimitivesIdentityId | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2066
2382
|
PolymeshPrimitivesTicker,
|
|
2067
2383
|
PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions,
|
|
2068
|
-
|
|
2384
|
+
PolymeshPrimitivesIdentityId,
|
|
2385
|
+
Option<u64>
|
|
2069
2386
|
]>;
|
|
2070
2387
|
/**
|
|
2071
2388
|
* Remove the given `agent` from `ticker`.
|
|
@@ -2118,12 +2435,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2118
2435
|
};
|
|
2119
2436
|
grandpa: {
|
|
2120
2437
|
/**
|
|
2121
|
-
* Note that the current authority set of the GRANDPA finality gadget has
|
|
2122
|
-
*
|
|
2123
|
-
*
|
|
2124
|
-
* should be high enough to safely assume
|
|
2125
|
-
* forced change will not be re-orged
|
|
2126
|
-
*
|
|
2438
|
+
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
|
2439
|
+
*
|
|
2440
|
+
* This will trigger a forced authority set change at the beginning of the next session, to
|
|
2441
|
+
* be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
|
|
2442
|
+
* that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
|
|
2443
|
+
* The block production rate (which may be slowed down because of finality lagging) should
|
|
2444
|
+
* be taken into account when choosing the `delay`. The GRANDPA voters based on the new
|
|
2445
|
+
* authority will start voting on top of `best_finalized_block_number` for new finalized
|
|
2446
|
+
* blocks. `best_finalized_block_number` should be the highest of the latest finalized
|
|
2447
|
+
* block of all validators of the new authority set.
|
|
2448
|
+
*
|
|
2127
2449
|
* Only callable by root.
|
|
2128
2450
|
**/
|
|
2129
2451
|
noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
@@ -2251,6 +2573,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2251
2573
|
NoData: any;
|
|
2252
2574
|
} | {
|
|
2253
2575
|
InvestorUniquenessV2: any;
|
|
2576
|
+
} | {
|
|
2577
|
+
Custom: any;
|
|
2254
2578
|
} | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2255
2579
|
PolymeshPrimitivesIdentityId,
|
|
2256
2580
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
@@ -2302,13 +2626,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2302
2626
|
NoData: any;
|
|
2303
2627
|
} | {
|
|
2304
2628
|
InvestorUniquenessV2: any;
|
|
2305
|
-
} |
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
} | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2629
|
+
} | {
|
|
2630
|
+
Custom: any;
|
|
2631
|
+
} | string | Uint8Array, proof: U8aFixed | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2309
2632
|
PolymeshPrimitivesIdentityId,
|
|
2310
2633
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
2311
|
-
|
|
2634
|
+
U8aFixed,
|
|
2312
2635
|
Option<u64>
|
|
2313
2636
|
]>;
|
|
2314
2637
|
addInvestorUniquenessClaimV2: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, scope: PolymeshPrimitivesIdentityClaimScope | {
|
|
@@ -2341,7 +2664,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2341
2664
|
NoData: any;
|
|
2342
2665
|
} | {
|
|
2343
2666
|
InvestorUniquenessV2: any;
|
|
2344
|
-
} |
|
|
2667
|
+
} | {
|
|
2668
|
+
Custom: any;
|
|
2669
|
+
} | string | Uint8Array, proof: ConfidentialIdentityV2ClaimProofsScopeClaimProof | {
|
|
2345
2670
|
proofScopeIdWellformed?: any;
|
|
2346
2671
|
proofScopeIdCddIdMatch?: any;
|
|
2347
2672
|
scopeId?: any;
|
|
@@ -2349,7 +2674,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2349
2674
|
PolymeshPrimitivesIdentityId,
|
|
2350
2675
|
PolymeshPrimitivesIdentityClaimScope,
|
|
2351
2676
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
2352
|
-
|
|
2677
|
+
ConfidentialIdentityV2ClaimProofsScopeClaimProof,
|
|
2353
2678
|
Option<u64>
|
|
2354
2679
|
]>;
|
|
2355
2680
|
/**
|
|
@@ -2393,9 +2718,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2393
2718
|
* - `target_account` (primary key of the new Identity) can be linked to just one and only
|
|
2394
2719
|
* one identity.
|
|
2395
2720
|
* - External secondary keys can be linked to just one identity.
|
|
2396
|
-
*
|
|
2397
|
-
* # Weight
|
|
2398
|
-
* `7_000_000_000 + 600_000 * secondary_keys.len()`
|
|
2399
2721
|
**/
|
|
2400
2722
|
cddRegisterDid: AugmentedSubmittable<(targetAccount: AccountId32 | string | Uint8Array, secondaryKeys: Vec<PolymeshPrimitivesSecondaryKey> | (PolymeshPrimitivesSecondaryKey | {
|
|
2401
2723
|
key?: any;
|
|
@@ -2404,6 +2726,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2404
2726
|
AccountId32,
|
|
2405
2727
|
Vec<PolymeshPrimitivesSecondaryKey>
|
|
2406
2728
|
]>;
|
|
2729
|
+
/**
|
|
2730
|
+
* Register `target_account` with a new Identity and issue a CDD claim with a blank CddId
|
|
2731
|
+
*
|
|
2732
|
+
* # Failure
|
|
2733
|
+
* - `origin` has to be a active CDD provider. Inactive CDD providers cannot add new
|
|
2734
|
+
* claims.
|
|
2735
|
+
* - `target_account` (primary key of the new Identity) can be linked to just one and only
|
|
2736
|
+
* one identity.
|
|
2737
|
+
* - External secondary keys can be linked to just one identity.
|
|
2738
|
+
**/
|
|
2739
|
+
cddRegisterDidWithCdd: AugmentedSubmittable<(targetAccount: AccountId32 | string | Uint8Array, secondaryKeys: Vec<PolymeshPrimitivesSecondaryKey> | (PolymeshPrimitivesSecondaryKey | {
|
|
2740
|
+
key?: any;
|
|
2741
|
+
permissions?: any;
|
|
2742
|
+
} | string | Uint8Array)[], expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2743
|
+
AccountId32,
|
|
2744
|
+
Vec<PolymeshPrimitivesSecondaryKey>,
|
|
2745
|
+
Option<u64>
|
|
2746
|
+
]>;
|
|
2407
2747
|
/**
|
|
2408
2748
|
* Set if CDD authorization is required for updating primary key of an identity.
|
|
2409
2749
|
* Callable via root (governance)
|
|
@@ -2459,6 +2799,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2459
2799
|
**/
|
|
2460
2800
|
placeholderLegacySetPermissionToSigner: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, [
|
|
2461
2801
|
]>;
|
|
2802
|
+
/**
|
|
2803
|
+
* Register custom claim type.
|
|
2804
|
+
*
|
|
2805
|
+
* # Errors
|
|
2806
|
+
* * `CustomClaimTypeAlreadyExists` The type that is being registered already exists.
|
|
2807
|
+
* * `CounterOverflow` CustomClaimTypeId has overflowed.
|
|
2808
|
+
* * `TooLong` The type being registered is too lang.
|
|
2809
|
+
**/
|
|
2810
|
+
registerCustomClaimType: AugmentedSubmittable<(ty: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2811
|
+
Bytes
|
|
2812
|
+
]>;
|
|
2462
2813
|
/**
|
|
2463
2814
|
* Removes an authorization.
|
|
2464
2815
|
* _auth_issuer_pays determines whether the issuer of the authorisation pays the transaction fee
|
|
@@ -2519,6 +2870,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2519
2870
|
NoData: any;
|
|
2520
2871
|
} | {
|
|
2521
2872
|
InvestorUniquenessV2: any;
|
|
2873
|
+
} | {
|
|
2874
|
+
Custom: any;
|
|
2522
2875
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2523
2876
|
PolymeshPrimitivesIdentityId,
|
|
2524
2877
|
PolymeshPrimitivesIdentityClaimClaim
|
|
@@ -2533,20 +2886,46 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2533
2886
|
* - `TargetHasNonZeroBalanceAtScopeId` when you try to revoke a `InvestorUniqueness*`
|
|
2534
2887
|
* claim, and `target` identity still have any balance on the given `scope`.
|
|
2535
2888
|
**/
|
|
2536
|
-
revokeClaimByIndex: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, claimType: PolymeshPrimitivesIdentityClaimClaimType |
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2889
|
+
revokeClaimByIndex: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, claimType: PolymeshPrimitivesIdentityClaimClaimType | {
|
|
2890
|
+
Accredited: any;
|
|
2891
|
+
} | {
|
|
2892
|
+
Affiliate: any;
|
|
2893
|
+
} | {
|
|
2894
|
+
BuyLockup: any;
|
|
2895
|
+
} | {
|
|
2896
|
+
SellLockup: any;
|
|
2897
|
+
} | {
|
|
2898
|
+
CustomerDueDiligence: any;
|
|
2899
|
+
} | {
|
|
2900
|
+
KnowYourCustomer: any;
|
|
2901
|
+
} | {
|
|
2902
|
+
Jurisdiction: any;
|
|
2903
|
+
} | {
|
|
2904
|
+
Exempted: any;
|
|
2905
|
+
} | {
|
|
2906
|
+
Blocked: any;
|
|
2907
|
+
} | {
|
|
2908
|
+
InvestorUniqueness: any;
|
|
2909
|
+
} | {
|
|
2910
|
+
NoType: any;
|
|
2911
|
+
} | {
|
|
2912
|
+
InvestorUniquenessV2: any;
|
|
2913
|
+
} | {
|
|
2914
|
+
Custom: any;
|
|
2915
|
+
} | string | Uint8Array, scope: Option<PolymeshPrimitivesIdentityClaimScope> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2916
|
+
PolymeshPrimitivesIdentityId,
|
|
2917
|
+
PolymeshPrimitivesIdentityClaimClaimType,
|
|
2918
|
+
Option<PolymeshPrimitivesIdentityClaimScope>
|
|
2919
|
+
]>;
|
|
2920
|
+
/**
|
|
2921
|
+
* Call this with the new primary key. By invoking this method, caller accepts authorization
|
|
2922
|
+
* to become the new primary key of the issuing identity. If a CDD service provider approved
|
|
2923
|
+
* this change, (or this is not required), primary key of the DID is updated.
|
|
2924
|
+
*
|
|
2925
|
+
* The caller (new primary key) must be either a secondary key of the issuing identity, or
|
|
2926
|
+
* unlinked to any identity.
|
|
2927
|
+
*
|
|
2928
|
+
* Differs from accept_primary_key in that it will leave the old primary key as a secondary
|
|
2550
2929
|
* key with the permissions specified in the corresponding RotatePrimaryKeyToSecondary authorization
|
|
2551
2930
|
* instead of unlinking the old primary key.
|
|
2552
2931
|
*
|
|
@@ -2661,8 +3040,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2661
3040
|
* - Writes: Indices Accounts, System Account (original owner)
|
|
2662
3041
|
* # </weight>
|
|
2663
3042
|
**/
|
|
2664
|
-
forceTransfer: AugmentedSubmittable<(updated:
|
|
2665
|
-
|
|
3043
|
+
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
3044
|
+
Id: any;
|
|
3045
|
+
} | {
|
|
3046
|
+
Index: any;
|
|
3047
|
+
} | {
|
|
3048
|
+
Raw: any;
|
|
3049
|
+
} | {
|
|
3050
|
+
Address32: any;
|
|
3051
|
+
} | {
|
|
3052
|
+
Address20: any;
|
|
3053
|
+
} | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3054
|
+
MultiAddress,
|
|
2666
3055
|
u32,
|
|
2667
3056
|
bool
|
|
2668
3057
|
]>;
|
|
@@ -2734,8 +3123,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2734
3123
|
* - Writes: Indices Accounts, System Account (recipient)
|
|
2735
3124
|
* # </weight>
|
|
2736
3125
|
**/
|
|
2737
|
-
transfer: AugmentedSubmittable<(updated:
|
|
2738
|
-
|
|
3126
|
+
transfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
3127
|
+
Id: any;
|
|
3128
|
+
} | {
|
|
3129
|
+
Index: any;
|
|
3130
|
+
} | {
|
|
3131
|
+
Raw: any;
|
|
3132
|
+
} | {
|
|
3133
|
+
Address32: any;
|
|
3134
|
+
} | {
|
|
3135
|
+
Address20: any;
|
|
3136
|
+
} | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3137
|
+
MultiAddress,
|
|
2739
3138
|
u32
|
|
2740
3139
|
]>;
|
|
2741
3140
|
};
|
|
@@ -2906,11 +3305,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2906
3305
|
/**
|
|
2907
3306
|
* Root callable extrinsic, used as an internal call for executing scheduled multisig proposal.
|
|
2908
3307
|
**/
|
|
2909
|
-
executeScheduledProposal: AugmentedSubmittable<(multisig: AccountId32 | string | Uint8Array, proposalId: u64 | AnyNumber | Uint8Array, multisigDid: PolymeshPrimitivesIdentityId | string | Uint8Array, proposalWeight:
|
|
3308
|
+
executeScheduledProposal: AugmentedSubmittable<(multisig: AccountId32 | string | Uint8Array, proposalId: u64 | AnyNumber | Uint8Array, multisigDid: PolymeshPrimitivesIdentityId | string | Uint8Array, proposalWeight: SpWeightsWeightV2Weight | {
|
|
3309
|
+
refTime?: any;
|
|
3310
|
+
proofSize?: any;
|
|
3311
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2910
3312
|
AccountId32,
|
|
2911
3313
|
u64,
|
|
2912
3314
|
PolymeshPrimitivesIdentityId,
|
|
2913
|
-
|
|
3315
|
+
SpWeightsWeightV2Weight
|
|
2914
3316
|
]>;
|
|
2915
3317
|
/**
|
|
2916
3318
|
* Adds a multisig as the primary key of the current did if the current DID is the creator
|
|
@@ -2990,6 +3392,89 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2990
3392
|
Vec<PolymeshPrimitivesSecondaryKeySignatory>
|
|
2991
3393
|
]>;
|
|
2992
3394
|
};
|
|
3395
|
+
nft: {
|
|
3396
|
+
/**
|
|
3397
|
+
* Cretes a new `NFTCollection`.
|
|
3398
|
+
*
|
|
3399
|
+
* # Arguments
|
|
3400
|
+
* * `origin` - contains the secondary key of the caller (i.e. who signed the transaction to execute this function).
|
|
3401
|
+
* * `ticker` - the ticker associated to the new collection.
|
|
3402
|
+
* * `nft_type` - in case the asset hasn't been created yet, one will be created with the given type.
|
|
3403
|
+
* * `collection_keys` - all mandatory metadata keys that the tokens in the collection must have.
|
|
3404
|
+
*
|
|
3405
|
+
* ## Errors
|
|
3406
|
+
* - `CollectionAlredyRegistered` - if the ticker is already associated to an NFT collection.
|
|
3407
|
+
* - `InvalidAssetType` - if the associated asset is not of type NFT.
|
|
3408
|
+
* - `MaxNumberOfKeysExceeded` - if the number of metadata keys for the collection is greater than the maximum allowed.
|
|
3409
|
+
* - `UnregisteredMetadataKey` - if any of the metadata keys needed for the collection has not been registered.
|
|
3410
|
+
* - `DuplicateMetadataKey` - if a duplicate metadata keys has been passed as input.
|
|
3411
|
+
*
|
|
3412
|
+
* # Permissions
|
|
3413
|
+
* * Asset
|
|
3414
|
+
**/
|
|
3415
|
+
createNftCollection: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftType: Option<PolymeshPrimitivesAssetNonFungibleType> | null | object | string | Uint8Array, collectionKeys: PolymeshPrimitivesNftNftCollectionKeys) => SubmittableExtrinsic<ApiType>, [
|
|
3416
|
+
PolymeshPrimitivesTicker,
|
|
3417
|
+
Option<PolymeshPrimitivesAssetNonFungibleType>,
|
|
3418
|
+
PolymeshPrimitivesNftNftCollectionKeys
|
|
3419
|
+
]>;
|
|
3420
|
+
/**
|
|
3421
|
+
* Issues an NFT to the caller.
|
|
3422
|
+
*
|
|
3423
|
+
* # Arguments
|
|
3424
|
+
* * `origin` - is a signer that has permissions to act as an agent of `ticker`.
|
|
3425
|
+
* * `ticker` - the ticker of the NFT collection.
|
|
3426
|
+
* * `nft_metadata_attributes` - all mandatory metadata keys and values for the NFT.
|
|
3427
|
+
* - `portfolio_kind` - the portfolio that will receive the minted nft.
|
|
3428
|
+
*
|
|
3429
|
+
* ## Errors
|
|
3430
|
+
* - `CollectionNotFound` - if the collection associated to the given ticker has not been created.
|
|
3431
|
+
* - `InvalidMetadataAttribute` - if the number of attributes is not equal to the number set in the collection or attempting to set a value for a key not definied in the collection.
|
|
3432
|
+
* - `DuplicateMetadataKey` - if a duplicate metadata keys has been passed as input.
|
|
3433
|
+
*
|
|
3434
|
+
*
|
|
3435
|
+
* # Permissions
|
|
3436
|
+
* * Asset
|
|
3437
|
+
* * Portfolio
|
|
3438
|
+
**/
|
|
3439
|
+
issueNft: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftMetadataAttributes: Vec<PolymeshPrimitivesNftNftMetadataAttribute> | (PolymeshPrimitivesNftNftMetadataAttribute | {
|
|
3440
|
+
key?: any;
|
|
3441
|
+
value?: any;
|
|
3442
|
+
} | string | Uint8Array)[], portfolioKind: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
3443
|
+
Default: any;
|
|
3444
|
+
} | {
|
|
3445
|
+
User: any;
|
|
3446
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3447
|
+
PolymeshPrimitivesTicker,
|
|
3448
|
+
Vec<PolymeshPrimitivesNftNftMetadataAttribute>,
|
|
3449
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
3450
|
+
]>;
|
|
3451
|
+
/**
|
|
3452
|
+
* Redeems the given NFT from the caller's portfolio.
|
|
3453
|
+
*
|
|
3454
|
+
* # Arguments
|
|
3455
|
+
* * `origin` - is a signer that has permissions to act as an agent of `ticker`.
|
|
3456
|
+
* * `ticker` - the ticker of the NFT collection.
|
|
3457
|
+
* * `nft_id` - the id of the NFT to be burned.
|
|
3458
|
+
* * `portfolio_kind` - the portfolio that contains the nft.
|
|
3459
|
+
*
|
|
3460
|
+
* ## Errors
|
|
3461
|
+
* - `CollectionNotFound` - if the collection associated to the given ticker has not been created.
|
|
3462
|
+
* - `NFTNotFound` - if the given NFT does not exist in the portfolio.
|
|
3463
|
+
*
|
|
3464
|
+
* # Permissions
|
|
3465
|
+
* * Asset
|
|
3466
|
+
* * Portfolio
|
|
3467
|
+
**/
|
|
3468
|
+
redeemNft: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftId: u64 | AnyNumber | Uint8Array, portfolioKind: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
3469
|
+
Default: any;
|
|
3470
|
+
} | {
|
|
3471
|
+
User: any;
|
|
3472
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3473
|
+
PolymeshPrimitivesTicker,
|
|
3474
|
+
u64,
|
|
3475
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
3476
|
+
]>;
|
|
3477
|
+
};
|
|
2993
3478
|
pips: {
|
|
2994
3479
|
/**
|
|
2995
3480
|
* Approves the pending committee PIP given by the `id`.
|
|
@@ -3286,106 +3771,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3286
3771
|
]>;
|
|
3287
3772
|
};
|
|
3288
3773
|
polymeshContracts: {
|
|
3289
|
-
/**
|
|
3290
|
-
* Calls the `contract` through its address with the given `data`.
|
|
3291
|
-
*
|
|
3292
|
-
* The contract is endowed with `value` POLYX,
|
|
3293
|
-
* but note that this is distinct from gas fees which are limited with `gas_limit`.
|
|
3294
|
-
*
|
|
3295
|
-
* The contract may optionally call back into the runtime,
|
|
3296
|
-
* executing extrinsics such as e.g., `create_asset`.
|
|
3297
|
-
* During such runtime calls, the current identity will be the one that instantiate the `contract`.
|
|
3298
|
-
* This restriction exists for security purposes.
|
|
3299
|
-
*
|
|
3300
|
-
* # Arguments
|
|
3301
|
-
* - `contract` to call.
|
|
3302
|
-
* - `value` in POLYX to transfer to the contract.
|
|
3303
|
-
* - `gas_limit` that limits how much gas execution can consume, erroring above it.
|
|
3304
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged from the
|
|
3305
|
-
* caller to pay for the storage consumed.
|
|
3306
|
-
* - `data` The input data to pass to the contract.
|
|
3307
|
-
*
|
|
3308
|
-
* # Errors
|
|
3309
|
-
* - All the errors in `pallet_contracts::Call::call` can also happen here.
|
|
3310
|
-
* - `ContractNotFound` if `contract` doesn't exist or isn't a contract.
|
|
3311
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3312
|
-
**/
|
|
3313
|
-
call: AugmentedSubmittable<(contract: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3314
|
-
AccountId32,
|
|
3315
|
-
u128,
|
|
3316
|
-
u64,
|
|
3317
|
-
Option<u128>,
|
|
3318
|
-
Bytes
|
|
3319
|
-
]>;
|
|
3320
|
-
/**
|
|
3321
|
-
* Instantiates a smart contract defining using the given `code_hash` and `salt`.
|
|
3322
|
-
*
|
|
3323
|
-
* Unlike `instantiate_with_code`,
|
|
3324
|
-
* this assumes that at least one contract with the same WASM code has already been uploaded.
|
|
3325
|
-
*
|
|
3326
|
-
* The contract will be attached as a secondary key,
|
|
3327
|
-
* with empty permissions, to `origin`'s identity.
|
|
3328
|
-
*
|
|
3329
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
3330
|
-
* This is distinct from the `gas_limit`,
|
|
3331
|
-
* which controls how much gas the deployment code may at most consume.
|
|
3332
|
-
*
|
|
3333
|
-
* # Arguments
|
|
3334
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
3335
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
3336
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
3337
|
-
* from the caller to pay for the storage consumed.
|
|
3338
|
-
* - `code_hash` of an already uploaded WASM binary.
|
|
3339
|
-
* - `data` The input data to pass to the contract constructor.
|
|
3340
|
-
* - `salt` used for contract address derivation.
|
|
3341
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
3342
|
-
*
|
|
3343
|
-
* # Errors
|
|
3344
|
-
* - All the errors in `pallet_contracts::Call::instantiate` can also happen here.
|
|
3345
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3346
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3347
|
-
**/
|
|
3348
|
-
instantiate: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3349
|
-
u128,
|
|
3350
|
-
u64,
|
|
3351
|
-
Option<u128>,
|
|
3352
|
-
H256,
|
|
3353
|
-
Bytes,
|
|
3354
|
-
Bytes
|
|
3355
|
-
]>;
|
|
3356
|
-
/**
|
|
3357
|
-
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
3358
|
-
*
|
|
3359
|
-
* The contract will be attached as a secondary key,
|
|
3360
|
-
* with empty permissions, to `origin`'s identity.
|
|
3361
|
-
*
|
|
3362
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
3363
|
-
* This is distinct from the `gas_limit`,
|
|
3364
|
-
* which controls how much gas the deployment code may at most consume.
|
|
3365
|
-
*
|
|
3366
|
-
* # Arguments
|
|
3367
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
3368
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
3369
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
3370
|
-
* from the caller to pay for the storage consumed.
|
|
3371
|
-
* - `code` with the WASM binary defining the smart contract.
|
|
3372
|
-
* - `data` The input data to pass to the contract constructor.
|
|
3373
|
-
* - `salt` used for contract address derivation.
|
|
3374
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
3375
|
-
*
|
|
3376
|
-
* # Errors
|
|
3377
|
-
* - All the errors in `pallet_contracts::Call::instantiate_with_code` can also happen here.
|
|
3378
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3379
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3380
|
-
**/
|
|
3381
|
-
instantiateWithCode: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3382
|
-
u128,
|
|
3383
|
-
u64,
|
|
3384
|
-
Option<u128>,
|
|
3385
|
-
Bytes,
|
|
3386
|
-
Bytes,
|
|
3387
|
-
Bytes
|
|
3388
|
-
]>;
|
|
3389
3774
|
/**
|
|
3390
3775
|
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
3391
3776
|
*
|
|
@@ -3412,13 +3797,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3412
3797
|
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3413
3798
|
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3414
3799
|
**/
|
|
3415
|
-
instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit:
|
|
3800
|
+
instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
3801
|
+
refTime?: any;
|
|
3802
|
+
proofSize?: any;
|
|
3803
|
+
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
|
|
3416
3804
|
asset?: any;
|
|
3417
3805
|
extrinsic?: any;
|
|
3418
3806
|
portfolio?: any;
|
|
3419
3807
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3420
3808
|
u128,
|
|
3421
|
-
|
|
3809
|
+
SpWeightsWeightV2Weight,
|
|
3422
3810
|
Option<u128>,
|
|
3423
3811
|
Bytes,
|
|
3424
3812
|
Bytes,
|
|
@@ -3454,13 +3842,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3454
3842
|
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3455
3843
|
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3456
3844
|
**/
|
|
3457
|
-
instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit:
|
|
3845
|
+
instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
3846
|
+
refTime?: any;
|
|
3847
|
+
proofSize?: any;
|
|
3848
|
+
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
|
|
3458
3849
|
asset?: any;
|
|
3459
3850
|
extrinsic?: any;
|
|
3460
3851
|
portfolio?: any;
|
|
3461
3852
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3462
3853
|
u128,
|
|
3463
|
-
|
|
3854
|
+
SpWeightsWeightV2Weight,
|
|
3464
3855
|
Option<u128>,
|
|
3465
3856
|
H256,
|
|
3466
3857
|
Bytes,
|
|
@@ -3468,35 +3859,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3468
3859
|
PolymeshPrimitivesSecondaryKeyPermissions
|
|
3469
3860
|
]>;
|
|
3470
3861
|
/**
|
|
3471
|
-
*
|
|
3862
|
+
* Update CallRuntime whitelist.
|
|
3472
3863
|
*
|
|
3473
|
-
*
|
|
3474
|
-
* not used by any contract.
|
|
3475
|
-
**/
|
|
3476
|
-
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3477
|
-
H256
|
|
3478
|
-
]>;
|
|
3479
|
-
/**
|
|
3480
|
-
* Upload new `code` without instantiating a contract from it.
|
|
3481
|
-
*
|
|
3482
|
-
* If the code does not already exist a deposit is reserved from the caller
|
|
3483
|
-
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
3484
|
-
* depends on the instrumented size of the the supplied `code`.
|
|
3485
|
-
*
|
|
3486
|
-
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
3487
|
-
* the in storage version to the current
|
|
3488
|
-
* [`InstructionWeights::version`](InstructionWeights).
|
|
3489
|
-
*
|
|
3490
|
-
* # Note
|
|
3864
|
+
* # Arguments
|
|
3491
3865
|
*
|
|
3492
|
-
*
|
|
3493
|
-
* To avoid this situation a constructor could employ access control so that it can
|
|
3494
|
-
* only be instantiated by permissioned entities. The same is true when uploading
|
|
3495
|
-
* through [`Self::instantiate_with_code`].
|
|
3866
|
+
* # Errors
|
|
3496
3867
|
**/
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
Option<u128>
|
|
3868
|
+
updateCallRuntimeWhitelist: AugmentedSubmittable<(updates: Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>> | [PolymeshContractsChainExtensionExtrinsicId, bool | boolean | Uint8Array][]) => SubmittableExtrinsic<ApiType>, [
|
|
3869
|
+
Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>>
|
|
3500
3870
|
]>;
|
|
3501
3871
|
};
|
|
3502
3872
|
portfolio: {
|
|
@@ -3535,6 +3905,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3535
3905
|
* * `DifferentIdentityPortfolios` if the sender and receiver portfolios belong to different identities
|
|
3536
3906
|
* * `UnauthorizedCustodian` if the caller is not the custodian of the from portfolio
|
|
3537
3907
|
* * `InsufficientPortfolioBalance` if the sender does not have enough free balance
|
|
3908
|
+
* * `NoDuplicateAssetsAllowed` the same ticker can't be repeated in the items vector.
|
|
3538
3909
|
*
|
|
3539
3910
|
* # Permissions
|
|
3540
3911
|
* * Portfolio
|
|
@@ -3554,6 +3925,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3554
3925
|
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3555
3926
|
Vec<PalletPortfolioMovePortfolioItem>
|
|
3556
3927
|
]>;
|
|
3928
|
+
/**
|
|
3929
|
+
* Moves fungigle an non-fungible tokens from one portfolio of an identity to another portfolio of the same
|
|
3930
|
+
* identity. Must be called by the custodian of the sender.
|
|
3931
|
+
* Funds from deleted portfolios can also be recovered via this method.
|
|
3932
|
+
*
|
|
3933
|
+
* A short memo can be added to to each token amount moved.
|
|
3934
|
+
*
|
|
3935
|
+
* # Errors
|
|
3936
|
+
* * `PortfolioDoesNotExist` if one or both of the portfolios reference an invalid portfolio.
|
|
3937
|
+
* * `destination_is_same_portfolio` if both sender and receiver portfolio are the same
|
|
3938
|
+
* * `DifferentIdentityPortfolios` if the sender and receiver portfolios belong to different identities
|
|
3939
|
+
* * `UnauthorizedCustodian` if the caller is not the custodian of the from portfolio
|
|
3940
|
+
* * `InsufficientPortfolioBalance` if the sender does not have enough free balance
|
|
3941
|
+
* * `NoDuplicateAssetsAllowed` the same ticker can't be repeated in the items vector.
|
|
3942
|
+
* * `InvalidTransferNFTNotOwned` if the caller is trying to move an NFT he doesn't own.
|
|
3943
|
+
* * `InvalidTransferNFTIsLocked` if the caller is trying to move a locked NFT.
|
|
3944
|
+
*
|
|
3945
|
+
* # Permissions
|
|
3946
|
+
* * Portfolio
|
|
3947
|
+
**/
|
|
3948
|
+
movePortfolioFundsV2: AugmentedSubmittable<(from: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
3949
|
+
did?: any;
|
|
3950
|
+
kind?: any;
|
|
3951
|
+
} | string | Uint8Array, to: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
3952
|
+
did?: any;
|
|
3953
|
+
kind?: any;
|
|
3954
|
+
} | string | Uint8Array, funds: Vec<PolymeshPrimitivesPortfolioFund> | (PolymeshPrimitivesPortfolioFund | {
|
|
3955
|
+
description?: any;
|
|
3956
|
+
memo?: any;
|
|
3957
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
3958
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3959
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3960
|
+
Vec<PolymeshPrimitivesPortfolioFund>
|
|
3961
|
+
]>;
|
|
3557
3962
|
/**
|
|
3558
3963
|
* When called by the custodian of `portfolio_id`,
|
|
3559
3964
|
* allows returning the custody of the portfolio to the portfolio owner unilaterally.
|
|
@@ -3605,6 +4010,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3605
4010
|
]>;
|
|
3606
4011
|
/**
|
|
3607
4012
|
* Clear an unrequested preimage from the runtime storage.
|
|
4013
|
+
*
|
|
4014
|
+
* If `len` is provided, then it will be a much cheaper operation.
|
|
4015
|
+
*
|
|
4016
|
+
* - `hash`: The hash of the preimage to be removed from the store.
|
|
4017
|
+
* - `len`: The length of the preimage of `hash`.
|
|
3608
4018
|
**/
|
|
3609
4019
|
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3610
4020
|
H256
|
|
@@ -3625,7 +4035,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3625
4035
|
* # Errors
|
|
3626
4036
|
* * `BadOrigin` - Only root allowed.
|
|
3627
4037
|
**/
|
|
3628
|
-
changeBaseFee: AugmentedSubmittable<(op: PolymeshCommonUtilitiesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | number | Uint8Array, baseFee: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4038
|
+
changeBaseFee: AugmentedSubmittable<(op: PolymeshCommonUtilitiesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | number | Uint8Array, baseFee: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3629
4039
|
PolymeshCommonUtilitiesProtocolFeeProtocolOp,
|
|
3630
4040
|
u128
|
|
3631
4041
|
]>;
|
|
@@ -3788,21 +4198,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3788
4198
|
/**
|
|
3789
4199
|
* Cancel a named scheduled task.
|
|
3790
4200
|
**/
|
|
3791
|
-
cancelNamed: AugmentedSubmittable<(id:
|
|
3792
|
-
|
|
4201
|
+
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4202
|
+
U8aFixed
|
|
3793
4203
|
]>;
|
|
3794
4204
|
/**
|
|
3795
4205
|
* Anonymously schedule a task.
|
|
3796
4206
|
**/
|
|
3797
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3798
|
-
Value: any;
|
|
3799
|
-
} | {
|
|
3800
|
-
Hash: any;
|
|
3801
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4207
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3802
4208
|
u32,
|
|
3803
4209
|
Option<ITuple<[u32, u32]>>,
|
|
3804
4210
|
u8,
|
|
3805
|
-
|
|
4211
|
+
Call
|
|
3806
4212
|
]>;
|
|
3807
4213
|
/**
|
|
3808
4214
|
* Anonymously schedule a task after a delay.
|
|
@@ -3811,29 +4217,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3811
4217
|
* Same as [`schedule`].
|
|
3812
4218
|
* # </weight>
|
|
3813
4219
|
**/
|
|
3814
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call:
|
|
3815
|
-
Value: any;
|
|
3816
|
-
} | {
|
|
3817
|
-
Hash: any;
|
|
3818
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4220
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3819
4221
|
u32,
|
|
3820
4222
|
Option<ITuple<[u32, u32]>>,
|
|
3821
4223
|
u8,
|
|
3822
|
-
|
|
4224
|
+
Call
|
|
3823
4225
|
]>;
|
|
3824
4226
|
/**
|
|
3825
4227
|
* Schedule a named task.
|
|
3826
4228
|
**/
|
|
3827
|
-
scheduleNamed: AugmentedSubmittable<(id:
|
|
3828
|
-
|
|
3829
|
-
} | {
|
|
3830
|
-
Hash: any;
|
|
3831
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3832
|
-
Bytes,
|
|
4229
|
+
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4230
|
+
U8aFixed,
|
|
3833
4231
|
u32,
|
|
3834
4232
|
Option<ITuple<[u32, u32]>>,
|
|
3835
4233
|
u8,
|
|
3836
|
-
|
|
4234
|
+
Call
|
|
3837
4235
|
]>;
|
|
3838
4236
|
/**
|
|
3839
4237
|
* Schedule a named task after a delay.
|
|
@@ -3842,16 +4240,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3842
4240
|
* Same as [`schedule_named`](Self::schedule_named).
|
|
3843
4241
|
* # </weight>
|
|
3844
4242
|
**/
|
|
3845
|
-
scheduleNamedAfter: AugmentedSubmittable<(id:
|
|
3846
|
-
|
|
3847
|
-
} | {
|
|
3848
|
-
Hash: any;
|
|
3849
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3850
|
-
Bytes,
|
|
4243
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4244
|
+
U8aFixed,
|
|
3851
4245
|
u32,
|
|
3852
4246
|
Option<ITuple<[u32, u32]>>,
|
|
3853
4247
|
u8,
|
|
3854
|
-
|
|
4248
|
+
Call
|
|
3855
4249
|
]>;
|
|
3856
4250
|
};
|
|
3857
4251
|
session: {
|
|
@@ -3902,6 +4296,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3902
4296
|
};
|
|
3903
4297
|
settlement: {
|
|
3904
4298
|
/**
|
|
4299
|
+
* Deprecated. Use `add_and_affirm_instruction_with_memo` instead.
|
|
3905
4300
|
* Adds and affirms a new instruction.
|
|
3906
4301
|
*
|
|
3907
4302
|
* # Arguments
|
|
@@ -3920,6 +4315,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3920
4315
|
SettleOnAffirmation: any;
|
|
3921
4316
|
} | {
|
|
3922
4317
|
SettleOnBlock: any;
|
|
4318
|
+
} | {
|
|
4319
|
+
SettleManual: any;
|
|
3923
4320
|
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
3924
4321
|
from?: any;
|
|
3925
4322
|
to?: any;
|
|
@@ -3937,6 +4334,84 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3937
4334
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>
|
|
3938
4335
|
]>;
|
|
3939
4336
|
/**
|
|
4337
|
+
* Adds and affirms a new instruction.
|
|
4338
|
+
*
|
|
4339
|
+
* # Arguments
|
|
4340
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4341
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4342
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4343
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4344
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4345
|
+
* * `legs` - Legs included in this instruction.
|
|
4346
|
+
* * `portfolios` - Portfolios that the sender controls and wants to use in this affirmations.
|
|
4347
|
+
* * `memo` - Memo field for this instruction.
|
|
4348
|
+
*
|
|
4349
|
+
* # Permissions
|
|
4350
|
+
* * Portfolio
|
|
4351
|
+
**/
|
|
4352
|
+
addAndAffirmInstructionWithMemo: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4353
|
+
SettleOnAffirmation: any;
|
|
4354
|
+
} | {
|
|
4355
|
+
SettleOnBlock: any;
|
|
4356
|
+
} | {
|
|
4357
|
+
SettleManual: any;
|
|
4358
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
4359
|
+
from?: any;
|
|
4360
|
+
to?: any;
|
|
4361
|
+
asset?: any;
|
|
4362
|
+
amount?: any;
|
|
4363
|
+
} | string | Uint8Array)[], portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4364
|
+
did?: any;
|
|
4365
|
+
kind?: any;
|
|
4366
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4367
|
+
u64,
|
|
4368
|
+
PalletSettlementSettlementType,
|
|
4369
|
+
Option<u64>,
|
|
4370
|
+
Option<u64>,
|
|
4371
|
+
Vec<PalletSettlementLeg>,
|
|
4372
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4373
|
+
Option<PalletSettlementInstructionMemo>
|
|
4374
|
+
]>;
|
|
4375
|
+
/**
|
|
4376
|
+
* Adds and affirms a new instruction.
|
|
4377
|
+
*
|
|
4378
|
+
* # Arguments
|
|
4379
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4380
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4381
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4382
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4383
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4384
|
+
* * `legs` - Legs included in this instruction.
|
|
4385
|
+
* * `portfolios` - Portfolios that the sender controls and wants to use in this affirmations.
|
|
4386
|
+
* * `memo` - Memo field for this instruction.
|
|
4387
|
+
*
|
|
4388
|
+
* # Permissions
|
|
4389
|
+
* * Portfolio
|
|
4390
|
+
**/
|
|
4391
|
+
addAndAffirmInstructionWithMemoV2: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4392
|
+
SettleOnAffirmation: any;
|
|
4393
|
+
} | {
|
|
4394
|
+
SettleOnBlock: any;
|
|
4395
|
+
} | {
|
|
4396
|
+
SettleManual: any;
|
|
4397
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLegV2> | (PalletSettlementLegV2 | {
|
|
4398
|
+
from?: any;
|
|
4399
|
+
to?: any;
|
|
4400
|
+
asset?: any;
|
|
4401
|
+
} | string | Uint8Array)[], portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4402
|
+
did?: any;
|
|
4403
|
+
kind?: any;
|
|
4404
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4405
|
+
u64,
|
|
4406
|
+
PalletSettlementSettlementType,
|
|
4407
|
+
Option<u64>,
|
|
4408
|
+
Option<u64>,
|
|
4409
|
+
Vec<PalletSettlementLegV2>,
|
|
4410
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4411
|
+
Option<PalletSettlementInstructionMemo>
|
|
4412
|
+
]>;
|
|
4413
|
+
/**
|
|
4414
|
+
* Deprecated. Use `add_instruction_with_memo` instead.
|
|
3940
4415
|
* Adds a new instruction.
|
|
3941
4416
|
*
|
|
3942
4417
|
* # Arguments
|
|
@@ -3954,6 +4429,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3954
4429
|
SettleOnAffirmation: any;
|
|
3955
4430
|
} | {
|
|
3956
4431
|
SettleOnBlock: any;
|
|
4432
|
+
} | {
|
|
4433
|
+
SettleManual: any;
|
|
3957
4434
|
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
3958
4435
|
from?: any;
|
|
3959
4436
|
to?: any;
|
|
@@ -3966,6 +4443,73 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3966
4443
|
Option<u64>,
|
|
3967
4444
|
Vec<PalletSettlementLeg>
|
|
3968
4445
|
]>;
|
|
4446
|
+
/**
|
|
4447
|
+
* Adds a new instruction with memo.
|
|
4448
|
+
*
|
|
4449
|
+
* # Arguments
|
|
4450
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4451
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4452
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4453
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4454
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4455
|
+
* * `legs` - Legs included in this instruction.
|
|
4456
|
+
* * `memo` - Memo field for this instruction.
|
|
4457
|
+
*
|
|
4458
|
+
* # Weight
|
|
4459
|
+
* `950_000_000 + 1_000_000 * legs.len()`
|
|
4460
|
+
**/
|
|
4461
|
+
addInstructionWithMemo: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4462
|
+
SettleOnAffirmation: any;
|
|
4463
|
+
} | {
|
|
4464
|
+
SettleOnBlock: any;
|
|
4465
|
+
} | {
|
|
4466
|
+
SettleManual: any;
|
|
4467
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
4468
|
+
from?: any;
|
|
4469
|
+
to?: any;
|
|
4470
|
+
asset?: any;
|
|
4471
|
+
amount?: any;
|
|
4472
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4473
|
+
u64,
|
|
4474
|
+
PalletSettlementSettlementType,
|
|
4475
|
+
Option<u64>,
|
|
4476
|
+
Option<u64>,
|
|
4477
|
+
Vec<PalletSettlementLeg>,
|
|
4478
|
+
Option<PalletSettlementInstructionMemo>
|
|
4479
|
+
]>;
|
|
4480
|
+
/**
|
|
4481
|
+
* Adds a new instruction with memo.
|
|
4482
|
+
*
|
|
4483
|
+
* # Arguments
|
|
4484
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4485
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4486
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4487
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4488
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4489
|
+
* * `legs` - Legs included in this instruction.
|
|
4490
|
+
* * `memo` - Memo field for this instruction.
|
|
4491
|
+
*
|
|
4492
|
+
* # Weight
|
|
4493
|
+
* `950_000_000 + 1_000_000 * legs.len()`
|
|
4494
|
+
**/
|
|
4495
|
+
addInstructionWithMemoV2: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4496
|
+
SettleOnAffirmation: any;
|
|
4497
|
+
} | {
|
|
4498
|
+
SettleOnBlock: any;
|
|
4499
|
+
} | {
|
|
4500
|
+
SettleManual: any;
|
|
4501
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLegV2> | (PalletSettlementLegV2 | {
|
|
4502
|
+
from?: any;
|
|
4503
|
+
to?: any;
|
|
4504
|
+
asset?: any;
|
|
4505
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4506
|
+
u64,
|
|
4507
|
+
PalletSettlementSettlementType,
|
|
4508
|
+
Option<u64>,
|
|
4509
|
+
Option<u64>,
|
|
4510
|
+
Vec<PalletSettlementLegV2>,
|
|
4511
|
+
Option<PalletSettlementInstructionMemo>
|
|
4512
|
+
]>;
|
|
3969
4513
|
/**
|
|
3970
4514
|
* Provide affirmation to an existing instruction.
|
|
3971
4515
|
*
|
|
@@ -3985,6 +4529,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3985
4529
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
3986
4530
|
u32
|
|
3987
4531
|
]>;
|
|
4532
|
+
/**
|
|
4533
|
+
* Provide affirmation to an existing instruction.
|
|
4534
|
+
*
|
|
4535
|
+
* # Arguments
|
|
4536
|
+
* * `id` - Instruction id to affirm.
|
|
4537
|
+
* * `portfolios` - Portfolios that the sender controls and wants to affirm this instruction.
|
|
4538
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4539
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4540
|
+
*
|
|
4541
|
+
* # Permissions
|
|
4542
|
+
* * Portfolio
|
|
4543
|
+
**/
|
|
4544
|
+
affirmInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4545
|
+
did?: any;
|
|
4546
|
+
kind?: any;
|
|
4547
|
+
} | string | Uint8Array)[], fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4548
|
+
u64,
|
|
4549
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4550
|
+
u32,
|
|
4551
|
+
u32
|
|
4552
|
+
]>;
|
|
3988
4553
|
/**
|
|
3989
4554
|
* Accepts an instruction and claims a signed receipt.
|
|
3990
4555
|
*
|
|
@@ -4038,29 +4603,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4038
4603
|
u64,
|
|
4039
4604
|
bool
|
|
4040
4605
|
]>;
|
|
4041
|
-
/**
|
|
4042
|
-
* Claims a signed receipt.
|
|
4043
|
-
*
|
|
4044
|
-
* # Arguments
|
|
4045
|
-
* * `id` - Target instruction id for the receipt.
|
|
4046
|
-
* * `leg_id` - Target leg id for the receipt
|
|
4047
|
-
* * `receipt_uid` - Receipt ID generated by the signer.
|
|
4048
|
-
* * `signer` - Signer of the receipt.
|
|
4049
|
-
* * `signed_data` - Signed receipt.
|
|
4050
|
-
*
|
|
4051
|
-
* # Permissions
|
|
4052
|
-
* * Portfolio
|
|
4053
|
-
**/
|
|
4054
|
-
claimReceipt: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, receiptDetails: PalletSettlementReceiptDetails | {
|
|
4055
|
-
receiptUid?: any;
|
|
4056
|
-
legId?: any;
|
|
4057
|
-
signer?: any;
|
|
4058
|
-
signature?: any;
|
|
4059
|
-
metadata?: any;
|
|
4060
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4061
|
-
u64,
|
|
4062
|
-
PalletSettlementReceiptDetails
|
|
4063
|
-
]>;
|
|
4064
4606
|
/**
|
|
4065
4607
|
* Registers a new venue.
|
|
4066
4608
|
*
|
|
@@ -4086,6 +4628,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4086
4628
|
PolymeshPrimitivesTicker,
|
|
4087
4629
|
Vec<u64>
|
|
4088
4630
|
]>;
|
|
4631
|
+
/**
|
|
4632
|
+
* Manually execute settlement
|
|
4633
|
+
*
|
|
4634
|
+
* # Arguments
|
|
4635
|
+
* * `id` - Target instruction id to reschedule.
|
|
4636
|
+
* * `_legs_count` - Legs included in this instruction.
|
|
4637
|
+
*
|
|
4638
|
+
* # Errors
|
|
4639
|
+
* * `InstructionNotFailed` - Instruction not in a failed state or does not exist.
|
|
4640
|
+
**/
|
|
4641
|
+
executeManualInstruction: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, legsCount: u32 | AnyNumber | Uint8Array, portfolio: Option<PolymeshPrimitivesIdentityIdPortfolioId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4642
|
+
u64,
|
|
4643
|
+
u32,
|
|
4644
|
+
Option<PolymeshPrimitivesIdentityIdPortfolioId>
|
|
4645
|
+
]>;
|
|
4089
4646
|
/**
|
|
4090
4647
|
* Root callable extrinsic, used as an internal call to execute a scheduled settlement instruction.
|
|
4091
4648
|
**/
|
|
@@ -4093,6 +4650,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4093
4650
|
u64,
|
|
4094
4651
|
u32
|
|
4095
4652
|
]>;
|
|
4653
|
+
/**
|
|
4654
|
+
* Root callable extrinsic, used as an internal call to execute a scheduled settlement instruction.
|
|
4655
|
+
**/
|
|
4656
|
+
executeScheduledInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4657
|
+
u64,
|
|
4658
|
+
u32,
|
|
4659
|
+
u32
|
|
4660
|
+
]>;
|
|
4661
|
+
/**
|
|
4662
|
+
* Placeholder for removed `claim_receipt`
|
|
4663
|
+
**/
|
|
4664
|
+
placeholderClaimReceipt: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4665
|
+
/**
|
|
4666
|
+
* Placeholder for removed `unclaim_receipt`
|
|
4667
|
+
**/
|
|
4668
|
+
placeholderUnclaimReceipt: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4096
4669
|
/**
|
|
4097
4670
|
* Rejects an existing instruction.
|
|
4098
4671
|
*
|
|
@@ -4112,6 +4685,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4112
4685
|
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
4113
4686
|
u32
|
|
4114
4687
|
]>;
|
|
4688
|
+
/**
|
|
4689
|
+
* Rejects an existing instruction.
|
|
4690
|
+
*
|
|
4691
|
+
* # Arguments
|
|
4692
|
+
* * `id` - Instruction id to reject.
|
|
4693
|
+
* * `portfolio` - Portfolio to reject the instruction.
|
|
4694
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4695
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4696
|
+
*
|
|
4697
|
+
* # Permissions
|
|
4698
|
+
* * Portfolio
|
|
4699
|
+
**/
|
|
4700
|
+
rejectInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4701
|
+
did?: any;
|
|
4702
|
+
kind?: any;
|
|
4703
|
+
} | string | Uint8Array, fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4704
|
+
u64,
|
|
4705
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
4706
|
+
u32,
|
|
4707
|
+
u32
|
|
4708
|
+
]>;
|
|
4115
4709
|
/**
|
|
4116
4710
|
* Reschedules a failed instruction.
|
|
4117
4711
|
*
|
|
@@ -4141,20 +4735,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4141
4735
|
PolymeshPrimitivesTicker,
|
|
4142
4736
|
bool
|
|
4143
4737
|
]>;
|
|
4144
|
-
/**
|
|
4145
|
-
* Unclaims a previously claimed receipt.
|
|
4146
|
-
*
|
|
4147
|
-
* # Arguments
|
|
4148
|
-
* * `instruction_id` - Target instruction id for the receipt.
|
|
4149
|
-
* * `leg_id` - Target leg id for the receipt
|
|
4150
|
-
*
|
|
4151
|
-
* # Permissions
|
|
4152
|
-
* * Portfolio
|
|
4153
|
-
**/
|
|
4154
|
-
unclaimReceipt: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array, legId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4155
|
-
u64,
|
|
4156
|
-
u64
|
|
4157
|
-
]>;
|
|
4158
4738
|
/**
|
|
4159
4739
|
* Edit a venue's details.
|
|
4160
4740
|
*
|
|
@@ -4165,6 +4745,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4165
4745
|
u64,
|
|
4166
4746
|
Bytes
|
|
4167
4747
|
]>;
|
|
4748
|
+
/**
|
|
4749
|
+
* Edit a venue's signers.
|
|
4750
|
+
* * `id` specifies the ID of the venue to edit.
|
|
4751
|
+
* * `signers` specifies the signers to add/remove.
|
|
4752
|
+
* * `add_signers` specifies the update type add/remove of venue where add is true and remove is false.
|
|
4753
|
+
**/
|
|
4754
|
+
updateVenueSigners: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, signers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], addSigners: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4755
|
+
u64,
|
|
4756
|
+
Vec<AccountId32>,
|
|
4757
|
+
bool
|
|
4758
|
+
]>;
|
|
4168
4759
|
/**
|
|
4169
4760
|
* Edit a venue's type.
|
|
4170
4761
|
*
|
|
@@ -4194,6 +4785,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4194
4785
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4195
4786
|
u32
|
|
4196
4787
|
]>;
|
|
4788
|
+
/**
|
|
4789
|
+
* Withdraw an affirmation for a given instruction.
|
|
4790
|
+
*
|
|
4791
|
+
* # Arguments
|
|
4792
|
+
* * `id` - Instruction id for that affirmation get withdrawn.
|
|
4793
|
+
* * `portfolios` - Portfolios that the sender controls and wants to withdraw affirmation.
|
|
4794
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4795
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4796
|
+
*
|
|
4797
|
+
* # Permissions
|
|
4798
|
+
* * Portfolio
|
|
4799
|
+
**/
|
|
4800
|
+
withdrawAffirmationV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4801
|
+
did?: any;
|
|
4802
|
+
kind?: any;
|
|
4803
|
+
} | string | Uint8Array)[], fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4804
|
+
u64,
|
|
4805
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4806
|
+
u32,
|
|
4807
|
+
u32
|
|
4808
|
+
]>;
|
|
4197
4809
|
};
|
|
4198
4810
|
staking: {
|
|
4199
4811
|
/**
|
|
@@ -4332,6 +4944,26 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4332
4944
|
* # </weight>
|
|
4333
4945
|
**/
|
|
4334
4946
|
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4947
|
+
/**
|
|
4948
|
+
* GC forcefully chills a validator.
|
|
4949
|
+
* Effects will be felt at the beginning of the next era.
|
|
4950
|
+
* And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
|
4951
|
+
*
|
|
4952
|
+
* # Arguments
|
|
4953
|
+
* * origin which must be a GC.
|
|
4954
|
+
* * identity must be permissioned to run operator/validator nodes.
|
|
4955
|
+
* * stash_keys contains the secondary keys of the permissioned identity
|
|
4956
|
+
*
|
|
4957
|
+
* # Errors
|
|
4958
|
+
* * `BadOrigin` The origin was not a GC member.
|
|
4959
|
+
* * `CallNotAllowed` The call is not allowed at the given time due to restrictions of election period.
|
|
4960
|
+
* * `NotExists` Permissioned validator doesn't exist.
|
|
4961
|
+
* * `NotStash` Not a stash account for the permissioned identity.
|
|
4962
|
+
**/
|
|
4963
|
+
chillFromGovernance: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, stashKeys: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
4964
|
+
PolymeshPrimitivesIdentityId,
|
|
4965
|
+
Vec<AccountId32>
|
|
4966
|
+
]>;
|
|
4335
4967
|
/**
|
|
4336
4968
|
* Force there to be a new era at the end of the next session. After this, it will be
|
|
4337
4969
|
* reset to normal (non-forced) behaviour.
|
|
@@ -5220,18 +5852,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5220
5852
|
* - The weight of this call is defined by the caller.
|
|
5221
5853
|
* # </weight>
|
|
5222
5854
|
**/
|
|
5223
|
-
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight:
|
|
5855
|
+
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
|
|
5856
|
+
refTime?: any;
|
|
5857
|
+
proofSize?: any;
|
|
5858
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5224
5859
|
Call,
|
|
5225
|
-
|
|
5860
|
+
SpWeightsWeightV2Weight
|
|
5226
5861
|
]>;
|
|
5227
5862
|
};
|
|
5228
5863
|
system: {
|
|
5229
|
-
/**
|
|
5230
|
-
* A dispatch that will fill the block weight up to the given ratio.
|
|
5231
|
-
**/
|
|
5232
|
-
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5233
|
-
Perbill
|
|
5234
|
-
]>;
|
|
5235
5864
|
/**
|
|
5236
5865
|
* Kill all storage items with a key that starts with the given prefix.
|
|
5237
5866
|
*
|
|
@@ -5248,6 +5877,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5248
5877
|
killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
5249
5878
|
Vec<Bytes>
|
|
5250
5879
|
]>;
|
|
5880
|
+
/**
|
|
5881
|
+
* Placeholder for removed `fill_block`.
|
|
5882
|
+
**/
|
|
5883
|
+
placeholderFillBlock: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5251
5884
|
/**
|
|
5252
5885
|
* Make some on-chain remark.
|
|
5253
5886
|
*
|