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

Add data export for nervos dao #592

Closed
Keith-CY opened this issue Mar 29, 2024 · 8 comments · Fixed by Magickbase/ckb-explorer-frontend#343
Closed

Add data export for nervos dao #592

Keith-CY opened this issue Mar 29, 2024 · 8 comments · Fixed by Magickbase/ckb-explorer-frontend#343
Assignees
Labels
documentation Improvements or additions to documentation feature

Comments

@Keith-CY
Copy link
Member

The following data are required and expected to be exported on page

  1. new deposits during a specific period
  2. top depositors(by deposited capacity) at specific time
@Sven-TBD
Copy link
Contributor

A proposal is proposed here . @rabbitz @PainterPuppets Could you please provide an ETA for this issue?
https://vs0cjf.axshare.com/?id=mxvmva&p=_592_add_data_export_for_nervos_dao&g=1

@Sven-TBD
Copy link
Contributor

And please pay attention to the data export function on Nervos Dao Depositors Page. The text is a little bit different from others.

Image

@rabbitz
Copy link

rabbitz commented May 21, 2024

PR: nervosnetwork/ckb-explorer#1864

export contract transactions

# api
GET /api/v1/contract_transactions/download_csv

# params
start_date: export start date
end_date: export end date
start_number: export start block number
end_number: export end block number

export depositors

# api
GET /api/v1/dao_depositors/download_csv

# params
start_date: export start date
end_date: export end date
start_number: export start block number
end_number: export end block number

@PainterPuppets
Copy link

PR: nervosnetwork/ckb-explorer#1864

export contract transactions

# api
GET /api/v1/contract_transactions/download_csv

# params
start_date: export start date
end_date: export end date
start_number: export start block number
end_number: export end block number

export depositors

# api
GET /api/v1/dao_depositors/download_csv

# params
start_date: export start date
end_date: export end date
start_number: export start block number
end_number: export end block number

Currently the GET /api/v1/dao_depositors/download_csv api seems to return the 500 error, please take a look at it.

@rabbitz
Copy link

rabbitz commented May 23, 2024

Fixed PR: nervosnetwork/ckb-explorer#1877

@Sven-TBD
Copy link
Contributor

Sven-TBD commented Jul 10, 2024

We need to aggregate and export the address data.
For example, if an address has multiple Live Cells (Deposit, Withdraw request), their Capacities should be summed up, and the exported file should only include the final address and its total amount.

我们需要聚合导出地址的数据,比如说 一个地址有多个Live Cell (Deposit,Withdraw request), 把他们的 Capacity 加一起,导出文件中应只有最后的地址和其数量

So there would be only two columns here, like:

Image

@rabbitz cc @FrederLu

@rabbitz
Copy link

rabbitz commented Jul 10, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

5 participants