Tracker: Icepick configuration file #15

Closed
opened 2024-11-26 16:35:23 +00:00 by ryan · 3 comments
Owner

We needed a good way to be able to quickly define trustable but arbitrary derivation paths and a way to say what modules are supported. A configuration format is a good way to achieve this.

[[module]]
name = "sol"
derivation_prefix = "m/44'/501'"

Because the icepick CLI is defined by the module, this file must be defined without using CLI arguments. I have created the ICEPICK_CONFIG_FILE variable that offers the ability to specify an external file if necessary.

We needed a good way to be able to quickly define trustable but arbitrary derivation paths and a way to say what modules are supported. A configuration format is a good way to achieve this. ```toml [[module]] name = "sol" derivation_prefix = "m/44'/501'" ``` Because the `icepick` CLI is defined by the module, this file must be defined without using CLI arguments. I have created the `ICEPICK_CONFIG_FILE` variable that offers the ability to specify an external file if necessary.
ryan added this to the Custody Framework project 2024-11-26 16:35:24 +00:00
Author
Owner

Added command_name to allow custom commands... Maybe this system can also allow command_args to allow passing in command-line arguments for custom coin transfer.

For example, PYTH may call:

icepick-solana-spl --token PYTH

which then exports a CLI for PYTH.

This would work in contrast to my original example which was to define multiple binaries.

Added `command_name` to allow custom commands... Maybe this system can also allow `command_args` to allow passing in command-line arguments for custom coin transfer. For example, PYTH may call: ```sh icepick-solana-spl --token PYTH ``` which then exports a CLI for PYTH. This would work in contrast to my original example which was to define multiple binaries.
Author
Owner

The first part of this is implemented and has been a part of my work in implementing IPDBG transfer.

[[module]]
name = "sol"
derivation_prefix = "m/44'/501'/0'"
algorithm = "Ed25519"

Had to include an algorithm field for derived accounts.

The first part of this is implemented and has been a part of my work in implementing IPDBG transfer. ```toml [[module]] name = "sol" derivation_prefix = "m/44'/501'/0'" algorithm = "Ed25519" ``` Had to include an algorithm field for derived accounts.
ryan self-assigned this 2024-12-05 19:45:58 +00:00
ryan added this to the Icepick v0.1.0 milestone 2024-12-12 20:29:33 +00:00
Author
Owner

Closing as this is now extended by #22, Icepick Workflows.

Closing as this is now extended by #22, Icepick Workflows.
ryan closed this issue 2024-12-12 20:30:02 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/icepick#15
No description provided.