Skip to content

Commit 3ea249b

Browse files
fix: events: should use issuer rather than ctr as per reference implementation
1 parent ad56e5f commit 3ea249b

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

neps/nep-0393.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ type Nep393Event {
475475

476476
/// An event emitted by the Registry when new SBT is created.
477477
type Mint {
478-
ctr: AccountId; // SBT Contract minting the tokens
478+
issuer: AccountId; // SBT Contract minting the tokens
479479
tokens: (AccountId, u64[])[]; // list of pairs (token owner, TokenId[])
480480
}
481481

@@ -486,15 +486,15 @@ type Mint {
486486
/// token IDs).
487487
/// Must be emitted by an SBT registry.
488488
type Recover {
489-
ctr: AccountId // SBT Contract recovering the tokens
489+
issuer: AccountId // SBT Contract recovering the tokens
490490
old_owner: AccountId; // current holder of the SBT
491491
new_owner: AccountId; // destination account.
492492
}
493493

494494
/// An event emitted when existing tokens are renewed.
495495
/// Must be emitted by an SBT registry.
496496
type Renew {
497-
ctr: AccountId; // SBT Contract renewing the tokens
497+
issuer: AccountId; // SBT Contract renewing the tokens
498498
tokens: u64[]; // list of token ids.
499499
}
500500

@@ -503,14 +503,14 @@ type Renew {
503503
/// a wallet. See also `Burn` event.
504504
/// Must be emitted by an SBT registry.
505505
type Revoke {
506-
ctr: AccountId; // SBT Contract revoking the tokens
506+
issuer: AccountId; // SBT Contract revoking the tokens
507507
tokens: u64[]; // list of token ids.
508508
}
509509

510510
/// An event emitted when existing tokens are burned and removed from the registry.
511511
/// Must be emitted by an SBT registry.
512512
type Burn {
513-
ctr: AccountId; // SBT Contract burning the tokens
513+
issuer: AccountId; // SBT Contract burning the tokens
514514
tokens: u64[]; // list of token ids.
515515
}
516516

@@ -529,6 +529,13 @@ type SoulTransfer {
529529
to: AccountId;
530530
}
531531

532+
/// An event emitted when an issuer updates token metadata reference of existing SBTs.
533+
/// Must be emitted by an SBT registry.
534+
type TokenReference {
535+
issuer: AccountId; // Issuer account
536+
tokens: u64[]; // list of token ids.
537+
}
538+
532539
/// An event emitted when existing token metadata references are updated.
533540
type TokenReference = u64[]; // list of token ids.
534541
```

0 commit comments

Comments
 (0)