@@ -173,11 +173,11 @@ pub trait TokenInterface {
173173
174174### Events
175175
176- Token events support two data formats. The original data format is the format
177- defined by earlier versions of this SEP . The map data format encodes the event
178- data as a ` Map ` with ` Symbol ` keys, and may contain additional keys beyond
179- those defined in this SEP. Event consumers must be able to handle keys they do
180- not recognize, and are expected to support both formats.
176+ Events can be emitted by tokens in two data formats: a single-value/vec data
177+ format and a map data format . The map data format encodes the event data as a
178+ ` Map ` with ` Symbol ` keys, and may contain additional keys beyond those defined
179+ in this SEP. Event consumers must be able to handle keys they do not recognize,
180+ and are expected to support both formats.
181181
182182#### Approve Event
183183
@@ -189,7 +189,7 @@ The event has topics:
189189- ` Address ` the address holding the balance of tokens to be drawn from.
190190- ` Address ` the address spending the tokens held by ` from ` .
191191
192- The event's original data format is:
192+ The event's vec data format is:
193193
194194- ` Vec ` containing
195195 - ` i128 ` the amount allowed to be spent.
@@ -212,7 +212,7 @@ The event has topics:
212212- ` Address ` the address holding the balance of tokens that was drawn from.
213213- ` Address ` the address that received the tokens.
214214
215- The event's original data format is:
215+ The event's single-value data format is:
216216
217217- ` i128 ` the amount transferred.
218218
@@ -233,7 +233,7 @@ The event has topics:
233233- ` Symbol ` with value ` "burn" `
234234- ` Address ` the address holding the balance of tokens that was burned.
235235
236- The event's original data format is:
236+ The event's single-value data format is:
237237
238238- ` i128 ` the amount burned.
239239
@@ -254,7 +254,7 @@ The event has topics:
254254- ` Symbol ` with value ` "mint" `
255255- ` Address ` the address to hold the newly minted tokens.
256256
257- The event's original data format is:
257+ The event's single-value data format is:
258258
259259- ` i128 ` the amount minted.
260260
@@ -281,7 +281,7 @@ The event has topics:
281281- ` Address ` The address holding the balance from which the clawback will take
282282 tokens.
283283
284- The event's original data format is:
284+ The event's single-value data format is:
285285
286286- ` i128 ` the amount clawed back.
287287
@@ -310,7 +310,7 @@ and a clawback action that emits a clawback event must reduce total supply.
310310- ` v0.4.0 ` - Add muxed support to transfer, and mint.
311311- ` v0.4.1 ` - Clarify that clawback burns tokens reducing total supply and that
312312 no separate burn or transfer event is emitted alongside the clawback event.
313- - ` v0.5.0 ` - Document the original and map data formats for all events,
313+ - ` v0.5.0 ` - Document the single-value/vec and map data formats for all events,
314314 generalizing the form already used by ` transfer ` and ` mint ` .
315315
316316## Implementations
0 commit comments