1// PKGPATH: gno.land/r/demo/grc20dupsignal23// This filetest is the reference for the detection rule the NewToken event4// enables. The realm below reuses seqid 0 twice, so both tokens end up with the5// same Token.ID() and their Transfer events are indistinguishable — the6// long-standing event-provenance ambiguity.7//
Functions
not supported for pure packages by the node (vm/qfuncs)
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
8
// What changes is that the ambiguity is now *announced*. Two NewToken events
9// carry the same "token" value, which is a complete signal: NewToken is the only
10// way a Token can exist (Token's fields are unexported), so an indexer watching
11// this event sees every token that will ever emit. On the second duplicate
12// announcement it should flag the realm and stop trusting its token events.