telemint icon indicating copy to clipboard operation
telemint copied to clipboard

Add TLb description for generated messages?

Open bminaiev opened this issue 1 year ago • 3 comments

Maybe also add a TLb description of all messages, which contracts could generate and send to external contracts?

For example, at the end of the auction, nft-item sends an ownership_assigned message to a new owner, but it is not clear what is the format of the message. E.g. what does .store_int(0, 1) mean in that query? And why bidder_address is stored in that message (they probably already know their address)? Should it be prev_owner instead (similar to nft_answer_ownership_assigned)?

bminaiev avatar Oct 24 '22 13:10 bminaiev

ownership_assigned is from TEP 62 But yes, it makes sense to include its description in the schema.

arseny30 avatar Oct 25 '22 12:10 arseny30

Hmm, if it is ownership_assigned from TEP 62, then it is a bug, that bidder_address is stored there, not owner? Am I missing something?

bminaiev avatar Oct 25 '22 12:10 bminaiev

Made a PR in case this is indeed a bug: https://github.com/TelegramMessenger/telemint/pull/62

bminaiev avatar Oct 25 '22 13:10 bminaiev