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

Sample data batch update #40

Open
LeoHChen opened this issue Jul 21, 2023 · 1 comment
Open

Sample data batch update #40

LeoHChen opened this issue Jul 21, 2023 · 1 comment
Assignees
Labels
good first issue Good for newcomers test test coverage
Milestone

Comments

@LeoHChen
Copy link
Member

We need to have a script to upload/update a batch of sample data, that can be used to test the dashboard/backend.

@LeoHChen LeoHChen added the good first issue Good for newcomers label Jul 21, 2023
@LeoHChen LeoHChen added this to the Alpha Release milestone Aug 17, 2023
@LeoHChen LeoHChen added the test test coverage label Aug 17, 2023
@Ramarti
Copy link
Contributor

Ramarti commented Aug 17, 2023

This is partially done.

Check out the hardhat task sp:uploader

There is a sample json as input in the data folder

task('sp:uploader')
    .addPositionalParam('franchiseId', 'Id of the Franchise to create the IP Assets in, as given by FranchiseRegistry contract')
    .addPositionalParam('filePath', 'path to the Json data')
    .addOptionalParam('batchSize', 'Number of blocks to upload in each batch', 100, types.int)
    .setDescription('Mass upload IP Assets from a Json file')
    .setAction(sbUploader);

Some upgrades are probably needed to cover current contracts, and the relationships and licenses should be ported too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers test test coverage
Projects
None yet
Development

No branches or pull requests

3 participants