Create opinionated tool for multi-stage and multi-machine Icepick workflows #22
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: public/icepick#22
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the Solana and SPL Token MVP will be done with a bash script, but the flow should be generic enough that some tool can be created to parse opinionated configuration files and create a workflow for reading inputs and managing mounting SD cards in multi-machine workflows.
For example, in SPL Token:
would ask for the inputs of
from-address
,to-address
,token
, andamount
. It would then have steps to get a field fromicepick sol get-token-address
that exports thetoken-address
andtoken-decimals
(TODO: implementtoken-decimals
, it's currently hardcoded for IPDBG). It then generates the transaction, and waits for a blob from the SD card, fromicepick workflow sol-get-blockhash-and-broadcast
. The blockhash is then read, along with the other arguments, and passed intoicepick sol transfer-token
, which is then passed intoicepick sign
, generating a blob that can be returned to the online machine which is waiting for the transaction to broadcast.The configuration file would likely look something like:
Thinking on this, I think it is reasonable to implement a one-machine system with no
internal
module so it can run entirely on an online system, then once that's done, write theinternal
module and make it work across multiple systems.a18282d107
implements improvements that will help transfer data between modulesEnd to end tests now use
icepick workflow
with save-to-disk functionality. They still pass in the values manually, so OpenPGP signature validation is not yet implemented.