@polkadot/api-augment 9.10.4 → 9.11.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/base.js +1 -1
- package/bundle.js +1 -1
- package/cjs/detectOther.js +1 -1
- package/cjs/detectPackage.js +1 -1
- package/cjs/packageInfo.js +2 -2
- package/detectOther.js +1 -1
- package/detectPackage.js +1 -1
- package/index.js +1 -1
- package/kusama/events.d.ts +7 -0
- package/kusama/index.js +1 -1
- package/kusama/query.d.ts +2 -9
- package/kusama/registry.js +1 -1
- package/kusama/tx.d.ts +17 -7
- package/package.json +8 -8
- package/packageInfo.js +2 -2
- package/polkadot/events.d.ts +7 -0
- package/polkadot/index.js +1 -1
- package/polkadot/query.d.ts +2 -9
- package/polkadot/registry.js +1 -1
- package/polkadot/tx.d.ts +17 -7
- package/substrate/consts.d.ts +73 -0
- package/substrate/errors.d.ts +150 -5
- package/substrate/events.d.ts +307 -1
- package/substrate/index.js +1 -1
- package/substrate/query.d.ts +81 -10
- package/substrate/registry.js +1 -1
- package/substrate/tx.d.ts +828 -3
package/substrate/tx.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -3559,6 +3559,822 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3559
3559
|
**/
|
|
3560
3560
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3561
3561
|
};
|
|
3562
|
+
nfts: {
|
|
3563
|
+
/**
|
|
3564
|
+
* Approve item's attributes to be changed by a delegated third-party account.
|
|
3565
|
+
*
|
|
3566
|
+
* Origin must be Signed and must be an owner of the `item`.
|
|
3567
|
+
*
|
|
3568
|
+
* - `collection`: A collection of the item.
|
|
3569
|
+
* - `item`: The item that holds attributes.
|
|
3570
|
+
* - `delegate`: The account to delegate permission to change attributes of the item.
|
|
3571
|
+
*
|
|
3572
|
+
* Emits `ItemAttributesApprovalAdded` on success.
|
|
3573
|
+
**/
|
|
3574
|
+
approveItemAttributes: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
|
|
3575
|
+
Id: any;
|
|
3576
|
+
} | {
|
|
3577
|
+
Index: any;
|
|
3578
|
+
} | {
|
|
3579
|
+
Raw: any;
|
|
3580
|
+
} | {
|
|
3581
|
+
Address32: any;
|
|
3582
|
+
} | {
|
|
3583
|
+
Address20: any;
|
|
3584
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
|
|
3585
|
+
/**
|
|
3586
|
+
* Approve an item to be transferred by a delegated third-party account.
|
|
3587
|
+
*
|
|
3588
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
3589
|
+
* `item`.
|
|
3590
|
+
*
|
|
3591
|
+
* - `collection`: The collection of the item to be approved for delegated transfer.
|
|
3592
|
+
* - `item`: The item to be approved for delegated transfer.
|
|
3593
|
+
* - `delegate`: The account to delegate permission to transfer the item.
|
|
3594
|
+
* - `maybe_deadline`: Optional deadline for the approval. Specified by providing the
|
|
3595
|
+
* number of blocks after which the approval will expire
|
|
3596
|
+
*
|
|
3597
|
+
* Emits `TransferApproved` on success.
|
|
3598
|
+
*
|
|
3599
|
+
* Weight: `O(1)`
|
|
3600
|
+
**/
|
|
3601
|
+
approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
|
|
3602
|
+
Id: any;
|
|
3603
|
+
} | {
|
|
3604
|
+
Index: any;
|
|
3605
|
+
} | {
|
|
3606
|
+
Raw: any;
|
|
3607
|
+
} | {
|
|
3608
|
+
Address32: any;
|
|
3609
|
+
} | {
|
|
3610
|
+
Address20: any;
|
|
3611
|
+
} | string | Uint8Array, maybeDeadline: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<u32>]>;
|
|
3612
|
+
/**
|
|
3613
|
+
* Destroy a single item.
|
|
3614
|
+
*
|
|
3615
|
+
* Origin must be Signed and the signing account must be either:
|
|
3616
|
+
* - the Admin of the `collection`;
|
|
3617
|
+
* - the Owner of the `item`;
|
|
3618
|
+
*
|
|
3619
|
+
* - `collection`: The collection of the item to be burned.
|
|
3620
|
+
* - `item`: The item to be burned.
|
|
3621
|
+
* - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the
|
|
3622
|
+
* item is owned by this value.
|
|
3623
|
+
*
|
|
3624
|
+
* Emits `Burned` with the actual amount burned.
|
|
3625
|
+
*
|
|
3626
|
+
* Weight: `O(1)`
|
|
3627
|
+
* Modes: `check_owner.is_some()`.
|
|
3628
|
+
**/
|
|
3629
|
+
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
|
|
3630
|
+
Id: any;
|
|
3631
|
+
} | {
|
|
3632
|
+
Index: any;
|
|
3633
|
+
} | {
|
|
3634
|
+
Raw: any;
|
|
3635
|
+
} | {
|
|
3636
|
+
Address32: any;
|
|
3637
|
+
} | {
|
|
3638
|
+
Address20: any;
|
|
3639
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Allows to buy an item if it's up for sale.
|
|
3642
|
+
*
|
|
3643
|
+
* Origin must be Signed and must not be the owner of the `item`.
|
|
3644
|
+
*
|
|
3645
|
+
* - `collection`: The collection of the item.
|
|
3646
|
+
* - `item`: The item the sender wants to buy.
|
|
3647
|
+
* - `bid_price`: The price the sender is willing to pay.
|
|
3648
|
+
*
|
|
3649
|
+
* Emits `ItemBought` on success.
|
|
3650
|
+
**/
|
|
3651
|
+
buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
|
|
3652
|
+
/**
|
|
3653
|
+
* Cancel one of the transfer approvals for a specific item.
|
|
3654
|
+
*
|
|
3655
|
+
* Origin must be either:
|
|
3656
|
+
* - the `Force` origin;
|
|
3657
|
+
* - `Signed` with the signer being the Admin of the `collection`;
|
|
3658
|
+
* - `Signed` with the signer being the Owner of the `item`;
|
|
3659
|
+
*
|
|
3660
|
+
* Arguments:
|
|
3661
|
+
* - `collection`: The collection of the item of whose approval will be cancelled.
|
|
3662
|
+
* - `item`: The item of the collection of whose approval will be cancelled.
|
|
3663
|
+
* - `delegate`: The account that is going to loose their approval.
|
|
3664
|
+
*
|
|
3665
|
+
* Emits `ApprovalCancelled` on success.
|
|
3666
|
+
*
|
|
3667
|
+
* Weight: `O(1)`
|
|
3668
|
+
**/
|
|
3669
|
+
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
|
|
3670
|
+
Id: any;
|
|
3671
|
+
} | {
|
|
3672
|
+
Index: any;
|
|
3673
|
+
} | {
|
|
3674
|
+
Raw: any;
|
|
3675
|
+
} | {
|
|
3676
|
+
Address32: any;
|
|
3677
|
+
} | {
|
|
3678
|
+
Address20: any;
|
|
3679
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
|
|
3680
|
+
/**
|
|
3681
|
+
* Cancel the previously provided approval to change item's attributes.
|
|
3682
|
+
* All the previously set attributes by the `delegate` will be removed.
|
|
3683
|
+
*
|
|
3684
|
+
* Origin must be Signed and must be an owner of the `item`.
|
|
3685
|
+
*
|
|
3686
|
+
* - `collection`: Collection that the item is contained within.
|
|
3687
|
+
* - `item`: The item that holds attributes.
|
|
3688
|
+
* - `delegate`: The previously approved account to remove.
|
|
3689
|
+
*
|
|
3690
|
+
* Emits `ItemAttributesApprovalRemoved` on success.
|
|
3691
|
+
**/
|
|
3692
|
+
cancelItemAttributesApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
|
|
3693
|
+
Id: any;
|
|
3694
|
+
} | {
|
|
3695
|
+
Index: any;
|
|
3696
|
+
} | {
|
|
3697
|
+
Raw: any;
|
|
3698
|
+
} | {
|
|
3699
|
+
Address32: any;
|
|
3700
|
+
} | {
|
|
3701
|
+
Address20: any;
|
|
3702
|
+
} | string | Uint8Array, witness: PalletNftsCancelAttributesApprovalWitness | {
|
|
3703
|
+
accountAttributes?: any;
|
|
3704
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, PalletNftsCancelAttributesApprovalWitness]>;
|
|
3705
|
+
/**
|
|
3706
|
+
* Cancel an atomic swap.
|
|
3707
|
+
*
|
|
3708
|
+
* Origin must be Signed.
|
|
3709
|
+
* Origin must be an owner of the `item` if the deadline hasn't expired.
|
|
3710
|
+
*
|
|
3711
|
+
* - `collection`: The collection of the item.
|
|
3712
|
+
* - `item`: The item an owner wants to give.
|
|
3713
|
+
*
|
|
3714
|
+
* Emits `SwapCancelled` on success.
|
|
3715
|
+
**/
|
|
3716
|
+
cancelSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3717
|
+
/**
|
|
3718
|
+
* Claim an atomic swap.
|
|
3719
|
+
* This method executes a pending swap, that was created by a counterpart before.
|
|
3720
|
+
*
|
|
3721
|
+
* Origin must be Signed and must be an owner of the `item`.
|
|
3722
|
+
*
|
|
3723
|
+
* - `send_collection`: The collection of the item to be sent.
|
|
3724
|
+
* - `send_item`: The item to be sent.
|
|
3725
|
+
* - `receive_collection`: The collection of the item to be received.
|
|
3726
|
+
* - `receive_item`: The item to be received.
|
|
3727
|
+
* - `witness_price`: A price that was previously agreed on.
|
|
3728
|
+
*
|
|
3729
|
+
* Emits `SwapClaimed` on success.
|
|
3730
|
+
**/
|
|
3731
|
+
claimSwap: AugmentedSubmittable<(sendCollection: u32 | AnyNumber | Uint8Array, sendItem: u32 | AnyNumber | Uint8Array, receiveCollection: u32 | AnyNumber | Uint8Array, receiveItem: u32 | AnyNumber | Uint8Array, witnessPrice: Option<PalletNftsPriceWithDirection> | null | Uint8Array | PalletNftsPriceWithDirection | {
|
|
3732
|
+
amount?: any;
|
|
3733
|
+
direction?: any;
|
|
3734
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, u32, Option<PalletNftsPriceWithDirection>]>;
|
|
3735
|
+
/**
|
|
3736
|
+
* Cancel all the approvals of a specific item.
|
|
3737
|
+
*
|
|
3738
|
+
* Origin must be either:
|
|
3739
|
+
* - the `Force` origin;
|
|
3740
|
+
* - `Signed` with the signer being the Admin of the `collection`;
|
|
3741
|
+
* - `Signed` with the signer being the Owner of the `item`;
|
|
3742
|
+
*
|
|
3743
|
+
* Arguments:
|
|
3744
|
+
* - `collection`: The collection of the item of whose approvals will be cleared.
|
|
3745
|
+
* - `item`: The item of the collection of whose approvals will be cleared.
|
|
3746
|
+
*
|
|
3747
|
+
* Emits `AllApprovalsCancelled` on success.
|
|
3748
|
+
*
|
|
3749
|
+
* Weight: `O(1)`
|
|
3750
|
+
**/
|
|
3751
|
+
clearAllTransferApprovals: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3752
|
+
/**
|
|
3753
|
+
* Clear an attribute for a collection or item.
|
|
3754
|
+
*
|
|
3755
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
3756
|
+
* `collection`.
|
|
3757
|
+
*
|
|
3758
|
+
* Any deposit is freed for the collection's owner.
|
|
3759
|
+
*
|
|
3760
|
+
* - `collection`: The identifier of the collection whose item's metadata to clear.
|
|
3761
|
+
* - `maybe_item`: The identifier of the item whose metadata to clear.
|
|
3762
|
+
* - `namespace`: Attribute's namespace.
|
|
3763
|
+
* - `key`: The key of the attribute.
|
|
3764
|
+
*
|
|
3765
|
+
* Emits `AttributeCleared`.
|
|
3766
|
+
*
|
|
3767
|
+
* Weight: `O(1)`
|
|
3768
|
+
**/
|
|
3769
|
+
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
|
|
3770
|
+
Pallet: any;
|
|
3771
|
+
} | {
|
|
3772
|
+
CollectionOwner: any;
|
|
3773
|
+
} | {
|
|
3774
|
+
ItemOwner: any;
|
|
3775
|
+
} | {
|
|
3776
|
+
Account: any;
|
|
3777
|
+
} | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
|
|
3778
|
+
/**
|
|
3779
|
+
* Clear the metadata for a collection.
|
|
3780
|
+
*
|
|
3781
|
+
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
|
3782
|
+
* the `collection`.
|
|
3783
|
+
*
|
|
3784
|
+
* Any deposit is freed for the collection's owner.
|
|
3785
|
+
*
|
|
3786
|
+
* - `collection`: The identifier of the collection whose metadata to clear.
|
|
3787
|
+
*
|
|
3788
|
+
* Emits `CollectionMetadataCleared`.
|
|
3789
|
+
*
|
|
3790
|
+
* Weight: `O(1)`
|
|
3791
|
+
**/
|
|
3792
|
+
clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3793
|
+
/**
|
|
3794
|
+
* Clear the metadata for an item.
|
|
3795
|
+
*
|
|
3796
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
3797
|
+
* `collection`.
|
|
3798
|
+
*
|
|
3799
|
+
* Any deposit is freed for the collection's owner.
|
|
3800
|
+
*
|
|
3801
|
+
* - `collection`: The identifier of the collection whose item's metadata to clear.
|
|
3802
|
+
* - `item`: The identifier of the item whose metadata to clear.
|
|
3803
|
+
*
|
|
3804
|
+
* Emits `ItemMetadataCleared`.
|
|
3805
|
+
*
|
|
3806
|
+
* Weight: `O(1)`
|
|
3807
|
+
**/
|
|
3808
|
+
clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3809
|
+
/**
|
|
3810
|
+
* Issue a new collection of non-fungible items from a public origin.
|
|
3811
|
+
*
|
|
3812
|
+
* This new collection has no items initially and its owner is the origin.
|
|
3813
|
+
*
|
|
3814
|
+
* The origin must be Signed and the sender must have sufficient funds free.
|
|
3815
|
+
*
|
|
3816
|
+
* `ItemDeposit` funds of sender are reserved.
|
|
3817
|
+
*
|
|
3818
|
+
* Parameters:
|
|
3819
|
+
* - `admin`: The admin of this collection. The admin is the initial address of each
|
|
3820
|
+
* member of the collection's admin team.
|
|
3821
|
+
*
|
|
3822
|
+
* Emits `Created` event when successful.
|
|
3823
|
+
*
|
|
3824
|
+
* Weight: `O(1)`
|
|
3825
|
+
**/
|
|
3826
|
+
create: AugmentedSubmittable<(admin: MultiAddress | {
|
|
3827
|
+
Id: any;
|
|
3828
|
+
} | {
|
|
3829
|
+
Index: any;
|
|
3830
|
+
} | {
|
|
3831
|
+
Raw: any;
|
|
3832
|
+
} | {
|
|
3833
|
+
Address32: any;
|
|
3834
|
+
} | {
|
|
3835
|
+
Address20: any;
|
|
3836
|
+
} | string | Uint8Array, config: PalletNftsCollectionConfig | {
|
|
3837
|
+
settings?: any;
|
|
3838
|
+
maxSupply?: any;
|
|
3839
|
+
mintSettings?: any;
|
|
3840
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNftsCollectionConfig]>;
|
|
3841
|
+
/**
|
|
3842
|
+
* Register a new atomic swap, declaring an intention to send an `item` in exchange for
|
|
3843
|
+
* `desired_item` from origin to target on the current blockchain.
|
|
3844
|
+
* The target can execute the swap during the specified `duration` of blocks (if set).
|
|
3845
|
+
* Additionally, the price could be set for the desired `item`.
|
|
3846
|
+
*
|
|
3847
|
+
* Origin must be Signed and must be an owner of the `item`.
|
|
3848
|
+
*
|
|
3849
|
+
* - `collection`: The collection of the item.
|
|
3850
|
+
* - `item`: The item an owner wants to give.
|
|
3851
|
+
* - `desired_collection`: The collection of the desired item.
|
|
3852
|
+
* - `desired_item`: The desired item an owner wants to receive.
|
|
3853
|
+
* - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`.
|
|
3854
|
+
* - `duration`: A deadline for the swap. Specified by providing the number of blocks
|
|
3855
|
+
* after which the swap will expire.
|
|
3856
|
+
*
|
|
3857
|
+
* Emits `SwapCreated` on success.
|
|
3858
|
+
**/
|
|
3859
|
+
createSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array, desiredCollection: u32 | AnyNumber | Uint8Array, maybeDesiredItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybePrice: Option<PalletNftsPriceWithDirection> | null | Uint8Array | PalletNftsPriceWithDirection | {
|
|
3860
|
+
amount?: any;
|
|
3861
|
+
direction?: any;
|
|
3862
|
+
} | string, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, Option<u32>, Option<PalletNftsPriceWithDirection>, u32]>;
|
|
3863
|
+
/**
|
|
3864
|
+
* Destroy a collection of fungible items.
|
|
3865
|
+
*
|
|
3866
|
+
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
|
|
3867
|
+
* owner of the `collection`.
|
|
3868
|
+
*
|
|
3869
|
+
* - `collection`: The identifier of the collection to be destroyed.
|
|
3870
|
+
* - `witness`: Information on the items minted in the collection. This must be
|
|
3871
|
+
* correct.
|
|
3872
|
+
*
|
|
3873
|
+
* Emits `Destroyed` event when successful.
|
|
3874
|
+
*
|
|
3875
|
+
* Weight: `O(n + m)` where:
|
|
3876
|
+
* - `n = witness.items`
|
|
3877
|
+
* - `m = witness.item_metadatas`
|
|
3878
|
+
* - `a = witness.attributes`
|
|
3879
|
+
**/
|
|
3880
|
+
destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | {
|
|
3881
|
+
items?: any;
|
|
3882
|
+
itemMetadatas?: any;
|
|
3883
|
+
attributes?: any;
|
|
3884
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsDestroyWitness]>;
|
|
3885
|
+
/**
|
|
3886
|
+
* Change the config of a collection.
|
|
3887
|
+
*
|
|
3888
|
+
* Origin must be `ForceOrigin`.
|
|
3889
|
+
*
|
|
3890
|
+
* - `collection`: The identifier of the collection.
|
|
3891
|
+
* - `config`: The new config of this collection.
|
|
3892
|
+
*
|
|
3893
|
+
* Emits `CollectionConfigChanged`.
|
|
3894
|
+
*
|
|
3895
|
+
* Weight: `O(1)`
|
|
3896
|
+
**/
|
|
3897
|
+
forceCollectionConfig: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, config: PalletNftsCollectionConfig | {
|
|
3898
|
+
settings?: any;
|
|
3899
|
+
maxSupply?: any;
|
|
3900
|
+
mintSettings?: any;
|
|
3901
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsCollectionConfig]>;
|
|
3902
|
+
/**
|
|
3903
|
+
* Change the Owner of a collection.
|
|
3904
|
+
*
|
|
3905
|
+
* Origin must be `ForceOrigin`.
|
|
3906
|
+
*
|
|
3907
|
+
* - `collection`: The identifier of the collection.
|
|
3908
|
+
* - `owner`: The new Owner of this collection.
|
|
3909
|
+
*
|
|
3910
|
+
* Emits `OwnerChanged`.
|
|
3911
|
+
*
|
|
3912
|
+
* Weight: `O(1)`
|
|
3913
|
+
**/
|
|
3914
|
+
forceCollectionOwner: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
|
|
3915
|
+
Id: any;
|
|
3916
|
+
} | {
|
|
3917
|
+
Index: any;
|
|
3918
|
+
} | {
|
|
3919
|
+
Raw: any;
|
|
3920
|
+
} | {
|
|
3921
|
+
Address32: any;
|
|
3922
|
+
} | {
|
|
3923
|
+
Address20: any;
|
|
3924
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
|
3925
|
+
/**
|
|
3926
|
+
* Issue a new collection of non-fungible items from a privileged origin.
|
|
3927
|
+
*
|
|
3928
|
+
* This new collection has no items initially.
|
|
3929
|
+
*
|
|
3930
|
+
* The origin must conform to `ForceOrigin`.
|
|
3931
|
+
*
|
|
3932
|
+
* Unlike `create`, no funds are reserved.
|
|
3933
|
+
*
|
|
3934
|
+
* - `owner`: The owner of this collection of items. The owner has full superuser
|
|
3935
|
+
* permissions over this item, but may later change and configure the permissions using
|
|
3936
|
+
* `transfer_ownership` and `set_team`.
|
|
3937
|
+
*
|
|
3938
|
+
* Emits `ForceCreated` event when successful.
|
|
3939
|
+
*
|
|
3940
|
+
* Weight: `O(1)`
|
|
3941
|
+
**/
|
|
3942
|
+
forceCreate: AugmentedSubmittable<(owner: MultiAddress | {
|
|
3943
|
+
Id: any;
|
|
3944
|
+
} | {
|
|
3945
|
+
Index: any;
|
|
3946
|
+
} | {
|
|
3947
|
+
Raw: any;
|
|
3948
|
+
} | {
|
|
3949
|
+
Address32: any;
|
|
3950
|
+
} | {
|
|
3951
|
+
Address20: any;
|
|
3952
|
+
} | string | Uint8Array, config: PalletNftsCollectionConfig | {
|
|
3953
|
+
settings?: any;
|
|
3954
|
+
maxSupply?: any;
|
|
3955
|
+
mintSettings?: any;
|
|
3956
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNftsCollectionConfig]>;
|
|
3957
|
+
/**
|
|
3958
|
+
* Mint an item of a particular collection from a privileged origin.
|
|
3959
|
+
*
|
|
3960
|
+
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
|
|
3961
|
+
* Issuer of the `collection`.
|
|
3962
|
+
*
|
|
3963
|
+
* - `collection`: The collection of the item to be minted.
|
|
3964
|
+
* - `item`: An identifier of the new item.
|
|
3965
|
+
* - `mint_to`: Account into which the item will be minted.
|
|
3966
|
+
* - `item_config`: A config of the new item.
|
|
3967
|
+
*
|
|
3968
|
+
* Emits `Issued` event when successful.
|
|
3969
|
+
*
|
|
3970
|
+
* Weight: `O(1)`
|
|
3971
|
+
**/
|
|
3972
|
+
forceMint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | {
|
|
3973
|
+
Id: any;
|
|
3974
|
+
} | {
|
|
3975
|
+
Index: any;
|
|
3976
|
+
} | {
|
|
3977
|
+
Raw: any;
|
|
3978
|
+
} | {
|
|
3979
|
+
Address32: any;
|
|
3980
|
+
} | {
|
|
3981
|
+
Address20: any;
|
|
3982
|
+
} | string | Uint8Array, itemConfig: PalletNftsItemConfig | {
|
|
3983
|
+
settings?: any;
|
|
3984
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, PalletNftsItemConfig]>;
|
|
3985
|
+
/**
|
|
3986
|
+
* Force-set an attribute for a collection or item.
|
|
3987
|
+
*
|
|
3988
|
+
* Origin must be `ForceOrigin`.
|
|
3989
|
+
*
|
|
3990
|
+
* If the attribute already exists and it was set by another account, the deposit
|
|
3991
|
+
* will be returned to the previous owner.
|
|
3992
|
+
*
|
|
3993
|
+
* - `set_as`: An optional owner of the attribute.
|
|
3994
|
+
* - `collection`: The identifier of the collection whose item's metadata to set.
|
|
3995
|
+
* - `maybe_item`: The identifier of the item whose metadata to set.
|
|
3996
|
+
* - `namespace`: Attribute's namespace.
|
|
3997
|
+
* - `key`: The key of the attribute.
|
|
3998
|
+
* - `value`: The value to which to set the attribute.
|
|
3999
|
+
*
|
|
4000
|
+
* Emits `AttributeSet`.
|
|
4001
|
+
*
|
|
4002
|
+
* Weight: `O(1)`
|
|
4003
|
+
**/
|
|
4004
|
+
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
|
|
4005
|
+
Pallet: any;
|
|
4006
|
+
} | {
|
|
4007
|
+
CollectionOwner: any;
|
|
4008
|
+
} | {
|
|
4009
|
+
ItemOwner: any;
|
|
4010
|
+
} | {
|
|
4011
|
+
Account: any;
|
|
4012
|
+
} | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
|
4013
|
+
/**
|
|
4014
|
+
* Disallows specified settings for the whole collection.
|
|
4015
|
+
*
|
|
4016
|
+
* Origin must be Signed and the sender should be the Freezer of the `collection`.
|
|
4017
|
+
*
|
|
4018
|
+
* - `collection`: The collection to be locked.
|
|
4019
|
+
* - `lock_settings`: The settings to be locked.
|
|
4020
|
+
*
|
|
4021
|
+
* Note: it's possible to only lock(set) the setting, but not to unset it.
|
|
4022
|
+
* Emits `CollectionLocked`.
|
|
4023
|
+
*
|
|
4024
|
+
* Weight: `O(1)`
|
|
4025
|
+
**/
|
|
4026
|
+
lockCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, lockSettings: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u64]>;
|
|
4027
|
+
/**
|
|
4028
|
+
* Disallows changing the metadata or attributes of the item.
|
|
4029
|
+
*
|
|
4030
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
4031
|
+
* `collection`.
|
|
4032
|
+
*
|
|
4033
|
+
* - `collection`: The collection if the `item`.
|
|
4034
|
+
* - `item`: An item to be locked.
|
|
4035
|
+
* - `lock_metadata`: Specifies whether the metadata should be locked.
|
|
4036
|
+
* - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
|
|
4037
|
+
* should be locked.
|
|
4038
|
+
*
|
|
4039
|
+
* Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace
|
|
4040
|
+
* only. When the metadata or attributes are locked, it won't be possible the unlock them.
|
|
4041
|
+
*
|
|
4042
|
+
* Emits `ItemPropertiesLocked`.
|
|
4043
|
+
*
|
|
4044
|
+
* Weight: `O(1)`
|
|
4045
|
+
**/
|
|
4046
|
+
lockItemProperties: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, lockMetadata: bool | boolean | Uint8Array, lockAttributes: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, bool, bool]>;
|
|
4047
|
+
/**
|
|
4048
|
+
* Disallow further unprivileged transfer of an item.
|
|
4049
|
+
*
|
|
4050
|
+
* Origin must be Signed and the sender should be the Freezer of the `collection`.
|
|
4051
|
+
*
|
|
4052
|
+
* - `collection`: The collection of the item to be changed.
|
|
4053
|
+
* - `item`: The item to become non-transferable.
|
|
4054
|
+
*
|
|
4055
|
+
* Emits `ItemTransferLocked`.
|
|
4056
|
+
*
|
|
4057
|
+
* Weight: `O(1)`
|
|
4058
|
+
**/
|
|
4059
|
+
lockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
4060
|
+
/**
|
|
4061
|
+
* Mint an item of a particular collection.
|
|
4062
|
+
*
|
|
4063
|
+
* The origin must be Signed and the sender must be the Issuer of the `collection`.
|
|
4064
|
+
*
|
|
4065
|
+
* - `collection`: The collection of the item to be minted.
|
|
4066
|
+
* - `item`: An identifier of the new item.
|
|
4067
|
+
* - `mint_to`: Account into which the item will be minted.
|
|
4068
|
+
* - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned
|
|
4069
|
+
* item_id from that collection needs to be provided within the witness data object.
|
|
4070
|
+
*
|
|
4071
|
+
* Note: the deposit will be taken from the `origin` and not the `owner` of the `item`.
|
|
4072
|
+
*
|
|
4073
|
+
* Emits `Issued` event when successful.
|
|
4074
|
+
*
|
|
4075
|
+
* Weight: `O(1)`
|
|
4076
|
+
**/
|
|
4077
|
+
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | {
|
|
4078
|
+
Id: any;
|
|
4079
|
+
} | {
|
|
4080
|
+
Index: any;
|
|
4081
|
+
} | {
|
|
4082
|
+
Raw: any;
|
|
4083
|
+
} | {
|
|
4084
|
+
Address32: any;
|
|
4085
|
+
} | {
|
|
4086
|
+
Address20: any;
|
|
4087
|
+
} | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
|
|
4088
|
+
ownerOfItem?: any;
|
|
4089
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
|
4090
|
+
/**
|
|
4091
|
+
* Allows to pay the tips.
|
|
4092
|
+
*
|
|
4093
|
+
* Origin must be Signed.
|
|
4094
|
+
*
|
|
4095
|
+
* - `tips`: Tips array.
|
|
4096
|
+
*
|
|
4097
|
+
* Emits `TipSent` on every tip transfer.
|
|
4098
|
+
**/
|
|
4099
|
+
payTips: AugmentedSubmittable<(tips: Vec<PalletNftsItemTip> | (PalletNftsItemTip | {
|
|
4100
|
+
collection?: any;
|
|
4101
|
+
item?: any;
|
|
4102
|
+
receiver?: any;
|
|
4103
|
+
amount?: any;
|
|
4104
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletNftsItemTip>]>;
|
|
4105
|
+
/**
|
|
4106
|
+
* Re-evaluate the deposits on some items.
|
|
4107
|
+
*
|
|
4108
|
+
* Origin must be Signed and the sender should be the Owner of the `collection`.
|
|
4109
|
+
*
|
|
4110
|
+
* - `collection`: The collection of the items to be reevaluated.
|
|
4111
|
+
* - `items`: The items of the collection whose deposits will be reevaluated.
|
|
4112
|
+
*
|
|
4113
|
+
* NOTE: This exists as a best-effort function. Any items which are unknown or
|
|
4114
|
+
* in the case that the owner account does not have reservable funds to pay for a
|
|
4115
|
+
* deposit increase are ignored. Generally the owner isn't going to call this on items
|
|
4116
|
+
* whose existing deposit is less than the refreshed deposit as it would only cost them,
|
|
4117
|
+
* so it's of little consequence.
|
|
4118
|
+
*
|
|
4119
|
+
* It will still return an error in the case that the collection is unknown or the signer
|
|
4120
|
+
* is not permitted to call it.
|
|
4121
|
+
*
|
|
4122
|
+
* Weight: `O(items.len())`
|
|
4123
|
+
**/
|
|
4124
|
+
redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
|
4125
|
+
/**
|
|
4126
|
+
* Set (or reset) the acceptance of ownership for a particular account.
|
|
4127
|
+
*
|
|
4128
|
+
* Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a
|
|
4129
|
+
* provider reference.
|
|
4130
|
+
*
|
|
4131
|
+
* - `maybe_collection`: The identifier of the collection whose ownership the signer is
|
|
4132
|
+
* willing to accept, or if `None`, an indication that the signer is willing to accept no
|
|
4133
|
+
* ownership transferal.
|
|
4134
|
+
*
|
|
4135
|
+
* Emits `OwnershipAcceptanceChanged`.
|
|
4136
|
+
**/
|
|
4137
|
+
setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
4138
|
+
/**
|
|
4139
|
+
* Set an attribute for a collection or item.
|
|
4140
|
+
*
|
|
4141
|
+
* Origin must be Signed and must conform to the namespace ruleset:
|
|
4142
|
+
* - `CollectionOwner` namespace could be modified by the `collection` owner only;
|
|
4143
|
+
* - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
|
|
4144
|
+
* should be set in that case;
|
|
4145
|
+
* - `Account(AccountId)` namespace could be modified only when the `origin` was given a
|
|
4146
|
+
* permission to do so;
|
|
4147
|
+
*
|
|
4148
|
+
* The funds of `origin` are reserved according to the formula:
|
|
4149
|
+
* `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into
|
|
4150
|
+
* account any already reserved funds.
|
|
4151
|
+
*
|
|
4152
|
+
* - `collection`: The identifier of the collection whose item's metadata to set.
|
|
4153
|
+
* - `maybe_item`: The identifier of the item whose metadata to set.
|
|
4154
|
+
* - `namespace`: Attribute's namespace.
|
|
4155
|
+
* - `key`: The key of the attribute.
|
|
4156
|
+
* - `value`: The value to which to set the attribute.
|
|
4157
|
+
*
|
|
4158
|
+
* Emits `AttributeSet`.
|
|
4159
|
+
*
|
|
4160
|
+
* Weight: `O(1)`
|
|
4161
|
+
**/
|
|
4162
|
+
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
|
|
4163
|
+
Pallet: any;
|
|
4164
|
+
} | {
|
|
4165
|
+
CollectionOwner: any;
|
|
4166
|
+
} | {
|
|
4167
|
+
ItemOwner: any;
|
|
4168
|
+
} | {
|
|
4169
|
+
Account: any;
|
|
4170
|
+
} | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
|
4171
|
+
/**
|
|
4172
|
+
* Set the maximum number of items a collection could have.
|
|
4173
|
+
*
|
|
4174
|
+
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
|
4175
|
+
* the `collection`.
|
|
4176
|
+
*
|
|
4177
|
+
* - `collection`: The identifier of the collection to change.
|
|
4178
|
+
* - `max_supply`: The maximum number of items a collection could have.
|
|
4179
|
+
*
|
|
4180
|
+
* Emits `CollectionMaxSupplySet` event when successful.
|
|
4181
|
+
**/
|
|
4182
|
+
setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
4183
|
+
/**
|
|
4184
|
+
* Set the metadata for a collection.
|
|
4185
|
+
*
|
|
4186
|
+
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
|
4187
|
+
* the `collection`.
|
|
4188
|
+
*
|
|
4189
|
+
* If the origin is `Signed`, then funds of signer are reserved according to the formula:
|
|
4190
|
+
* `MetadataDepositBase + DepositPerByte * data.len` taking into
|
|
4191
|
+
* account any already reserved funds.
|
|
4192
|
+
*
|
|
4193
|
+
* - `collection`: The identifier of the item whose metadata to update.
|
|
4194
|
+
* - `data`: The general information of this item. Limited in length by `StringLimit`.
|
|
4195
|
+
*
|
|
4196
|
+
* Emits `CollectionMetadataSet`.
|
|
4197
|
+
*
|
|
4198
|
+
* Weight: `O(1)`
|
|
4199
|
+
**/
|
|
4200
|
+
setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
4201
|
+
/**
|
|
4202
|
+
* Set the metadata for an item.
|
|
4203
|
+
*
|
|
4204
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
4205
|
+
* `collection`.
|
|
4206
|
+
*
|
|
4207
|
+
* If the origin is Signed, then funds of signer are reserved according to the formula:
|
|
4208
|
+
* `MetadataDepositBase + DepositPerByte * data.len` taking into
|
|
4209
|
+
* account any already reserved funds.
|
|
4210
|
+
*
|
|
4211
|
+
* - `collection`: The identifier of the collection whose item's metadata to set.
|
|
4212
|
+
* - `item`: The identifier of the item whose metadata to set.
|
|
4213
|
+
* - `data`: The general information of this item. Limited in length by `StringLimit`.
|
|
4214
|
+
*
|
|
4215
|
+
* Emits `ItemMetadataSet`.
|
|
4216
|
+
*
|
|
4217
|
+
* Weight: `O(1)`
|
|
4218
|
+
**/
|
|
4219
|
+
setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes]>;
|
|
4220
|
+
/**
|
|
4221
|
+
* Set (or reset) the price for an item.
|
|
4222
|
+
*
|
|
4223
|
+
* Origin must be Signed and must be the owner of the asset `item`.
|
|
4224
|
+
*
|
|
4225
|
+
* - `collection`: The collection of the item.
|
|
4226
|
+
* - `item`: The item to set the price for.
|
|
4227
|
+
* - `price`: The price for the item. Pass `None`, to reset the price.
|
|
4228
|
+
* - `buyer`: Restricts the buy operation to a specific account.
|
|
4229
|
+
*
|
|
4230
|
+
* Emits `ItemPriceSet` on success if the price is not `None`.
|
|
4231
|
+
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
|
4232
|
+
**/
|
|
4233
|
+
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
|
|
4234
|
+
Id: any;
|
|
4235
|
+
} | {
|
|
4236
|
+
Index: any;
|
|
4237
|
+
} | {
|
|
4238
|
+
Raw: any;
|
|
4239
|
+
} | {
|
|
4240
|
+
Address32: any;
|
|
4241
|
+
} | {
|
|
4242
|
+
Address20: any;
|
|
4243
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
|
4244
|
+
/**
|
|
4245
|
+
* Change the Issuer, Admin and Freezer of a collection.
|
|
4246
|
+
*
|
|
4247
|
+
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
4248
|
+
* `collection`.
|
|
4249
|
+
*
|
|
4250
|
+
* - `collection`: The collection whose team should be changed.
|
|
4251
|
+
* - `issuer`: The new Issuer of this collection.
|
|
4252
|
+
* - `admin`: The new Admin of this collection.
|
|
4253
|
+
* - `freezer`: The new Freezer of this collection.
|
|
4254
|
+
*
|
|
4255
|
+
* Emits `TeamChanged`.
|
|
4256
|
+
*
|
|
4257
|
+
* Weight: `O(1)`
|
|
4258
|
+
**/
|
|
4259
|
+
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | {
|
|
4260
|
+
Id: any;
|
|
4261
|
+
} | {
|
|
4262
|
+
Index: any;
|
|
4263
|
+
} | {
|
|
4264
|
+
Raw: any;
|
|
4265
|
+
} | {
|
|
4266
|
+
Address32: any;
|
|
4267
|
+
} | {
|
|
4268
|
+
Address20: any;
|
|
4269
|
+
} | string | Uint8Array, admin: MultiAddress | {
|
|
4270
|
+
Id: any;
|
|
4271
|
+
} | {
|
|
4272
|
+
Index: any;
|
|
4273
|
+
} | {
|
|
4274
|
+
Raw: any;
|
|
4275
|
+
} | {
|
|
4276
|
+
Address32: any;
|
|
4277
|
+
} | {
|
|
4278
|
+
Address20: any;
|
|
4279
|
+
} | string | Uint8Array, freezer: MultiAddress | {
|
|
4280
|
+
Id: any;
|
|
4281
|
+
} | {
|
|
4282
|
+
Index: any;
|
|
4283
|
+
} | {
|
|
4284
|
+
Raw: any;
|
|
4285
|
+
} | {
|
|
4286
|
+
Address32: any;
|
|
4287
|
+
} | {
|
|
4288
|
+
Address20: any;
|
|
4289
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, MultiAddress, MultiAddress]>;
|
|
4290
|
+
/**
|
|
4291
|
+
* Move an item from the sender account to another.
|
|
4292
|
+
*
|
|
4293
|
+
* Origin must be Signed and the signing account must be either:
|
|
4294
|
+
* - the Admin of the `collection`;
|
|
4295
|
+
* - the Owner of the `item`;
|
|
4296
|
+
* - the approved delegate for the `item` (in this case, the approval is reset).
|
|
4297
|
+
*
|
|
4298
|
+
* Arguments:
|
|
4299
|
+
* - `collection`: The collection of the item to be transferred.
|
|
4300
|
+
* - `item`: The item to be transferred.
|
|
4301
|
+
* - `dest`: The account to receive ownership of the item.
|
|
4302
|
+
*
|
|
4303
|
+
* Emits `Transferred`.
|
|
4304
|
+
*
|
|
4305
|
+
* Weight: `O(1)`
|
|
4306
|
+
**/
|
|
4307
|
+
transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | {
|
|
4308
|
+
Id: any;
|
|
4309
|
+
} | {
|
|
4310
|
+
Index: any;
|
|
4311
|
+
} | {
|
|
4312
|
+
Raw: any;
|
|
4313
|
+
} | {
|
|
4314
|
+
Address32: any;
|
|
4315
|
+
} | {
|
|
4316
|
+
Address20: any;
|
|
4317
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
|
|
4318
|
+
/**
|
|
4319
|
+
* Change the Owner of a collection.
|
|
4320
|
+
*
|
|
4321
|
+
* Origin must be Signed and the sender should be the Owner of the `collection`.
|
|
4322
|
+
*
|
|
4323
|
+
* - `collection`: The collection whose owner should be changed.
|
|
4324
|
+
* - `owner`: The new Owner of this collection. They must have called
|
|
4325
|
+
* `set_accept_ownership` with `collection` in order for this operation to succeed.
|
|
4326
|
+
*
|
|
4327
|
+
* Emits `OwnerChanged`.
|
|
4328
|
+
*
|
|
4329
|
+
* Weight: `O(1)`
|
|
4330
|
+
**/
|
|
4331
|
+
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
|
|
4332
|
+
Id: any;
|
|
4333
|
+
} | {
|
|
4334
|
+
Index: any;
|
|
4335
|
+
} | {
|
|
4336
|
+
Raw: any;
|
|
4337
|
+
} | {
|
|
4338
|
+
Address32: any;
|
|
4339
|
+
} | {
|
|
4340
|
+
Address20: any;
|
|
4341
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
|
4342
|
+
/**
|
|
4343
|
+
* Re-allow unprivileged transfer of an item.
|
|
4344
|
+
*
|
|
4345
|
+
* Origin must be Signed and the sender should be the Freezer of the `collection`.
|
|
4346
|
+
*
|
|
4347
|
+
* - `collection`: The collection of the item to be changed.
|
|
4348
|
+
* - `item`: The item to become transferable.
|
|
4349
|
+
*
|
|
4350
|
+
* Emits `ItemTransferUnlocked`.
|
|
4351
|
+
*
|
|
4352
|
+
* Weight: `O(1)`
|
|
4353
|
+
**/
|
|
4354
|
+
unlockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
4355
|
+
/**
|
|
4356
|
+
* Update mint settings.
|
|
4357
|
+
*
|
|
4358
|
+
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
|
4359
|
+
* the `collection`.
|
|
4360
|
+
*
|
|
4361
|
+
* - `collection`: The identifier of the collection to change.
|
|
4362
|
+
* - `mint_settings`: The new mint settings.
|
|
4363
|
+
*
|
|
4364
|
+
* Emits `CollectionMintSettingsUpdated` event when successful.
|
|
4365
|
+
**/
|
|
4366
|
+
updateMintSettings: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, mintSettings: PalletNftsMintSettings | {
|
|
4367
|
+
mintType?: any;
|
|
4368
|
+
price?: any;
|
|
4369
|
+
startBlock?: any;
|
|
4370
|
+
endBlock?: any;
|
|
4371
|
+
defaultItemSettings?: any;
|
|
4372
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsMintSettings]>;
|
|
4373
|
+
/**
|
|
4374
|
+
* Generic tx
|
|
4375
|
+
**/
|
|
4376
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4377
|
+
};
|
|
3562
4378
|
nis: {
|
|
3563
4379
|
/**
|
|
3564
4380
|
* Ensure we have sufficient funding for all potential payouts.
|
|
@@ -5290,7 +6106,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5290
6106
|
/**
|
|
5291
6107
|
* Cancel enactment of a deferred slash.
|
|
5292
6108
|
*
|
|
5293
|
-
* Can be called by the `T::
|
|
6109
|
+
* Can be called by the `T::AdminOrigin`.
|
|
5294
6110
|
*
|
|
5295
6111
|
* Parameters: era and indices of the slashes for that era to kill.
|
|
5296
6112
|
**/
|
|
@@ -5555,6 +6371,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5555
6371
|
* The dispatch origin must be Root.
|
|
5556
6372
|
**/
|
|
5557
6373
|
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
6374
|
+
/**
|
|
6375
|
+
* Sets the minimum amount of commission that each validators must maintain.
|
|
6376
|
+
*
|
|
6377
|
+
* This call has lower privilege requirements than `set_staking_config` and can be called
|
|
6378
|
+
* by the `T::AdminOrigin`. Root can always call this.
|
|
6379
|
+
**/
|
|
6380
|
+
setMinCommission: AugmentedSubmittable<(updated: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
5558
6381
|
/**
|
|
5559
6382
|
* (Re-)set the payment target for a controller.
|
|
5560
6383
|
*
|
|
@@ -6597,7 +7420,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6597
7420
|
/**
|
|
6598
7421
|
* Destroy a single item.
|
|
6599
7422
|
*
|
|
6600
|
-
* Origin must be Signed and the
|
|
7423
|
+
* Origin must be Signed and the signing account must be either:
|
|
7424
|
+
* - the Admin of the `collection`;
|
|
7425
|
+
* - the Owner of the `item`;
|
|
6601
7426
|
*
|
|
6602
7427
|
* - `collection`: The collection of the item to be burned.
|
|
6603
7428
|
* - `item`: The item of the item to be burned.
|