Skip to content

feat: ability to target rp from smart contract - #442

Open
arsen3d wants to merge 1 commit into
mainfrom
arsen/feat-on-chain-targeting
Open

feat: ability to target rp from smart contract#442
arsen3d wants to merge 1 commit into
mainfrom
arsen/feat-on-chain-targeting

Conversation

@arsen3d

@arsen3d arsen3d commented Nov 18, 2024

Copy link
Copy Markdown
Contributor

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 bgins and walkah 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