git.delta.rocks / unique-network / refs/commits / 788534ba419e

difftreelog

Fix total pieces tests

Trubnikov Sergey2022-07-06parent: #edc0202.patch.diff
in: master

6 files changed

modifiedtests/src/createItem.test.tsdiffbeforeafterboth
118 }118 }
119119
120 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;120 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;
121 expect(totalPieces.isSome).to.be.true;
122 expect(totalPieces.unwrap().toBigInt()).to.be.eq(amountPieces);121 expect(totalPieces.toBigInt()).to.be.eq(amountPieces);
123 });122 });
124 });123 });
125124
143 }142 }
144143
145 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;144 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;
146 expect(totalPieces.isSome).to.be.true;
147 expect(totalPieces.unwrap().toBigInt()).to.be.eq(amountPieces);145 expect(totalPieces.toBigInt()).to.be.eq(amountPieces);
148 });146 });
149 });147 });
150148
169 }167 }
170168
171 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;169 const totalPieces = (await api.rpc.unique.tokenData(collectionId, tokenId, [])).pieces;
172 expect(totalPieces.isSome).to.be.true;
173 expect(totalPieces.unwrap().toBigInt()).to.be.eq(amountPieces);170 expect(totalPieces.toBigInt()).to.be.eq(amountPieces);
174 });171 });
175 });172 });
176});173});
255 const invalidTokenId = 1000_000;252 const invalidTokenId = 1000_000;
256 253
257 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;254 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;
258 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.isNone).to.be.true;255 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.toBigInt()).to.be.eq(0n);
259 });256 });
260 });257 });
261258
266 const invalidTokenId = 1000_000;263 const invalidTokenId = 1000_000;
267 264
268 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;265 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;
269 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.isNone).to.be.true;266 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.toBigInt()).to.be.eq(0n);
270 });267 });
271 });268 });
272269
277 const invalidTokenId = 1000_000;274 const invalidTokenId = 1000_000;
278 275
279 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;276 expect((await api.rpc.unique.totalPieces(collectionId, invalidTokenId)).isNone).to.be.true;
280 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.isNone).to.be.true;277 expect((await api.rpc.unique.tokenData(collectionId, invalidTokenId, [])).pieces.toBigInt()).to.be.eq(0n);
281 });278 });
282 });279 });
283});280});
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, [AccountId32, u128, u128]>;16 BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: 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, [AccountId32, u128]>;20 Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: 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, [AccountId32, u128]>;25 DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: 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, [AccountId32, u128]>;29 Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: 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, [AccountId32, u128]>;33 Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: 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, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;38 ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: 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, [AccountId32, u128]>;42 Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
43 /**43 /**
44 * Transfer succeeded.44 * Transfer succeeded.
45 **/45 **/
46 Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;46 Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: 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, [AccountId32, u128]>;50 Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: 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, [AccountId32, u128]>;54 Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: 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, [U8aFixed, XcmV2TraitsOutcome]>;170 ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;
171 /**171 /**
172 * Downward message is invalid XCM.172 * Downward message is invalid XCM.
173 **/173 **/
174 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;174 InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: 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, [U8aFixed, u64, u64]>;178 OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: 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, [u64, u64]>;182 OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: 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, [U8aFixed]>;186 UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: 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, [U8aFixed, u64, u64]>;190 WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: 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, [u64, H256]>;244 DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: 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, [u32]>;248 DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;
249 /**249 /**
250 * An upgrade has been authorized.250 * An upgrade has been authorized.
251 **/251 **/
252 UpgradeAuthorized: AugmentedEvent<ApiType, [H256]>;252 UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: 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, [u32]>;256 ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: 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, [AccountId32, u32]>;393 CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
394 CollectionDestroyed: AugmentedEvent<ApiType, [AccountId32, u32]>;394 CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
395 CollectionLocked: AugmentedEvent<ApiType, [AccountId32, u32]>;395 CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
396 IssuerChanged: AugmentedEvent<ApiType, [AccountId32, AccountId32, u32]>;396 IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;
397 NFTAccepted: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32]>;397 NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;
398 NFTBurned: AugmentedEvent<ApiType, [AccountId32, u32]>;398 NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;
399 NftMinted: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;399 NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;
400 NFTRejected: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;400 NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;
401 NFTSent: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32, bool]>;401 NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;
402 PrioritySet: AugmentedEvent<ApiType, [u32, u32]>;402 PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;
403 PropertySet: AugmentedEvent<ApiType, [u32, Option<u32>, Bytes, Bytes]>;403 PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;
404 ResourceAccepted: AugmentedEvent<ApiType, [u32, u32]>;404 ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
405 ResourceAdded: AugmentedEvent<ApiType, [u32, u32]>;405 ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
406 ResourceRemoval: AugmentedEvent<ApiType, [u32, u32]>;406 ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
407 ResourceRemovalAccepted: AugmentedEvent<ApiType, [u32, u32]>;407 ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: 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, [AccountId32, u32]>;414 BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;
415 EquippablesUpdated: AugmentedEvent<ApiType, [u32, u32]>;415 EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: 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, [ITuple<[u32, u32]>, Option<U8aFixed>, FrameSupportScheduleLookupError]>;425 CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;
426 /**426 /**
427 * Canceled some task.427 * Canceled some task.
428 **/428 **/
429 Canceled: AugmentedEvent<ApiType, [u32, u32]>;429 Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;
430 /**430 /**
431 * Dispatched some task.431 * Dispatched some task.
432 **/432 **/
433 Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, Result<Null, SpRuntimeDispatchError>]>;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> }>;
434 /**434 /**
435 * Scheduled some task.435 * Scheduled some task.
436 **/436 **/
437 Scheduled: AugmentedEvent<ApiType, [u32, u32]>;437 Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: 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, [Option<AccountId32>]>;457 KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
458 /**458 /**
459 * A sudo just took place. \[result\]459 * A sudo just took place. \[result\]
460 **/460 **/
461 Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;461 Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: 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, [Result<Null, SpRuntimeDispatchError>]>;465 SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: 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, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;479 ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
480 /**480 /**
481 * An extrinsic completed successfully.481 * An extrinsic completed successfully.
482 **/482 **/
483 ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;483 ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;
484 /**484 /**
485 * An account was reaped.485 * An account was reaped.
486 **/486 **/
487 KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;487 KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
488 /**488 /**
489 * A new account was created.489 * A new account was created.
490 **/490 **/
491 NewAccount: AugmentedEvent<ApiType, [AccountId32]>;491 NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
492 /**492 /**
493 * On on-chain remark happened.493 * On on-chain remark happened.
494 **/494 **/
495 Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;495 Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: 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, [u32, u128, AccountId32]>;505 Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: 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, [u128]>;509 Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;
510 /**510 /**
511 * Some funds have been deposited.511 * Some funds have been deposited.
512 **/512 **/
513 Deposit: AugmentedEvent<ApiType, [u128]>;513 Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
514 /**514 /**
515 * New proposal.515 * New proposal.
516 **/516 **/
517 Proposed: AugmentedEvent<ApiType, [u32]>;517 Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: 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, [u32, u128]>;521 Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: 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, [u128]>;525 Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: 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, [u128]>;529 Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
530 /**530 /**
531 * Generic event531 * Generic event
532 **/532 **/
629 /**629 /**
630 * Claimed vesting.630 * Claimed vesting.
631 **/631 **/
632 Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;632 Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
633 /**633 /**
634 * Added new vesting schedule.634 * Added new vesting schedule.
635 **/635 **/
636 VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;636 VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;
637 /**637 /**
638 * Updated vesting schedules.638 * Updated vesting schedules.
639 **/639 **/
640 VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;640 VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
641 /**641 /**
642 * Generic event642 * Generic event
643 **/643 **/
modifiedtests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth
716 * Get token owner, in case of nested token - find parent recursive716 * Get token owner, in case of nested token - find parent recursive
717 **/717 **/
718 topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;718 topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;
719 /**
720 * Get total pieces of token
721 **/
722 totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;
719 /**723 /**
720 * Get amount of unique collection tokens724 * Get amount of unique collection tokens
721 **/725 **/
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
2561export interface UpDataStructsTokenData extends Struct {2561export interface UpDataStructsTokenData extends Struct {
2562 readonly properties: Vec<UpDataStructsProperty>;2562 readonly properties: Vec<UpDataStructsProperty>;
2563 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;2563 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
2564 readonly pieces: u128;
2564}2565}
25652566
2566/** @name XcmDoubleEncoded */2567/** @name XcmDoubleEncoded */
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
2859 **/2859 **/
2860 UpDataStructsTokenData: {2860 UpDataStructsTokenData: {
2861 properties: 'Vec<UpDataStructsProperty>',2861 properties: 'Vec<UpDataStructsProperty>',
2862 owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>'2862 owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>',
2863 pieces: 'u128'
2863 },2864 },
2864 /**2865 /**
2865 * Lookup376: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>2866 * Lookup376: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
2977 export interface UpDataStructsTokenData extends Struct {2977 export interface UpDataStructsTokenData extends Struct {
2978 readonly properties: Vec<UpDataStructsProperty>;2978 readonly properties: Vec<UpDataStructsProperty>;
2979 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;2979 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
2980 readonly pieces: u128;
2980 }2981 }
29812982
2982 /** @name UpDataStructsRpcCollection (376) */2983 /** @name UpDataStructsRpcCollection (376) */