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

feat: ability to target rp from smart contract #442

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arsen3d
Copy link
Contributor

@arsen3d arsen3d commented Nov 18, 2024

Summary

This is a proposal to target an RP from smart contract
example for reference:

function runCowsay(
    string memory message
  ) public {
    string[] memory inputs = new string[](2);
    inputs[0] = string(abi.encodePacked("Message=", message));
    inputs[1] = string(abi.encodePacked("target=", "0x90ed1AC9c74B9340468134F8c669BA1169A11c58"));
    uint256 id = jobManagerContract.runJob(
      "cowsay:v0.0.4",
      inputs,
      msg.sender
    );

    emit JobCreated(
      id,
      message
    );
  }

@arsen3d arsen3d requested a review from a team as a code owner November 18, 2024 17:07
@cla-bot cla-bot bot added the cla-signed label Nov 18, 2024
@arsen3d arsen3d changed the title ability to target rp from smart contract feat: ability to target rp from smart contract Nov 18, 2024
@arsen3d arsen3d self-assigned this Nov 18, 2024
@arsen3d arsen3d requested review from walkah and bgins November 18, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant