Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Opcode: STREAMUPDATE #139

Description

@PaulRBerg

Spec

Updates the stream with the sender msg.sender and the recipient recipient for token with ID token_id by setting the payment rate to new_amount per new_cadence.

Input

  • recipient of type `Address
  • token_id of type U256
  • new_amount of type U256
  • new_cadence of type U16

Output

None.

Receipt

  • New receipt of type StreamUpdate
  • Data
    • The sender's updated terminus of type U256

Errors

  • The update MUST NOT cause the sender to be either insolvent or have a solvency lower than 1 hour

Notes

  • Can be executed either by an EOA via one of the new transaction types or by a contract
  • I went with STREAMUPDATE instead of UPDATESTREAM so that all streaming-related opcodes can be grouped together
  • The spec assumes that there can be only one stream between users

Related

Tasks

Discussions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: epicMulti-stage task that may require multiple PRs.priority: 1This is important. It should be dealt with shortly.type: featureNew feature or request.work: complexProbe-sense-respond. The relationship between cause and effect can only be perceived in retrospect.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions