Intercoin / CommunityContract

Smart contract for managing community membership and roles
https://intercoin.org
GNU Affero General Public License v3.0
1 stars 2 forks source link

refactoring in admin invite message #35

Closed artman325 closed 1 year ago

artman325 commented 1 year ago
  1. chainId need to add chainId to admin invite message. and check it onchain otherwise admin payload can be used in other chain with same contract address was

    :
    :: should be :
    :::
  2. deadline should add some deadline timestamp after which invite will be expired

  3. personalizing admin should can to create invite personal to user. otherwise "bad user" can request another one invite, and use unnecessary for other user

In total: all this should be optional. Our contract should understand all formats. For example, the admin message can be like this:

<some string data>:<typeof message>:<address of communityContract>:<array of rolenames (sep=',')>:<optional chainid>:<optional deadline>:<optional recipient>:<some string data>
artman325 commented 1 year ago

Summary: just add the following parameters in invite messages:

others will do in future versions