Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How to tell apart addresses of exchanges and usual wallets?

In the ongoing public vote on TON Tokenomics Optimization there was implemented a protection from the "exchange voting" (when someone votes using exchange address instead of a private wallet and all the exchange funds get counted in voting). But to implement such protection you need to know which addresses belong to exchanges. How to get information like that?


This question was imported from Telegram Chat: https://t.me/tondev/112583

Votes Newest

Answers


You need to deploy a simple contract per user (who voted) and calculate address (deterministic) for store user vote. You main contract will store counts only.
Like:
yes - 313
no - 131

If user want to change vote than user should sent transaction to personal vote item (you can prepare it in your ddap) and that item will change vote on main contract

You can see simple example here - https://github.com/Tonstarter/simple-vote to understand how it can be work for a lot users without big storage

  
  
Posted one year ago
17K Views
1 Answer
one year ago
one year ago
Tags