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

Enhance workload module base class with "auto-build" #859

Open
aklenik opened this issue Jun 4, 2020 · 0 comments
Open

Enhance workload module base class with "auto-build" #859

aklenik opened this issue Jun 4, 2020 · 0 comments
Assignees
Labels
component/core Related to the core code-base enhancement New feature or request

Comments

@aklenik
Copy link
Contributor

aklenik commented Jun 4, 2020

Context

Building on #857 and #858 (and extending #576), the base class implementation of workload modules could be smarter.
Currently, this idea is only meaningful for workload modules that submit a single TX when enabled (so no batches).

Expected Behavior

Based on a schema like this:

workload:
    module: mySimpleWorkload.js
    arguments: 
        myArg1: value1
        builder: # special, reserved argument name for the base class
            targetContract: myContractID
            targetFunction: transfer
            arguments:
            - name: source
              value: account1
              # values could reference arguments above using YAML anchors and aliases
            - name: target
              value: account2
            - name: amount
              value: 100
            timeout: 5000
            # ...

a smarter workload module base class could be implemented that can partially/completely build a TX. In this case, reusing a builder instance is definitely a good idea.

Your Environment

  • Version used: v0.3.1
@aklenik aklenik added the enhancement New feature or request label Jun 4, 2020
@aklenik aklenik added this to the v0.4.0 milestone Jun 4, 2020
@aklenik aklenik self-assigned this Jun 4, 2020
@nklincoln nklincoln modified the milestones: v0.4.0, Future release Aug 26, 2020
@davidkel davidkel added the component/core Related to the core code-base label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/core Related to the core code-base enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants