entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
8 stars 0 forks source link

Jawn/GetSetRemovePrograms #281

Closed jawndiego closed 8 months ago

jawndiego commented 8 months ago

updates include:

frankiebee commented 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