git.delta.rocks / unique-network / refs/commits / c52da049caab

difftreelog

fix regenerate test types

Daniel Shiposha2022-07-04parent: #2e062b9.patch.diff
in: master

2 files changed

modifiedtests/src/interfaces/augment-api-events.tsdiffbeforeafterboth
13 /**13 /**
14 * A balance was set by root.14 * A balance was set by root.
15 **/15 **/
16 BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;16 BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;
17 /**17 /**
18 * Some amount was deposited (e.g. for transaction fees).18 * Some amount was deposited (e.g. for transaction fees).
19 **/19 **/
20 Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;20 Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;
21 /**21 /**
22 * An account was removed whose balance was non-zero but below ExistentialDeposit,22 * An account was removed whose balance was non-zero but below ExistentialDeposit,
23 * resulting in an outright loss.23 * resulting in an outright loss.
24 **/24 **/
25 DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;25 DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;
26 /**26 /**
27 * An account was created with some free balance.27 * An account was created with some free balance.
28 **/28 **/
29 Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;29 Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;
30 /**30 /**
31 * Some balance was reserved (moved from free to reserved).31 * Some balance was reserved (moved from free to reserved).
32 **/32 **/
33 Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;33 Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
34 /**34 /**
35 * Some balance was moved from the reserve of the first account to the second account.35 * Some balance was moved from the reserve of the first account to the second account.
36 * Final argument indicates the destination balance type.36 * Final argument indicates the destination balance type.
37 **/37 **/
38 ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;38 ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;
39 /**39 /**
40 * Some amount was removed from the account (e.g. for misbehavior).40 * Some amount was removed from the account (e.g. for misbehavior).
41 **/41 **/
42 Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;42 Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
43 /**43 /**
44 * Transfer succeeded.44 * Transfer succeeded.
45 **/45 **/
46 Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;46 Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;
47 /**47 /**
48 * Some balance was unreserved (moved from reserved to free).48 * Some balance was unreserved (moved from reserved to free).
49 **/49 **/
50 Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;50 Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
51 /**51 /**
52 * Some amount was withdrawn from the account (e.g. for transaction fees).52 * Some amount was withdrawn from the account (e.g. for transaction fees).
53 **/53 **/
54 Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;54 Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;
55 /**55 /**
56 * Generic event56 * Generic event
57 **/57 **/
167 /**167 /**
168 * Downward message executed with the given outcome.168 * Downward message executed with the given outcome.
169 **/169 **/
170 ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;170 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
171 /**171 /**
172 * Downward message is invalid XCM.172 * Downward message is invalid XCM.
173 **/173 **/
174 InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;174 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;
175 /**175 /**
176 * Downward message is overweight and was placed in the overweight queue.176 * Downward message is overweight and was placed in the overweight queue.
177 **/177 **/
178 OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;178 OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
179 /**179 /**
180 * Downward message from the overweight queue was executed.180 * Downward message from the overweight queue was executed.
181 **/181 **/
182 OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;182 OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
183 /**183 /**
184 * Downward message is unsupported version of XCM.184 * Downward message is unsupported version of XCM.
185 **/185 **/
186 UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;186 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;
187 /**187 /**
188 * The weight limit for handling downward messages was reached.188 * The weight limit for handling downward messages was reached.
189 **/189 **/
190 WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;190 WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
191 /**191 /**
192 * Generic event192 * Generic event
193 **/193 **/
241 /**241 /**
242 * Downward messages were processed using the given weight.242 * Downward messages were processed using the given weight.
243 **/243 **/
244 DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;244 DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;
245 /**245 /**
246 * Some downward messages have been received and will be processed.246 * Some downward messages have been received and will be processed.
247 **/247 **/
248 DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;248 DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;
249 /**249 /**
250 * An upgrade has been authorized.250 * An upgrade has been authorized.
251 **/251 **/
252 UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;252 UpgradeAuthorized: AugmentedEvent<ApiType, [H256]>;
253 /**253 /**
254 * The validation function was applied as of the contained relay chain block number.254 * The validation function was applied as of the contained relay chain block number.
255 **/255 **/
256 ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: u32 }>;256 ValidationFunctionApplied: AugmentedEvent<ApiType, [u32]>;
257 /**257 /**
258 * The relay-chain aborted the upgrade process.258 * The relay-chain aborted the upgrade process.
259 **/259 **/
390 [key: string]: AugmentedEvent<ApiType>;390 [key: string]: AugmentedEvent<ApiType>;
391 };391 };
392 rmrkCore: {392 rmrkCore: {
393 CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;393 CollectionCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;
394 CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;394 CollectionDestroyed: AugmentedEvent<ApiType, [AccountId32, u32]>;
395 CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;395 CollectionLocked: AugmentedEvent<ApiType, [AccountId32, u32]>;
396 IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;396 IssuerChanged: AugmentedEvent<ApiType, [AccountId32, AccountId32, u32]>;
397 NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;397 NFTAccepted: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32]>;
398 NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;398 NFTBurned: AugmentedEvent<ApiType, [AccountId32, u32]>;
399 NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;399 NftMinted: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;
400 NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;400 NFTRejected: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;
401 NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;401 NFTSent: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32, bool]>;
402 PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;402 PrioritySet: AugmentedEvent<ApiType, [u32, u32]>;
403 PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;403 PropertySet: AugmentedEvent<ApiType, [u32, Option<u32>, Bytes, Bytes]>;
404 ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;404 ResourceAccepted: AugmentedEvent<ApiType, [u32, u32]>;
405 ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;405 ResourceAdded: AugmentedEvent<ApiType, [u32, u32]>;
406 ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;406 ResourceRemoval: AugmentedEvent<ApiType, [u32, u32]>;
407 ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;407 ResourceRemovalAccepted: AugmentedEvent<ApiType, [u32, u32]>;
408 /**408 /**
409 * Generic event409 * Generic event
410 **/410 **/
411 [key: string]: AugmentedEvent<ApiType>;411 [key: string]: AugmentedEvent<ApiType>;
412 };412 };
413 rmrkEquip: {413 rmrkEquip: {
414 BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;414 BaseCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;
415 EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: u32 }>;415 EquippablesUpdated: AugmentedEvent<ApiType, [u32, u32]>;
416 /**416 /**
417 * Generic event417 * Generic event
418 **/418 **/
422 /**422 /**
423 * The call for the provided hash was not found so the task has been aborted.423 * The call for the provided hash was not found so the task has been aborted.
424 **/424 **/
425 CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;425 CallLookupFailed: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, FrameSupportScheduleLookupError]>;
426 /**426 /**
427 * Canceled some task.427 * Canceled some task.
428 **/428 **/
429 Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;429 Canceled: AugmentedEvent<ApiType, [u32, u32]>;
430 /**430 /**
431 * Dispatched some task.431 * Dispatched some task.
432 **/432 **/
433 Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;433 Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, Result<Null, SpRuntimeDispatchError>]>;
434 /**434 /**
435 * Scheduled some task.435 * Scheduled some task.
436 **/436 **/
437 Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;437 Scheduled: AugmentedEvent<ApiType, [u32, u32]>;
438 /**438 /**
439 * Generic event439 * Generic event
440 **/440 **/
454 /**454 /**
455 * The \[sudoer\] just switched identity; the old key is supplied if one existed.455 * The \[sudoer\] just switched identity; the old key is supplied if one existed.
456 **/456 **/
457 KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;457 KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;
458 /**458 /**
459 * A sudo just took place. \[result\]459 * A sudo just took place. \[result\]
460 **/460 **/
461 Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;461 Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
462 /**462 /**
463 * A sudo just took place. \[result\]463 * A sudo just took place. \[result\]
464 **/464 **/
465 SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;465 SudoAsDone: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
466 /**466 /**
467 * Generic event467 * Generic event
468 **/468 **/
476 /**476 /**
477 * An extrinsic failed.477 * An extrinsic failed.
478 **/478 **/
479 ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;479 ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;
480 /**480 /**
481 * An extrinsic completed successfully.481 * An extrinsic completed successfully.
482 **/482 **/
483 ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;483 ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;
484 /**484 /**
485 * An account was reaped.485 * An account was reaped.
486 **/486 **/
487 KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;487 KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;
488 /**488 /**
489 * A new account was created.489 * A new account was created.
490 **/490 **/
491 NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;491 NewAccount: AugmentedEvent<ApiType, [AccountId32]>;
492 /**492 /**
493 * On on-chain remark happened.493 * On on-chain remark happened.
494 **/494 **/
495 Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;495 Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;
496 /**496 /**
497 * Generic event497 * Generic event
498 **/498 **/
502 /**502 /**
503 * Some funds have been allocated.503 * Some funds have been allocated.
504 **/504 **/
505 Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: AccountId32 }>;505 Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;
506 /**506 /**
507 * Some of our funds have been burnt.507 * Some of our funds have been burnt.
508 **/508 **/
509 Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;509 Burnt: AugmentedEvent<ApiType, [u128]>;
510 /**510 /**
511 * Some funds have been deposited.511 * Some funds have been deposited.
512 **/512 **/
513 Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;513 Deposit: AugmentedEvent<ApiType, [u128]>;
514 /**514 /**
515 * New proposal.515 * New proposal.
516 **/516 **/
517 Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;517 Proposed: AugmentedEvent<ApiType, [u32]>;
518 /**518 /**
519 * A proposal was rejected; funds were slashed.519 * A proposal was rejected; funds were slashed.
520 **/520 **/
521 Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;521 Rejected: AugmentedEvent<ApiType, [u32, u128]>;
522 /**522 /**
523 * Spending has finished; this is the amount that rolls over until next spend.523 * Spending has finished; this is the amount that rolls over until next spend.
524 **/524 **/
525 Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;525 Rollover: AugmentedEvent<ApiType, [u128]>;
526 /**526 /**
527 * We have ended a spend period and will now allocate funds.527 * We have ended a spend period and will now allocate funds.
528 **/528 **/
529 Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;529 Spending: AugmentedEvent<ApiType, [u128]>;
530 /**530 /**
531 * Generic event531 * Generic event
532 **/532 **/
629 /**629 /**
630 * Claimed vesting.630 * Claimed vesting.
631 **/631 **/
632 Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;632 Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;
633 /**633 /**
634 * Added new vesting schedule.634 * Added new vesting schedule.
635 **/635 **/
636 VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;636 VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;
637 /**637 /**
638 * Updated vesting schedules.638 * Updated vesting schedules.
639 **/639 **/
640 VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;640 VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;
641 /**641 /**
642 * Generic event642 * Generic event
643 **/643 **/
modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -907,7 +907,7 @@
       deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;
       deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;
       /**
-       * **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.
+       * Destroys collection if no tokens within this collection
        * 
        * # Permissions
        *