difftreelog
chore regenerate types
in: master
8 files changed
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api-base/types';56declare module '@polkadot/api-base/types/errors' {7 export interface AugmentedErrors<ApiType extends ApiTypes> {8 balances: {9 /**10 * Beneficiary account must pre-exist11 **/12 DeadAccount: AugmentedError<ApiType>;13 /**14 * Value too low to create account due to existential deposit15 **/16 ExistentialDeposit: AugmentedError<ApiType>;17 /**18 * A vesting schedule already exists for this account19 **/20 ExistingVestingSchedule: AugmentedError<ApiType>;21 /**22 * Balance too low to send value23 **/24 InsufficientBalance: AugmentedError<ApiType>;25 /**26 * Transfer/payment would kill account27 **/28 KeepAlive: AugmentedError<ApiType>;29 /**30 * Account liquidity restrictions prevent withdrawal31 **/32 LiquidityRestrictions: AugmentedError<ApiType>;33 /**34 * Number of named reserves exceed MaxReserves35 **/36 TooManyReserves: AugmentedError<ApiType>;37 /**38 * Vesting balance too high to send value39 **/40 VestingBalance: AugmentedError<ApiType>;41 /**42 * Generic error43 **/44 [key: string]: AugmentedError<ApiType>;45 };46 common: {47 /**48 * Account token limit exceeded per collection49 **/50 AccountTokenLimitExceeded: AugmentedError<ApiType>;51 /**52 * Can't transfer tokens to ethereum zero address53 **/54 AddressIsZero: AugmentedError<ApiType>;55 /**56 * Address is not in allow list.57 **/58 AddressNotInAllowlist: AugmentedError<ApiType>;59 /**60 * Requested value more than approved.61 **/62 ApprovedValueTooLow: AugmentedError<ApiType>;63 /**64 * Tried to approve more than owned65 **/66 CantApproveMoreThanOwned: AugmentedError<ApiType>;67 /**68 * Destroying only empty collections is allowed69 **/70 CantDestroyNotEmptyCollection: AugmentedError<ApiType>;71 /**72 * Exceeded max admin count73 **/74 CollectionAdminCountExceeded: AugmentedError<ApiType>;75 /**76 * Collection description can not be longer than 255 char.77 **/78 CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;79 /**80 * Tried to store more data than allowed in collection field81 **/82 CollectionFieldSizeExceeded: AugmentedError<ApiType>;83 /**84 * Tried to access an external collection with an internal API85 **/86 CollectionIsExternal: AugmentedError<ApiType>;87 /**88 * Tried to access an internal collection with an external API89 **/90 CollectionIsInternal: AugmentedError<ApiType>;91 /**92 * Collection limit bounds per collection exceeded93 **/94 CollectionLimitBoundsExceeded: AugmentedError<ApiType>;95 /**96 * Collection name can not be longer than 63 char.97 **/98 CollectionNameLimitExceeded: AugmentedError<ApiType>;99 /**100 * This collection does not exist.101 **/102 CollectionNotFound: AugmentedError<ApiType>;103 /**104 * Collection token limit exceeded105 **/106 CollectionTokenLimitExceeded: AugmentedError<ApiType>;107 /**108 * Token prefix can not be longer than 15 char.109 **/110 CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;111 /**112 * Empty property keys are forbidden113 **/114 EmptyPropertyKey: AugmentedError<ApiType>;115 /**116 * Only ASCII letters, digits, and '_', '-' are allowed117 **/118 InvalidCharacterInPropertyKey: AugmentedError<ApiType>;119 /**120 * Metadata flag frozen121 **/122 MetadataFlagFrozen: AugmentedError<ApiType>;123 /**124 * Sender parameter and item owner must be equal.125 **/126 MustBeTokenOwner: AugmentedError<ApiType>;127 /**128 * No permission to perform action129 **/130 NoPermission: AugmentedError<ApiType>;131 /**132 * Tried to store more property data than allowed133 **/134 NoSpaceForProperty: AugmentedError<ApiType>;135 /**136 * Not sufficient funds to perform action137 **/138 NotSufficientFounds: AugmentedError<ApiType>;139 /**140 * Tried to enable permissions which are only permitted to be disabled141 **/142 OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;143 /**144 * Property key is too long145 **/146 PropertyKeyIsTooLong: AugmentedError<ApiType>;147 /**148 * Tried to store more property keys than allowed149 **/150 PropertyLimitReached: AugmentedError<ApiType>;151 /**152 * Collection is not in mint mode.153 **/154 PublicMintingNotAllowed: AugmentedError<ApiType>;155 /**156 * Only tokens from specific collections may nest tokens under this157 **/158 SourceCollectionIsNotAllowedToNest: AugmentedError<ApiType>;159 /**160 * Item not exists.161 **/162 TokenNotFound: AugmentedError<ApiType>;163 /**164 * Item balance not enough.165 **/166 TokenValueTooLow: AugmentedError<ApiType>;167 /**168 * Total collections bound exceeded.169 **/170 TotalCollectionsLimitExceeded: AugmentedError<ApiType>;171 /**172 * Collection settings not allowing items transferring173 **/174 TransferNotAllowed: AugmentedError<ApiType>;175 /**176 * Target collection doesn't supports this operation177 **/178 UnsupportedOperation: AugmentedError<ApiType>;179 /**180 * User not passed nesting rule181 **/182 UserIsNotAllowedToNest: AugmentedError<ApiType>;183 /**184 * Generic error185 **/186 [key: string]: AugmentedError<ApiType>;187 };188 cumulusXcm: {189 /**190 * Generic error191 **/192 [key: string]: AugmentedError<ApiType>;193 };194 dmpQueue: {195 /**196 * The amount of weight given is possibly not enough for executing the message.197 **/198 OverLimit: AugmentedError<ApiType>;199 /**200 * The message index given is unknown.201 **/202 Unknown: AugmentedError<ApiType>;203 /**204 * Generic error205 **/206 [key: string]: AugmentedError<ApiType>;207 };208 ethereum: {209 /**210 * Signature is invalid.211 **/212 InvalidSignature: AugmentedError<ApiType>;213 /**214 * Pre-log is present, therefore transact is not allowed.215 **/216 PreLogExists: AugmentedError<ApiType>;217 /**218 * Generic error219 **/220 [key: string]: AugmentedError<ApiType>;221 };222 evm: {223 /**224 * Not enough balance to perform action225 **/226 BalanceLow: AugmentedError<ApiType>;227 /**228 * Calculating total fee overflowed229 **/230 FeeOverflow: AugmentedError<ApiType>;231 /**232 * Gas price is too low.233 **/234 GasPriceTooLow: AugmentedError<ApiType>;235 /**236 * Nonce is invalid237 **/238 InvalidNonce: AugmentedError<ApiType>;239 /**240 * Calculating total payment overflowed241 **/242 PaymentOverflow: AugmentedError<ApiType>;243 /**244 * Withdraw fee failed245 **/246 WithdrawFailed: AugmentedError<ApiType>;247 /**248 * Generic error249 **/250 [key: string]: AugmentedError<ApiType>;251 };252 evmCoderSubstrate: {253 OutOfFund: AugmentedError<ApiType>;254 OutOfGas: AugmentedError<ApiType>;255 /**256 * Generic error257 **/258 [key: string]: AugmentedError<ApiType>;259 };260 evmContractHelpers: {261 /**262 * This method is only executable by owner263 **/264 NoPermission: AugmentedError<ApiType>;265 /**266 * Generic error267 **/268 [key: string]: AugmentedError<ApiType>;269 };270 evmMigration: {271 AccountIsNotMigrating: AugmentedError<ApiType>;272 AccountNotEmpty: AugmentedError<ApiType>;273 /**274 * Generic error275 **/276 [key: string]: AugmentedError<ApiType>;277 };278 fungible: {279 /**280 * Fungible token does not support nested281 **/282 FungibleDisallowsNesting: AugmentedError<ApiType>;283 /**284 * Tried to set data for fungible item285 **/286 FungibleItemsDontHaveData: AugmentedError<ApiType>;287 /**288 * Not default id passed as TokenId argument289 **/290 FungibleItemsHaveNoId: AugmentedError<ApiType>;291 /**292 * Not Fungible item data used to mint in Fungible collection.293 **/294 NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;295 /**296 * Setting item properties is not allowed297 **/298 SettingPropertiesNotAllowed: AugmentedError<ApiType>;299 /**300 * Generic error301 **/302 [key: string]: AugmentedError<ApiType>;303 };304 nonfungible: {305 /**306 * Unable to burn NFT with children307 **/308 CantBurnNftWithChildren: AugmentedError<ApiType>;309 /**310 * Used amount > 1 with NFT311 **/312 NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;313 /**314 * Not Nonfungible item data used to mint in Nonfungible collection.315 **/316 NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;317 /**318 * Generic error319 **/320 [key: string]: AugmentedError<ApiType>;321 };322 parachainSystem: {323 /**324 * The inherent which supplies the host configuration did not run this block325 **/326 HostConfigurationNotAvailable: AugmentedError<ApiType>;327 /**328 * No code upgrade has been authorized.329 **/330 NothingAuthorized: AugmentedError<ApiType>;331 /**332 * No validation function upgrade is currently scheduled.333 **/334 NotScheduled: AugmentedError<ApiType>;335 /**336 * Attempt to upgrade validation function while existing upgrade pending337 **/338 OverlappingUpgrades: AugmentedError<ApiType>;339 /**340 * Polkadot currently prohibits this parachain from upgrading its validation function341 **/342 ProhibitedByPolkadot: AugmentedError<ApiType>;343 /**344 * The supplied validation function has compiled into a blob larger than Polkadot is345 * willing to run346 **/347 TooBig: AugmentedError<ApiType>;348 /**349 * The given code upgrade has not been authorized.350 **/351 Unauthorized: AugmentedError<ApiType>;352 /**353 * The inherent which supplies the validation data did not run this block354 **/355 ValidationDataNotAvailable: AugmentedError<ApiType>;356 /**357 * Generic error358 **/359 [key: string]: AugmentedError<ApiType>;360 };361 polkadotXcm: {362 /**363 * The location is invalid since it already has a subscription from us.364 **/365 AlreadySubscribed: AugmentedError<ApiType>;366 /**367 * The given location could not be used (e.g. because it cannot be expressed in the368 * desired version of XCM).369 **/370 BadLocation: AugmentedError<ApiType>;371 /**372 * The version of the `Versioned` value used is not able to be interpreted.373 **/374 BadVersion: AugmentedError<ApiType>;375 /**376 * Could not re-anchor the assets to declare the fees for the destination chain.377 **/378 CannotReanchor: AugmentedError<ApiType>;379 /**380 * The destination `MultiLocation` provided cannot be inverted.381 **/382 DestinationNotInvertible: AugmentedError<ApiType>;383 /**384 * The assets to be sent are empty.385 **/386 Empty: AugmentedError<ApiType>;387 /**388 * The message execution fails the filter.389 **/390 Filtered: AugmentedError<ApiType>;391 /**392 * Origin is invalid for sending.393 **/394 InvalidOrigin: AugmentedError<ApiType>;395 /**396 * The referenced subscription could not be found.397 **/398 NoSubscription: AugmentedError<ApiType>;399 /**400 * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps401 * a lack of space for buffering the message.402 **/403 SendFailure: AugmentedError<ApiType>;404 /**405 * Too many assets have been attempted for transfer.406 **/407 TooManyAssets: AugmentedError<ApiType>;408 /**409 * The desired destination was unreachable, generally because there is a no way of routing410 * to it.411 **/412 Unreachable: AugmentedError<ApiType>;413 /**414 * The message's weight could not be determined.415 **/416 UnweighableMessage: AugmentedError<ApiType>;417 /**418 * Generic error419 **/420 [key: string]: AugmentedError<ApiType>;421 };422 refungible: {423 /**424 * Not Refungible item data used to mint in Refungible collection.425 **/426 NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;427 /**428 * Refungible token can't nest other tokens429 **/430 RefungibleDisallowsNesting: AugmentedError<ApiType>;431 /**432 * Refungible token can't be repartitioned by user who isn't owns all pieces433 **/434 RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;435 /**436 * Setting item properties is not allowed437 **/438 SettingPropertiesNotAllowed: AugmentedError<ApiType>;439 /**440 * Maximum refungibility exceeded441 **/442 WrongRefungiblePieces: AugmentedError<ApiType>;443 /**444 * Generic error445 **/446 [key: string]: AugmentedError<ApiType>;447 };448 rmrkCore: {449 CannotAcceptNonOwnedNft: AugmentedError<ApiType>;450 CannotRejectNonOwnedNft: AugmentedError<ApiType>;451 CannotRejectNonPendingNft: AugmentedError<ApiType>;452 CannotSendToDescendentOrSelf: AugmentedError<ApiType>;453 CollectionFullOrLocked: AugmentedError<ApiType>;454 CollectionNotEmpty: AugmentedError<ApiType>;455 CollectionUnknown: AugmentedError<ApiType>;456 CorruptedCollectionType: AugmentedError<ApiType>;457 NftTypeEncodeError: AugmentedError<ApiType>;458 NoAvailableCollectionId: AugmentedError<ApiType>;459 NoAvailableNftId: AugmentedError<ApiType>;460 NoAvailableResourceId: AugmentedError<ApiType>;461 NonTransferable: AugmentedError<ApiType>;462 NoPermission: AugmentedError<ApiType>;463 ResourceDoesntExist: AugmentedError<ApiType>;464 ResourceNotPending: AugmentedError<ApiType>;465 RmrkPropertyIsNotFound: AugmentedError<ApiType>;466 RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;467 RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;468 UnableToDecodeRmrkData: AugmentedError<ApiType>;469 /**470 * Generic error471 **/472 [key: string]: AugmentedError<ApiType>;473 };474 rmrkEquip: {475 BaseDoesntExist: AugmentedError<ApiType>;476 NeedsDefaultThemeFirst: AugmentedError<ApiType>;477 NoAvailableBaseId: AugmentedError<ApiType>;478 NoAvailablePartId: AugmentedError<ApiType>;479 NoEquippableOnFixedPart: AugmentedError<ApiType>;480 PartDoesntExist: AugmentedError<ApiType>;481 PermissionError: AugmentedError<ApiType>;482 /**483 * Generic error484 **/485 [key: string]: AugmentedError<ApiType>;486 };487 scheduler: {488 /**489 * Failed to schedule a call490 **/491 FailedToSchedule: AugmentedError<ApiType>;492 /**493 * Cannot find the scheduled call.494 **/495 NotFound: AugmentedError<ApiType>;496 /**497 * Reschedule failed because it does not change scheduled time.498 **/499 RescheduleNoChange: AugmentedError<ApiType>;500 /**501 * Given target block number is in the past.502 **/503 TargetBlockNumberInPast: AugmentedError<ApiType>;504 /**505 * Generic error506 **/507 [key: string]: AugmentedError<ApiType>;508 };509 structure: {510 /**511 * While iterating over children, encountered breadth limit512 **/513 BreadthLimit: AugmentedError<ApiType>;514 /**515 * While searched for owner, encountered depth limit516 **/517 DepthLimit: AugmentedError<ApiType>;518 /**519 * While searched for owner, got already checked account520 **/521 OuroborosDetected: AugmentedError<ApiType>;522 /**523 * While searched for owner, found token owner by not-yet-existing token524 **/525 TokenNotFound: AugmentedError<ApiType>;526 /**527 * Generic error528 **/529 [key: string]: AugmentedError<ApiType>;530 };531 sudo: {532 /**533 * Sender must be the Sudo account534 **/535 RequireSudo: AugmentedError<ApiType>;536 /**537 * Generic error538 **/539 [key: string]: AugmentedError<ApiType>;540 };541 system: {542 /**543 * The origin filter prevent the call to be dispatched.544 **/545 CallFiltered: AugmentedError<ApiType>;546 /**547 * Failed to extract the runtime version from the new runtime.548 * 549 * Either calling `Core_version` or decoding `RuntimeVersion` failed.550 **/551 FailedToExtractRuntimeVersion: AugmentedError<ApiType>;552 /**553 * The name of specification does not match between the current runtime554 * and the new runtime.555 **/556 InvalidSpecName: AugmentedError<ApiType>;557 /**558 * Suicide called when the account has non-default composite data.559 **/560 NonDefaultComposite: AugmentedError<ApiType>;561 /**562 * There is a non-zero reference count preventing the account from being purged.563 **/564 NonZeroRefCount: AugmentedError<ApiType>;565 /**566 * The specification version is not allowed to decrease between the current runtime567 * and the new runtime.568 **/569 SpecVersionNeedsToIncrease: AugmentedError<ApiType>;570 /**571 * Generic error572 **/573 [key: string]: AugmentedError<ApiType>;574 };575 treasury: {576 /**577 * Proposer's balance is too low.578 **/579 InsufficientProposersBalance: AugmentedError<ApiType>;580 /**581 * No proposal or bounty at that index.582 **/583 InvalidIndex: AugmentedError<ApiType>;584 /**585 * Proposal has not been approved.586 **/587 ProposalNotApproved: AugmentedError<ApiType>;588 /**589 * Too many approvals in the queue.590 **/591 TooManyApprovals: AugmentedError<ApiType>;592 /**593 * Generic error594 **/595 [key: string]: AugmentedError<ApiType>;596 };597 unique: {598 /**599 * Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.600 **/601 CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;602 /**603 * This address is not set as sponsor, use setCollectionSponsor first.604 **/605 ConfirmUnsetSponsorFail: AugmentedError<ApiType>;606 /**607 * Length of items properties must be greater than 0.608 **/609 EmptyArgument: AugmentedError<ApiType>;610 /**611 * Repertition is only supported by refungible collection612 **/613 RepartitionCalledOnNonRefungibleCollection: AugmentedError<ApiType>;614 /**615 * Generic error616 **/617 [key: string]: AugmentedError<ApiType>;618 };619 vesting: {620 /**621 * The vested transfer amount is too low622 **/623 AmountLow: AugmentedError<ApiType>;624 /**625 * Insufficient amount of balance to lock626 **/627 InsufficientBalanceToLock: AugmentedError<ApiType>;628 /**629 * Failed because the maximum vesting schedules was exceeded630 **/631 MaxVestingSchedulesExceeded: AugmentedError<ApiType>;632 /**633 * This account have too many vesting schedules634 **/635 TooManyVestingSchedules: AugmentedError<ApiType>;636 /**637 * Vesting period is zero638 **/639 ZeroVestingPeriod: AugmentedError<ApiType>;640 /**641 * Number of vests is zero642 **/643 ZeroVestingPeriodCount: AugmentedError<ApiType>;644 /**645 * Generic error646 **/647 [key: string]: AugmentedError<ApiType>;648 };649 xcmpQueue: {650 /**651 * Bad overweight index.652 **/653 BadOverweightIndex: AugmentedError<ApiType>;654 /**655 * Bad XCM data.656 **/657 BadXcm: AugmentedError<ApiType>;658 /**659 * Bad XCM origin.660 **/661 BadXcmOrigin: AugmentedError<ApiType>;662 /**663 * Failed to send XCM message.664 **/665 FailedToSend: AugmentedError<ApiType>;666 /**667 * Provided weight is possibly not enough to execute the message.668 **/669 WeightOverLimit: AugmentedError<ApiType>;670 /**671 * Generic error672 **/673 [key: string]: AugmentedError<ApiType>;674 };675 } // AugmentedErrors676} // declare moduletests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -59,14 +59,14 @@
};
common: {
/**
- * * collection_id
+ * Sponsoring allowance was approved.
*
- * * item_id
+ * # Arguments
*
+ * * collection_id - todo:doc flesh out
+ * * item_id
* * sender
- *
* * spender
- *
* * amount
**/
Approved: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
@@ -74,12 +74,10 @@
* New collection was created
*
* # Arguments
- *
- * * collection_id: Globally unique identifier of newly created collection.
*
- * * mode: [CollectionMode] converted into u8.
- *
- * * account_id: Collection owner.
+ * * collection_id - Globally unique identifier of newly created collection.
+ * * mode - [CollectionMode] converted into u8.
+ * * account_id - Collection owner.
**/
CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;
/**
@@ -87,23 +85,36 @@
*
* # Arguments
*
- * * collection_id: Globally unique identifier of collection.
+ * * collection_id - Globally unique identifier of collection that has been destroyed.
**/
CollectionDestroyed: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Collection property was deleted.
+ *
+ * # Arguments
+ *
+ * * collection_id - ID of the collection, whose property was just deleted.
+ * * property_key - Key of the property that was just deleted.
+ **/
CollectionPropertyDeleted: AugmentedEvent<ApiType, [u32, Bytes]>;
+ /**
+ * Collection property was added or edited.
+ *
+ * # Arguments
+ *
+ * * collection_id - ID of the collection, whose property was just set.
+ * * property_key - Key of the property that was just set.
+ **/
CollectionPropertySet: AugmentedEvent<ApiType, [u32, Bytes]>;
/**
* New item was created.
*
* # Arguments
*
- * * collection_id: Id of the collection where item was created.
- *
- * * item_id: Id of an item. Unique within the collection.
- *
- * * recipient: Owner of newly created item
- *
- * * amount: Always 1 for NFT
+ * * collection_id - ID of the collection where the item was created.
+ * * item_id - ID of the item. Unique within the collection.
+ * * recipient - Owner of the newly created item.
+ * * amount - The amount of tokens that were created (always 1 for NFT).
**/
ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
@@ -111,30 +122,51 @@
*
* # Arguments
*
- * * collection_id.
- *
- * * item_id: Identifier of burned NFT.
+ * * collection_id - Identifier of the collection to which the burned NFT belonged.
+ * * item_id - Identifier of burned NFT.
+ * * owner - Which user has destroyed their tokens.
+ * * amount - Amount of tokens that were destroyed (always 1 for NFT).
+ **/
+ ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ /**
+ * Token property permission was added or updated for a collection.
*
- * * owner: which user has destroyed its tokens
+ * # Arguments
*
- * * amount: Always 1 for NFT
+ * * collection_id - ID of the collection, whose permissions were just set/updated.
+ * * property_key - Key of the property of the set/updated permission.
**/
- ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
PropertyPermissionSet: AugmentedEvent<ApiType, [u32, Bytes]>;
- TokenPropertyDeleted: AugmentedEvent<ApiType, [u32, u32, Bytes]>;
- TokenPropertySet: AugmentedEvent<ApiType, [u32, u32, Bytes]>;
/**
- * Item was transferred
+ * Item property was deleted.
*
- * * collection_id: Id of collection to which item is belong
+ * # Arguments
*
- * * item_id: Id of an item
+ * * collection_id - ID of the collection, whose token's property was just deleted.
+ * * item_id - ID of the item, whose property was just deleted.
+ * * property_key - Key of the property that was just deleted.
+ **/
+ TokenPropertyDeleted: AugmentedEvent<ApiType, [u32, u32, Bytes]>;
+ /**
+ * Item property was added or edited.
*
- * * sender: Original owner of item
+ * # Arguments
*
- * * recipient: New owner of item
+ * * collection_id - ID of the collection, whose token's property was just set.
+ * * item_id - ID of the item, whose property was just set.
+ * * property_key - Key of the property that was just set.
+ **/
+ TokenPropertySet: AugmentedEvent<ApiType, [u32, u32, Bytes]>;
+ /**
+ * Item was transferred.
+ *
+ * # Arguments
*
- * * amount: Always 1 for NFT
+ * * collection_id - ID of the collection to which the item belongs.
+ * * item_id - ID of the item transferred.
+ * * sender - Original owner of the item.
+ * * recipient - New owner of the item.
+ * * amount - Amount of tokens that were transferred (always 1 for NFT).
**/
Transfer: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
@@ -442,7 +474,7 @@
};
structure: {
/**
- * Executed call on behalf of token
+ * Executed call on behalf of the token.
**/
Executed: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
/**
@@ -534,7 +566,7 @@
};
unique: {
/**
- * Address was add to allow list
+ * Address was added to the allow list
*
* # Arguments
*
@@ -544,7 +576,7 @@
**/
AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
- * Address was remove from allow list
+ * Address was removed from the allow list
*
* # Arguments
*
@@ -574,7 +606,7 @@
**/
CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
- * Collection limits was set
+ * Collection limits were set
*
* # Arguments
*
@@ -582,7 +614,7 @@
**/
CollectionLimitSet: AugmentedEvent<ApiType, [u32]>;
/**
- * Collection owned was change
+ * Collection owned was changed
*
* # Arguments
*
@@ -591,6 +623,13 @@
* * owner: New owner address.
**/
CollectionOwnedChanged: AugmentedEvent<ApiType, [u32, AccountId32]>;
+ /**
+ * Collection permissions were set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
CollectionPermissionSet: AugmentedEvent<ApiType, [u32]>;
/**
* Collection sponsor was removed
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -69,6 +69,9 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
common: {
+ /**
+ * Amount of collection admins
+ **/
adminAmount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Allowlisted collection users
@@ -82,8 +85,17 @@
* Collection properties
**/
collectionProperties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<UpDataStructsProperties>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * Token permissions of a collection
+ **/
collectionPropertyPermissions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BTreeMap<Bytes, UpDataStructsPropertyPermission>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * The number of created collections. Essentially contains the last collection ID.
+ **/
createdCollectionCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * The number of destroyed collections
+ **/
destroyedCollectionCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Not used by code, exists only to provide some types to metadata
@@ -187,8 +199,17 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
fungible: {
+ /**
+ * todo:doc
+ **/
allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Amount of tokens owned by an account inside a collection.
+ **/
balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Total amount of fungible tokens inside a collection.
+ **/
totalSupply: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
@@ -222,20 +243,41 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
nonfungible: {
+ /**
+ * Amount of tokens owned in a collection.
+ **/
accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
+ * todo:doc
+ **/
allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
- * Used to enumerate tokens owned by account
+ * Used to enumerate tokens owned by account.
**/
owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;
+ /**
+ * Scoped, auxiliary properties of a token, primarily used for on-chain operations.
+ **/
tokenAuxProperties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: UpDataStructsPropertyScope | 'None' | 'Rmrk' | number | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<Bytes>>, [u32, u32, UpDataStructsPropertyScope, Bytes]> & QueryableStorageEntry<ApiType, [u32, u32, UpDataStructsPropertyScope, Bytes]>;
/**
- * Used to enumerate token's children
+ * Used to enumerate token's children.
**/
tokenChildren: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<bool>, [u32, u32, ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [u32, u32, ITuple<[u32, u32]>]>;
+ /**
+ * Token data, used to partially describe a token.
+ **/
tokenData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNonfungibleItemData>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ /**
+ * Key-value pairs, describing the metadata of a token.
+ **/
tokenProperties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<UpDataStructsProperties>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ /**
+ * Amount of burnt tokens in a collection.
+ **/
tokensBurnt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * Total amount of minted tokens in a collection.
+ **/
tokensMinted: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
@@ -400,16 +442,37 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
refungible: {
+ /**
+ * Amount of tokens (not pieces) partially owned by an account within a collection.
+ **/
accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
+ * todo:doc
+ **/
allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg4: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Amount of pieces of a token owned by an account.
+ **/
balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
- * Used to enumerate tokens owned by account
+ * Used to enumerate tokens owned by account.
**/
owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;
+ /**
+ * Token data, used to partially describe a token.
+ **/
tokenData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<PalletRefungibleItemData>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ /**
+ * Amount of tokens burnt in a collection.
+ **/
tokensBurnt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * Total amount of minted tokens in a collection.
+ **/
tokensMinted: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * Amount of pieces a refungible token is split into.
+ **/
totalSupply: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
* Generic query
@@ -598,24 +661,33 @@
* TODO: Off chain worker should remove from this map when collection gets removed
**/
createItemBasket: AugmentedQuery<ApiType, (arg: ITuple<[u32, AccountId32]> | [u32 | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => Observable<Option<u32>>, [ITuple<[u32, AccountId32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, AccountId32]>]>;
+ /**
+ * Last sponsoring of fungible tokens approval in a collection
+ **/
fungibleApproveBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Collection id (controlled?2), owning user (real)
**/
fungibleTransferBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
- * Approval sponsoring
+ * Last sponsoring of NFT approval in a collection
**/
nftApproveBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
* Collection id (controlled?2), token id (controlled?2)
**/
nftTransferBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ /**
+ * Last sponsoring of RFT approval in a collection
+ **/
refungibleApproveBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u32, u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, u32, AccountId32]>;
/**
* Collection id (controlled?2), token id (controlled?2)
**/
reFungibleTransferBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u32, u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, u32, AccountId32]>;
+ /**
+ * Last sponsoring of token property setting // todo:doc rephrase this and the following
+ **/
tokenPropertyBasket: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
* Variable metadata sponsoring
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -629,67 +629,63 @@
};
unique: {
/**
- * Get amount of different user tokens
+ * Get the amount of any user tokens owned by an account
**/
accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
/**
- * Get tokens owned by account
+ * Get tokens owned by an account in a collection
**/
accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;
/**
- * Get admin list
+ * Get the list of admin accounts of a collection
**/
adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
- * Get allowed amount
+ * Get the amount of currently possible sponsored transactions on a token for the fee to be taken off a sponsor
**/
allowance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, sender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
/**
- * Check if user is allowed to use collection
+ * Check if a user is allowed to operate within a collection
**/
allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;
/**
- * Get allowlist
+ * Get the list of accounts allowed to operate within a collection
**/
allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
- * Get amount of specific account token
+ * Get the amount of a specific token owned by an account
**/
balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
/**
- * Get collection by specified id
+ * Get a collection by the specified ID
**/
collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsRpcCollection>>>;
/**
- * Get collection properties
+ * Get collection properties, optionally limited to the provided keys
**/
collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
/**
- * Get collection stats
+ * Get chain stats about collections
**/
collectionStats: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<UpDataStructsCollectionStats>>;
/**
- * Get tokens contained in collection
+ * Get tokens contained within a collection
**/
collectionTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;
- /**
- * Get token constant metadata
- **/
- constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;
/**
* Get effective collection limits
**/
effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;
/**
- * Get last token id
+ * Get the last token ID created in a collection
**/
lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
/**
- * Get number of blocks when sponsored transaction is available
+ * Get the number of blocks until sponsoring a transaction is available
**/
nextSponsored: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
/**
- * Get property permissions
+ * Get property permissions, optionally limited to the provided keys
**/
propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;
/**
@@ -697,37 +693,33 @@
**/
tokenChildren: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenChild>>>;
/**
- * Get token data
+ * Get token data, including properties, optionally limited to the provided keys, and total pieces for an RFT
**/
tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;
/**
- * Check if token exists
+ * Check if the token exists
**/
tokenExists: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;
/**
- * Get token owner
+ * Get the token owner
**/
tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
- * Get token properties
+ * Get token properties, optionally limited to the provided keys
**/
tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
/**
- * Get token owner, in case of nested token - find parent recursive
+ * Get the topmost token owner in the hierarchy of a possibly nested token
**/
topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
- * Get total pieces of token
+ * Get the total amount of pieces of an RFT
**/
totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;
/**
- * Get amount of unique collection tokens
+ * Get the amount of distinctive tokens present in a collection
**/
totalSupply: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
- /**
- * Get token variable metadata
- **/
- variableMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;
};
web3: {
/**
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -730,21 +730,20 @@
};
unique: {
/**
- * Adds an admin of the Collection.
+ * Adds an admin of the collection.
* NFT Collection can be controlled by multiple admin addresses (some which can also be servers, for example). Admins can issue and burn NFTs, as well as add and remove other admins, but cannot change NFT or Collection ownership.
*
* # Permissions
*
- * * Collection Owner.
- * * Collection Admin.
+ * * Collection Owner
+ * * Collection Admin
*
* # Arguments
*
- * * collection_id: ID of the Collection to add admin for.
- *
- * * new_admin_id: Address of new admin to add.
+ * * collection_id - ID of the Collection to add admin for.
+ * * new_admin - Address of new admin to add.
**/
- addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdmin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Add an address to allow list.
*
@@ -756,7 +755,6 @@
* # Arguments
*
* * collection_id.
- *
* * address.
**/
addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
@@ -771,15 +769,13 @@
*
* # Arguments
*
- * * approved: Address that is approved to transfer this NFT or zero (if needed to remove approval).
- *
+ * * approved - Address that is approved to transfer this NFT or zero (if needed to remove approval).
* * collection_id.
- *
- * * item_id: ID of the item.
+ * * item_id - ID of the item.
**/
approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
/**
- * Destroys a concrete instance of NFT on behalf of the owner
+ * Destroy a concrete instance of NFT on behalf of the owner.
* See also: [`approve`]
*
* # Permissions
@@ -790,27 +786,24 @@
*
* # Arguments
*
- * * collection_id: ID of the collection.
- *
- * * item_id: ID of NFT to burn.
- *
- * * from: owner of item
+ * * collection_id - ID of the collection.
+ * * item_id - ID of NFT to burn.
+ * * from - The owner of the item from whom it is taken away.
**/
burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;
/**
- * Destroys a concrete instance of NFT.
+ * Destroy a concrete instance of NFT.
*
* # Permissions
*
- * * Collection Owner.
- * * Collection Admin.
- * * Current NFT Owner.
+ * * Collection Owner
+ * * Collection Admin
+ * * Current NFT Owner
*
* # Arguments
- *
- * * collection_id: ID of the collection.
*
- * * item_id: ID of NFT to burn.
+ * * collection_id - ID of the collection.
+ * * item_id - ID of NFT to burn.
**/
burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
/**
@@ -818,19 +811,20 @@
*
* # Permissions
*
- * * Collection Owner.
+ * * Collection Owner
*
* # Arguments
*
* * collection_id.
- *
* * new_owner.
**/
changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;
/**
+ * Confirm own sponsorship of a collection.
+ *
* # Permissions
*
- * * Sponsor.
+ * * Sponsor-to-be
*
* # Arguments
*
@@ -847,27 +841,31 @@
* # Arguments
*
* * collection_name: UTF-16 string with collection name (limit 64 characters), will be stored as zero-terminated.
- *
- * * collection_description: UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.
- *
- * * token_prefix: UTF-8 string with token prefix.
- *
- * * mode: [CollectionMode] collection type and type dependent data.
+ * * collection_description - UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.
+ * * token_prefix - UTF-8 string with token prefix.
+ * * mode - [CollectionMode] collection type and type dependent data.
**/
createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;
/**
- * This method creates a collection
+ * Create a collection with explicit parameters.
+ * Prefer it to the deprecated [`created_collection`] method.
+ *
+ * # Permissions
+ *
+ * * Anyone.
+ *
+ * # Arguments
*
- * Prefer it to deprecated [`created_collection`] method
+ * * data: explicit create-collection data.
**/
createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; pendingSponsor?: any; limits?: any; permissions?: any; tokenPropertyPermissions?: any; properties?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;
/**
- * This method creates a concrete instance of NFT Collection created with CreateCollection method.
+ * Create a concrete instance of NFT Collection created with CreateCollection method.
*
* # Permissions
*
- * * Collection Owner.
- * * Collection Admin.
+ * * Collection Owner
+ * * Collection Admin
* * Anyone if
* * Allow List is enabled, and
* * Address is added to allow list, and
@@ -875,20 +873,18 @@
*
* # Arguments
*
- * * collection_id: ID of the collection.
- *
- * * owner: Address, initial owner of the NFT.
- *
- * * data: Token data to store on chain.
+ * * collection_id - ID of the collection.
+ * * owner - Address, initial owner of the NFT.
+ * * data - Token data to store on chain.
**/
createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;
/**
- * This method creates multiple items in a collection created with CreateCollection method.
+ * Create multiple items in a collection created with CreateCollection method.
*
* # Permissions
*
- * * Collection Owner.
- * * Collection Admin.
+ * * Collection Owner
+ * * Collection Admin
* * Anyone if
* * Allow List is enabled, and
* * Address is added to allow list, and
@@ -896,26 +892,70 @@
*
* # Arguments
*
- * * collection_id: ID of the collection.
+ * * collection_id - ID of the collection.
+ * * owner - Address, initial owner of the NFT.
+ * * items_data - Array items properties. Each property is an array of bytes itself, see [`create_item`].
+ **/
+ createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;
+ /**
+ * Create multiple items inside a collection with explicitly specified initial parameters.
*
- * * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].
+ * # Permissions
*
- * * owner: Address, initial owner of the NFT.
+ * * Collection Owner
+ * * Collection Admin
+ * * Anyone if
+ * * Allow List is enabled, and
+ * * Address is added to allow list, and
+ * * MintPermission is enabled (see SetMintPermission method)
+ *
+ * # Arguments
+ *
+ * * collection_id - ID of the collection.
+ * * data - Explicit item creation data.
**/
- createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;
createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;
+ /**
+ * Delete specified collection properties.
+ *
+ * # Permissions
+ *
+ * * Collection Owner
+ * * Collection Admin
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * property_keys - Vector of keys of the properties to be deleted.
+ **/
deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;
+ /**
+ * Delete specified token properties.
+ *
+ * # Permissions
+ *
+ * * Depends on collection's token property permissions and specified property mutability:
+ * * Collection Owner
+ * * Collection Admin
+ * * Token Owner
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * token_id.
+ * * property_keys - Vector of keys of the properties to be deleted.
+ **/
deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;
/**
- * Destroys collection if no tokens within this collection
+ * Destroy the collection if no tokens exist within.
*
* # Permissions
*
- * * Collection Owner.
+ * * Collection Owner
*
* # Arguments
*
- * * collection_id: collection to destroy.
+ * * collection_id - collection to destroy.
**/
destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
@@ -923,14 +963,13 @@
*
* # Permissions
*
- * * Collection Owner.
- * * Collection Admin.
+ * * Collection Owner
+ * * Collection Admin
*
* # Arguments
*
- * * collection_id: ID of the Collection to remove admin for.
- *
- * * account_id: Address of admin to remove.
+ * * collection_id - ID of the Collection to remove admin for.
+ * * account_id - Address of admin to remove.
**/
removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
@@ -938,7 +977,7 @@
*
* # Permissions
*
- * * Collection owner.
+ * * Collection Owner
*
* # Arguments
*
@@ -956,40 +995,121 @@
* # Arguments
*
* * collection_id.
- *
* * address.
**/
removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
- repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, token: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
+ /**
+ * Re-partition a refungible token, while owning all of its parts.
+ *
+ * # Permissions
+ *
+ * * Token Owner (must own every part)
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * token_id - ID of the RFT.
+ * * amount - New number of parts into which the token shall be partitioned.
+ **/
+ repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
+ /**
+ * Set specific limits of a collection. Empty, or None fields mean chain default.
+ *
+ * # Permissions
+ *
+ * * Collection Owner
+ * * Collection Admin
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * new_limit - New limits of the collection. They will overwrite the current ones.
+ **/
setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;
- setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;
+ /**
+ * Set specific permissions of a collection. Empty, or None fields mean chain default.
+ *
+ * # Permissions
+ *
+ * * Collection Owner
+ * * Collection Admin
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * new_permission - New permissions of the collection. They will overwrite the current ones.
+ **/
+ setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newPermission: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;
+ /**
+ * Add or change collection properties.
+ *
+ * # Permissions
+ *
+ * * Collection Owner
+ * * Collection Admin
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * properties - Vector of key-value pairs stored as the collection's metadata. Keys support Latin letters, `-`, `_`, and `.` as symbols.
+ **/
setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;
/**
+ * Set (invite) a new collection sponsor. If successful, confirmation from the sponsor-to-be will be pending.
+ *
* # Permissions
*
* * Collection Owner
+ * * Collection Admin
*
* # Arguments
*
* * collection_id.
- *
* * new_sponsor.
**/
setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;
+ /**
+ * Add or change token properties according to collection's permissions.
+ *
+ * # Permissions
+ *
+ * * Depends on collection's token property permissions and specified property mutability:
+ * * Collection Owner
+ * * Collection Admin
+ * * Token Owner
+ *
+ * # Arguments
+ *
+ * * collection_id.
+ * * token_id.
+ * * properties - Vector of key-value pairs stored as the token's metadata. Keys support Latin letters, `-`, `_`, and `.` as symbols.
+ **/
setTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<UpDataStructsProperty>]>;
- setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec<UpDataStructsPropertyKeyPermission> | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsPropertyKeyPermission>]>;
/**
- * Set transfers_enabled value for particular collection
+ * Add or change token property permissions of a collection.
*
* # Permissions
*
- * * Collection Owner.
+ * * Collection Owner
+ * * Collection Admin
*
* # Arguments
*
- * * collection_id: ID of the collection.
+ * * collection_id.
+ * * property_permissions - Vector of permissions for property keys. Keys support Latin letters, `-`, `_`, and `.` as symbols.
+ **/
+ setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec<UpDataStructsPropertyKeyPermission> | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsPropertyKeyPermission>]>;
+ /**
+ * Set transfers_enabled value for particular collection.
+ *
+ * # Permissions
+ *
+ * * Collection Owner
+ *
+ * # Arguments
*
- * * value: New flag value.
+ * * collection_id - ID of the collection.
+ * * value - New flag value.
**/
setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;
/**
@@ -1003,16 +1123,16 @@
*
* # Arguments
*
- * * recipient: Address of token recipient.
+ * * recipient - Address of token recipient.
*
* * collection_id.
*
- * * item_id: ID of the item
+ * * item_id - ID of the item
* * Non-Fungible Mode: Required.
* * Fungible Mode: Ignored.
* * Re-Fungible Mode: Required.
*
- * * value: Amount to transfer.
+ * * value - Amount to transfer.
* * Non-Fungible Mode: Ignored
* * Fungible Mode: Must specify transferred amount
* * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)
@@ -1022,22 +1142,19 @@
* Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.
*
* # Permissions
+ *
* * Collection Owner
* * Collection Admin
* * Current NFT owner
* * Address approved by current NFT owner
*
* # Arguments
- *
- * * from: Address that owns token.
- *
- * * recipient: Address of token recipient.
*
+ * * from - Address that currently owns the token.
+ * * recipient - Address of the new token-owner-to-be.
* * collection_id.
- *
- * * item_id: ID of the item.
- *
- * * value: Amount to transfer.
+ * * item_id - ID of the item to be transferred.
+ * * value - Amount to transfer.
**/
transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
/**
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1672,7 +1672,7 @@
readonly isAddCollectionAdmin: boolean;
readonly asAddCollectionAdmin: {
readonly collectionId: u32;
- readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
+ readonly newAdmin: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveCollectionAdmin: boolean;
readonly asRemoveCollectionAdmin: {
@@ -1784,12 +1784,12 @@
readonly isSetCollectionPermissions: boolean;
readonly asSetCollectionPermissions: {
readonly collectionId: u32;
- readonly newLimit: UpDataStructsCollectionPermissions;
+ readonly newPermission: UpDataStructsCollectionPermissions;
} & Struct;
readonly isRepartition: boolean;
readonly asRepartition: {
readonly collectionId: u32;
- readonly token: u32;
+ readonly tokenId: u32;
readonly amount: u128;
} & Struct;
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1269,7 +1269,7 @@
},
add_collection_admin: {
collectionId: 'u32',
- newAdminId: 'PalletEvmAccountBasicCrossAccountIdRepr',
+ newAdmin: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
remove_collection_admin: {
collectionId: 'u32',
@@ -1361,11 +1361,11 @@
},
set_collection_permissions: {
collectionId: 'u32',
- newLimit: 'UpDataStructsCollectionPermissions',
+ newPermission: 'UpDataStructsCollectionPermissions',
},
repartition: {
collectionId: 'u32',
- token: 'u32',
+ tokenId: 'u32',
amount: 'u128'
}
}
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -1385,7 +1385,7 @@
readonly isAddCollectionAdmin: boolean;
readonly asAddCollectionAdmin: {
readonly collectionId: u32;
- readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
+ readonly newAdmin: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveCollectionAdmin: boolean;
readonly asRemoveCollectionAdmin: {
@@ -1497,12 +1497,12 @@
readonly isSetCollectionPermissions: boolean;
readonly asSetCollectionPermissions: {
readonly collectionId: u32;
- readonly newLimit: UpDataStructsCollectionPermissions;
+ readonly newPermission: UpDataStructsCollectionPermissions;
} & Struct;
readonly isRepartition: boolean;
readonly asRepartition: {
readonly collectionId: u32;
- readonly token: u32;
+ readonly tokenId: u32;
readonly amount: u128;
} & Struct;
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';