@polymeshassociation/polymesh-sdk 19.1.1-alpha.1 → 19.2.0-alpha.1
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 +4 -4
- package/generated/types.d.ts +22 -5
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +19 -1
- package/generated/types.js.map +1 -1
- package/middleware/enumsV2.d.ts +1 -1
- package/middleware/enumsV2.d.ts.map +1 -1
- package/middleware/enumsV2.js +3 -1
- package/middleware/enumsV2.js.map +1 -1
- package/middleware/typesV2.d.ts +2161 -31800
- package/middleware/typesV2.d.ts.map +1 -1
- package/middleware/typesV2.js +70 -24969
- package/middleware/typesV2.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-19.2.0-alpha.1.tgz +0 -0
- package/package.json +1 -1
- package/polkadot/augment-api-consts.d.ts +4 -1
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +135 -1
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +89 -1
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +77 -2
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +313 -39
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +9 -1
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +474 -309
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +510 -309
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +40 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +40 -0
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +55 -2
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +14 -1
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +40 -0
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +40 -0
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +551 -323
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-19.1.1-alpha.1.tgz +0 -0
|
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
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 { ConfidentialIdentityV2ClaimProofsScopeClaimProof, FrameSupportScheduleMaybeHashed, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletPortfolioMovePortfolioItem, PalletRewardsItnRewardStatus, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementReceiptDetails, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuthV1, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsChainExtensionExtrinsicId, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEcdsaSignature, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpRuntimeHeader, SpRuntimeMultiSignature, SpSessionMembershipProof } from "./types-lookup.ts";
|
|
5
|
+
import type { ConfidentialIdentityV2ClaimProofsScopeClaimProof, FrameSupportScheduleMaybeHashed, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, 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 } from "./types-lookup.ts";
|
|
6
6
|
declare module '@polkadot/api-base/types/submittable' {
|
|
7
7
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
8
8
|
asset: {
|
|
@@ -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
|
} | {
|
|
@@ -404,6 +406,53 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
404
406
|
Vec<u32>,
|
|
405
407
|
PolymeshPrimitivesTicker
|
|
406
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
|
+
]>;
|
|
407
456
|
/**
|
|
408
457
|
* Renames a given token.
|
|
409
458
|
*
|
|
@@ -580,6 +629,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
580
629
|
Custom: any;
|
|
581
630
|
} | {
|
|
582
631
|
StableCoin: any;
|
|
632
|
+
} | {
|
|
633
|
+
NonFungible: any;
|
|
583
634
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
584
635
|
PolymeshPrimitivesTicker,
|
|
585
636
|
PolymeshPrimitivesAssetAssetType
|
|
@@ -3231,6 +3282,89 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3231
3282
|
Vec<PolymeshPrimitivesSecondaryKeySignatory>
|
|
3232
3283
|
]>;
|
|
3233
3284
|
};
|
|
3285
|
+
nft: {
|
|
3286
|
+
/**
|
|
3287
|
+
* Cretes a new `NFTCollection`.
|
|
3288
|
+
*
|
|
3289
|
+
* # Arguments
|
|
3290
|
+
* * `origin` - contains the secondary key of the caller (i.e. who signed the transaction to execute this function).
|
|
3291
|
+
* * `ticker` - the ticker associated to the new collection.
|
|
3292
|
+
* * `nft_type` - in case the asset hasn't been created yet, one will be created with the given type.
|
|
3293
|
+
* * `collection_keys` - all mandatory metadata keys that the tokens in the collection must have.
|
|
3294
|
+
*
|
|
3295
|
+
* ## Errors
|
|
3296
|
+
* - `CollectionAlredyRegistered` - if the ticker is already associated to an NFT collection.
|
|
3297
|
+
* - `InvalidAssetType` - if the associated asset is not of type NFT.
|
|
3298
|
+
* - `MaxNumberOfKeysExceeded` - if the number of metadata keys for the collection is greater than the maximum allowed.
|
|
3299
|
+
* - `UnregisteredMetadataKey` - if any of the metadata keys needed for the collection has not been registered.
|
|
3300
|
+
* - `DuplicateMetadataKey` - if a duplicate metadata keys has been passed as input.
|
|
3301
|
+
*
|
|
3302
|
+
* # Permissions
|
|
3303
|
+
* * Asset
|
|
3304
|
+
**/
|
|
3305
|
+
createNftCollection: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftType: Option<PolymeshPrimitivesAssetNonFungibleType> | null | object | string | Uint8Array, collectionKeys: PolymeshPrimitivesNftNftCollectionKeys) => SubmittableExtrinsic<ApiType>, [
|
|
3306
|
+
PolymeshPrimitivesTicker,
|
|
3307
|
+
Option<PolymeshPrimitivesAssetNonFungibleType>,
|
|
3308
|
+
PolymeshPrimitivesNftNftCollectionKeys
|
|
3309
|
+
]>;
|
|
3310
|
+
/**
|
|
3311
|
+
* Issues an NFT to the caller.
|
|
3312
|
+
*
|
|
3313
|
+
* # Arguments
|
|
3314
|
+
* * `origin` - is a signer that has permissions to act as an agent of `ticker`.
|
|
3315
|
+
* * `ticker` - the ticker of the NFT collection.
|
|
3316
|
+
* * `nft_metadata_attributes` - all mandatory metadata keys and values for the NFT.
|
|
3317
|
+
* - `portfolio_kind` - the portfolio that will receive the minted nft.
|
|
3318
|
+
*
|
|
3319
|
+
* ## Errors
|
|
3320
|
+
* - `CollectionNotFound` - if the collection associated to the given ticker has not been created.
|
|
3321
|
+
* - `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.
|
|
3322
|
+
* - `DuplicateMetadataKey` - if a duplicate metadata keys has been passed as input.
|
|
3323
|
+
*
|
|
3324
|
+
*
|
|
3325
|
+
* # Permissions
|
|
3326
|
+
* * Asset
|
|
3327
|
+
* * Portfolio
|
|
3328
|
+
**/
|
|
3329
|
+
issueNft: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftMetadataAttributes: Vec<PolymeshPrimitivesNftNftMetadataAttribute> | (PolymeshPrimitivesNftNftMetadataAttribute | {
|
|
3330
|
+
key?: any;
|
|
3331
|
+
value?: any;
|
|
3332
|
+
} | string | Uint8Array)[], portfolioKind: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
3333
|
+
Default: any;
|
|
3334
|
+
} | {
|
|
3335
|
+
User: any;
|
|
3336
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3337
|
+
PolymeshPrimitivesTicker,
|
|
3338
|
+
Vec<PolymeshPrimitivesNftNftMetadataAttribute>,
|
|
3339
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
3340
|
+
]>;
|
|
3341
|
+
/**
|
|
3342
|
+
* Redeems the given NFT from the caller's portfolio.
|
|
3343
|
+
*
|
|
3344
|
+
* # Arguments
|
|
3345
|
+
* * `origin` - is a signer that has permissions to act as an agent of `ticker`.
|
|
3346
|
+
* * `ticker` - the ticker of the NFT collection.
|
|
3347
|
+
* * `nft_id` - the id of the NFT to be burned.
|
|
3348
|
+
* * `portfolio_kind` - the portfolio that contains the nft.
|
|
3349
|
+
*
|
|
3350
|
+
* ## Errors
|
|
3351
|
+
* - `CollectionNotFound` - if the collection associated to the given ticker has not been created.
|
|
3352
|
+
* - `NFTNotFound` - if the given NFT does not exist in the portfolio.
|
|
3353
|
+
*
|
|
3354
|
+
* # Permissions
|
|
3355
|
+
* * Asset
|
|
3356
|
+
* * Portfolio
|
|
3357
|
+
**/
|
|
3358
|
+
redeemNft: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, nftId: u64 | AnyNumber | Uint8Array, portfolioKind: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
3359
|
+
Default: any;
|
|
3360
|
+
} | {
|
|
3361
|
+
User: any;
|
|
3362
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3363
|
+
PolymeshPrimitivesTicker,
|
|
3364
|
+
u64,
|
|
3365
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
3366
|
+
]>;
|
|
3367
|
+
};
|
|
3234
3368
|
pips: {
|
|
3235
3369
|
/**
|
|
3236
3370
|
* Approves the pending committee PIP given by the `id`.
|
|
@@ -3655,6 +3789,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3655
3789
|
* * `DifferentIdentityPortfolios` if the sender and receiver portfolios belong to different identities
|
|
3656
3790
|
* * `UnauthorizedCustodian` if the caller is not the custodian of the from portfolio
|
|
3657
3791
|
* * `InsufficientPortfolioBalance` if the sender does not have enough free balance
|
|
3792
|
+
* * `NoDuplicateAssetsAllowed` the same ticker can't be repeated in the items vector.
|
|
3658
3793
|
*
|
|
3659
3794
|
* # Permissions
|
|
3660
3795
|
* * Portfolio
|
|
@@ -3674,6 +3809,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3674
3809
|
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3675
3810
|
Vec<PalletPortfolioMovePortfolioItem>
|
|
3676
3811
|
]>;
|
|
3812
|
+
/**
|
|
3813
|
+
* Moves fungigle an non-fungible tokens from one portfolio of an identity to another portfolio of the same
|
|
3814
|
+
* identity. Must be called by the custodian of the sender.
|
|
3815
|
+
* Funds from deleted portfolios can also be recovered via this method.
|
|
3816
|
+
*
|
|
3817
|
+
* A short memo can be added to to each token amount moved.
|
|
3818
|
+
*
|
|
3819
|
+
* # Errors
|
|
3820
|
+
* * `PortfolioDoesNotExist` if one or both of the portfolios reference an invalid portfolio.
|
|
3821
|
+
* * `destination_is_same_portfolio` if both sender and receiver portfolio are the same
|
|
3822
|
+
* * `DifferentIdentityPortfolios` if the sender and receiver portfolios belong to different identities
|
|
3823
|
+
* * `UnauthorizedCustodian` if the caller is not the custodian of the from portfolio
|
|
3824
|
+
* * `InsufficientPortfolioBalance` if the sender does not have enough free balance
|
|
3825
|
+
* * `NoDuplicateAssetsAllowed` the same ticker can't be repeated in the items vector.
|
|
3826
|
+
* * `InvalidTransferNFTNotOwned` if the caller is trying to move an NFT he doesn't own.
|
|
3827
|
+
* * `InvalidTransferNFTIsLocked` if the caller is trying to move a locked NFT.
|
|
3828
|
+
*
|
|
3829
|
+
* # Permissions
|
|
3830
|
+
* * Portfolio
|
|
3831
|
+
**/
|
|
3832
|
+
movePortfolioFundsV2: AugmentedSubmittable<(from: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
3833
|
+
did?: any;
|
|
3834
|
+
kind?: any;
|
|
3835
|
+
} | string | Uint8Array, to: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
3836
|
+
did?: any;
|
|
3837
|
+
kind?: any;
|
|
3838
|
+
} | string | Uint8Array, funds: Vec<PolymeshPrimitivesPortfolioFund> | (PolymeshPrimitivesPortfolioFund | {
|
|
3839
|
+
description?: any;
|
|
3840
|
+
memo?: any;
|
|
3841
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
3842
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3843
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
3844
|
+
Vec<PolymeshPrimitivesPortfolioFund>
|
|
3845
|
+
]>;
|
|
3677
3846
|
/**
|
|
3678
3847
|
* When called by the custodian of `portfolio_id`,
|
|
3679
3848
|
* allows returning the custody of the portfolio to the portfolio owner unilaterally.
|
|
@@ -3745,7 +3914,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3745
3914
|
* # Errors
|
|
3746
3915
|
* * `BadOrigin` - Only root allowed.
|
|
3747
3916
|
**/
|
|
3748
|
-
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>, [
|
|
3917
|
+
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>, [
|
|
3749
3918
|
PolymeshCommonUtilitiesProtocolFeeProtocolOp,
|
|
3750
3919
|
u128
|
|
3751
3920
|
]>;
|
|
@@ -4098,6 +4267,44 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4098
4267
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4099
4268
|
Option<PalletSettlementInstructionMemo>
|
|
4100
4269
|
]>;
|
|
4270
|
+
/**
|
|
4271
|
+
* Adds and affirms a new instruction.
|
|
4272
|
+
*
|
|
4273
|
+
* # Arguments
|
|
4274
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4275
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4276
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4277
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4278
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4279
|
+
* * `legs` - Legs included in this instruction.
|
|
4280
|
+
* * `portfolios` - Portfolios that the sender controls and wants to use in this affirmations.
|
|
4281
|
+
* * `memo` - Memo field for this instruction.
|
|
4282
|
+
*
|
|
4283
|
+
* # Permissions
|
|
4284
|
+
* * Portfolio
|
|
4285
|
+
**/
|
|
4286
|
+
addAndAffirmInstructionWithMemoV2: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4287
|
+
SettleOnAffirmation: any;
|
|
4288
|
+
} | {
|
|
4289
|
+
SettleOnBlock: any;
|
|
4290
|
+
} | {
|
|
4291
|
+
SettleManual: any;
|
|
4292
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLegV2> | (PalletSettlementLegV2 | {
|
|
4293
|
+
from?: any;
|
|
4294
|
+
to?: any;
|
|
4295
|
+
asset?: any;
|
|
4296
|
+
} | string | Uint8Array)[], portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4297
|
+
did?: any;
|
|
4298
|
+
kind?: any;
|
|
4299
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4300
|
+
u64,
|
|
4301
|
+
PalletSettlementSettlementType,
|
|
4302
|
+
Option<u64>,
|
|
4303
|
+
Option<u64>,
|
|
4304
|
+
Vec<PalletSettlementLegV2>,
|
|
4305
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4306
|
+
Option<PalletSettlementInstructionMemo>
|
|
4307
|
+
]>;
|
|
4101
4308
|
/**
|
|
4102
4309
|
* Deprecated. Use `add_instruction_with_memo` instead.
|
|
4103
4310
|
* Adds a new instruction.
|
|
@@ -4165,6 +4372,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4165
4372
|
Vec<PalletSettlementLeg>,
|
|
4166
4373
|
Option<PalletSettlementInstructionMemo>
|
|
4167
4374
|
]>;
|
|
4375
|
+
/**
|
|
4376
|
+
* Adds a new instruction with memo.
|
|
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
|
+
* * `memo` - Memo field for this instruction.
|
|
4386
|
+
*
|
|
4387
|
+
* # Weight
|
|
4388
|
+
* `950_000_000 + 1_000_000 * legs.len()`
|
|
4389
|
+
**/
|
|
4390
|
+
addInstructionWithMemoV2: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4391
|
+
SettleOnAffirmation: any;
|
|
4392
|
+
} | {
|
|
4393
|
+
SettleOnBlock: any;
|
|
4394
|
+
} | {
|
|
4395
|
+
SettleManual: any;
|
|
4396
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLegV2> | (PalletSettlementLegV2 | {
|
|
4397
|
+
from?: any;
|
|
4398
|
+
to?: any;
|
|
4399
|
+
asset?: any;
|
|
4400
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4401
|
+
u64,
|
|
4402
|
+
PalletSettlementSettlementType,
|
|
4403
|
+
Option<u64>,
|
|
4404
|
+
Option<u64>,
|
|
4405
|
+
Vec<PalletSettlementLegV2>,
|
|
4406
|
+
Option<PalletSettlementInstructionMemo>
|
|
4407
|
+
]>;
|
|
4168
4408
|
/**
|
|
4169
4409
|
* Provide affirmation to an existing instruction.
|
|
4170
4410
|
*
|
|
@@ -4184,6 +4424,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4184
4424
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4185
4425
|
u32
|
|
4186
4426
|
]>;
|
|
4427
|
+
/**
|
|
4428
|
+
* Provide affirmation to an existing instruction.
|
|
4429
|
+
*
|
|
4430
|
+
* # Arguments
|
|
4431
|
+
* * `id` - Instruction id to affirm.
|
|
4432
|
+
* * `portfolios` - Portfolios that the sender controls and wants to affirm this instruction.
|
|
4433
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4434
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4435
|
+
*
|
|
4436
|
+
* # Permissions
|
|
4437
|
+
* * Portfolio
|
|
4438
|
+
**/
|
|
4439
|
+
affirmInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4440
|
+
did?: any;
|
|
4441
|
+
kind?: any;
|
|
4442
|
+
} | string | Uint8Array)[], fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4443
|
+
u64,
|
|
4444
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4445
|
+
u32,
|
|
4446
|
+
u32
|
|
4447
|
+
]>;
|
|
4187
4448
|
/**
|
|
4188
4449
|
* Accepts an instruction and claims a signed receipt.
|
|
4189
4450
|
*
|
|
@@ -4237,29 +4498,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4237
4498
|
u64,
|
|
4238
4499
|
bool
|
|
4239
4500
|
]>;
|
|
4240
|
-
/**
|
|
4241
|
-
* Claims a signed receipt.
|
|
4242
|
-
*
|
|
4243
|
-
* # Arguments
|
|
4244
|
-
* * `id` - Target instruction id for the receipt.
|
|
4245
|
-
* * `leg_id` - Target leg id for the receipt
|
|
4246
|
-
* * `receipt_uid` - Receipt ID generated by the signer.
|
|
4247
|
-
* * `signer` - Signer of the receipt.
|
|
4248
|
-
* * `signed_data` - Signed receipt.
|
|
4249
|
-
*
|
|
4250
|
-
* # Permissions
|
|
4251
|
-
* * Portfolio
|
|
4252
|
-
**/
|
|
4253
|
-
claimReceipt: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, receiptDetails: PalletSettlementReceiptDetails | {
|
|
4254
|
-
receiptUid?: any;
|
|
4255
|
-
legId?: any;
|
|
4256
|
-
signer?: any;
|
|
4257
|
-
signature?: any;
|
|
4258
|
-
metadata?: any;
|
|
4259
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4260
|
-
u64,
|
|
4261
|
-
PalletSettlementReceiptDetails
|
|
4262
|
-
]>;
|
|
4263
4501
|
/**
|
|
4264
4502
|
* Registers a new venue.
|
|
4265
4503
|
*
|
|
@@ -4307,6 +4545,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4307
4545
|
u64,
|
|
4308
4546
|
u32
|
|
4309
4547
|
]>;
|
|
4548
|
+
/**
|
|
4549
|
+
* Placeholder for removed `claim_receipt`
|
|
4550
|
+
**/
|
|
4551
|
+
placeholderClaimReceipt: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4552
|
+
/**
|
|
4553
|
+
* Placeholder for removed `unclaim_receipt`
|
|
4554
|
+
**/
|
|
4555
|
+
placeholderUnclaimReceipt: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4310
4556
|
/**
|
|
4311
4557
|
* Rejects an existing instruction.
|
|
4312
4558
|
*
|
|
@@ -4326,6 +4572,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4326
4572
|
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
4327
4573
|
u32
|
|
4328
4574
|
]>;
|
|
4575
|
+
/**
|
|
4576
|
+
* Rejects an existing instruction.
|
|
4577
|
+
*
|
|
4578
|
+
* # Arguments
|
|
4579
|
+
* * `id` - Instruction id to reject.
|
|
4580
|
+
* * `portfolio` - Portfolio to reject the instruction.
|
|
4581
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4582
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4583
|
+
*
|
|
4584
|
+
* # Permissions
|
|
4585
|
+
* * Portfolio
|
|
4586
|
+
**/
|
|
4587
|
+
rejectInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4588
|
+
did?: any;
|
|
4589
|
+
kind?: any;
|
|
4590
|
+
} | string | Uint8Array, fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4591
|
+
u64,
|
|
4592
|
+
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
4593
|
+
u32,
|
|
4594
|
+
u32
|
|
4595
|
+
]>;
|
|
4329
4596
|
/**
|
|
4330
4597
|
* Reschedules a failed instruction.
|
|
4331
4598
|
*
|
|
@@ -4355,20 +4622,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4355
4622
|
PolymeshPrimitivesTicker,
|
|
4356
4623
|
bool
|
|
4357
4624
|
]>;
|
|
4358
|
-
/**
|
|
4359
|
-
* Unclaims a previously claimed receipt.
|
|
4360
|
-
*
|
|
4361
|
-
* # Arguments
|
|
4362
|
-
* * `instruction_id` - Target instruction id for the receipt.
|
|
4363
|
-
* * `leg_id` - Target leg id for the receipt
|
|
4364
|
-
*
|
|
4365
|
-
* # Permissions
|
|
4366
|
-
* * Portfolio
|
|
4367
|
-
**/
|
|
4368
|
-
unclaimReceipt: AugmentedSubmittable<(instructionId: u64 | AnyNumber | Uint8Array, legId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4369
|
-
u64,
|
|
4370
|
-
u64
|
|
4371
|
-
]>;
|
|
4372
4625
|
/**
|
|
4373
4626
|
* Edit a venue's details.
|
|
4374
4627
|
*
|
|
@@ -4419,6 +4672,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4419
4672
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4420
4673
|
u32
|
|
4421
4674
|
]>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Withdraw an affirmation for a given instruction.
|
|
4677
|
+
*
|
|
4678
|
+
* # Arguments
|
|
4679
|
+
* * `id` - Instruction id for that affirmation get withdrawn.
|
|
4680
|
+
* * `portfolios` - Portfolios that the sender controls and wants to withdraw affirmation.
|
|
4681
|
+
* * `fungible_transfers` - number of fungible transfers in the instruction.
|
|
4682
|
+
* * `nfts_transfers` - total number of NFTs being transferred in the instruction.
|
|
4683
|
+
*
|
|
4684
|
+
* # Permissions
|
|
4685
|
+
* * Portfolio
|
|
4686
|
+
**/
|
|
4687
|
+
withdrawAffirmationV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4688
|
+
did?: any;
|
|
4689
|
+
kind?: any;
|
|
4690
|
+
} | string | Uint8Array)[], fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4691
|
+
u64,
|
|
4692
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4693
|
+
u32,
|
|
4694
|
+
u32
|
|
4695
|
+
]>;
|
|
4422
4696
|
};
|
|
4423
4697
|
staking: {
|
|
4424
4698
|
/**
|