Skip to content

Implement surfnet_writeProgram cheatcode #319

@MicaiahReid

Description

@MicaiahReid

Currently, txtx uses the surfnet_setAccount cheatcode under the hood to directly write program accounts for instant deployments.

However, large programs will be limited by the max size for an RPC request.

A dedicated RPC method, surfnet_writeProgram, would allow providing data and an offset, allowing for any size program to be written.

This would behave much like program deployments already do by writing to a buffer in small batches with the offset, except this has the benefits of:

  1. Being limited by the max RPC size (5MB) rather than the max transaction size
  2. Not requiring signatures
  3. Not requiring buffer account creation - write directly to account data

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions