Closed jawndiego closed 8 months ago
move all your functions into dev
- get: returns array of pointers with the configs
get () : ProgramData[]
- set: takes an array of pointers with the config and calls change_program_instance
set (newList: ProgramData[])
- remove: removes a pointer from user programs list and calls set under the hood
- add: append a new program pointer to the original list and then sets then new list
export interface ProgramData { hash: string config: unknown //? what ever the config is supposed to be }
also include a function which returns the programs bytecode and config
updates include: