Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Additional features for locking and unlocking #448

Closed
YoshihitoAso opened this issue Jan 4, 2023 · 0 comments · Fixed by #460
Closed

[FEATURE] Additional features for locking and unlocking #448

YoshihitoAso opened this issue Jan 4, 2023 · 0 comments · Fixed by #460
Assignees
Labels
enhancement New feature or request

Comments

@YoshihitoAso
Copy link
Member

YoshihitoAso commented Jan 4, 2023

Is your feature request related to a problem? Please describe.

  1. There is a request to reference data for locking and unlocking investor assets.
  2. In v22.12 contracts, the forceUnlock function has been added to the security token standard. This allows the issuer authority of the token to unlock the asset. There is a request to use this function.

Describe the solution you'd like

1. Storing data of locked balances

  • New TBL
    • idx_locked_position
  • Fix indexer batch
    • indexer_position_bond.py
    • indexer_position_share.py

2. Add locked balances to the return item of Position API

Balances held by account address

  • GET: /positions/{account_address}
  • GET: /positions/{account_address}/{token_address}

List and individual references of token holders

  • GET: /bond/tokens/{token_address}/holders
  • GET: /bond/tokens/{token_address}/holders/{account_address}
  • GET: /share/tokens/{token_address}/holders
  • GET: /share/tokens/{token_address}/holders/{account_address}

Change of conditions for calculation of number of holders

  • GET: /bond/tokens/{token_address}/holders/count
  • GET: /share/tokens/{token_address}/holders/count

3. Add transfer indexing and holders collection creation process to watch for unlock events

Add transfer history when unlock event occurs

  • indexer_transfer.py

Reflecting the holder change when the unlock event occurs in the data of the holder collection

  • indexer_token_holders.py

4. List all account's locked positions

  • [NEW] GET: /positions/{account_address}/lock

In addition, list lock and unlock events

  • [NEW] GET: /positions/{account_address}/lock/events

5. Add force unlock functionality

  • [NEW] POST: /positions/{account_address}/force_unlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant