Merge and extend ApiSession.getLiveContract
and ApiSession.getLiveJson
#119
Labels
braking-changes
This work will introduce changes that brake backwards compatibility
contracts
LiveContract/Smart contract related
enhancement
New feature or request
node-js
Affecting NodeJs runtime environments
web
Affecting Web runtime environments
Milestone
We have
ApiSession
methods to retrievelive
instances of typeContract
andJson
, but there aren't any to retrieveLiveAccount
s,LiveFile
s,LiveToken
s andLiveTopic
s. We need to support these as well.We should do it by merging
ApiSession.getLiveContract
andApiSession.getLiveJson
into a single, overloaded,ApiSession.getLive
method. One overload for each type of entity.Its signature could be something like:
ApiSession.getLive(LiveEntityType, args): Promise<-live-entity->
which would lead to the following 2 methods for the existingJson
/Contract
retrievals:ApiSession.getLive(LiveEntityType.Contract, id, abi = []): Promise<LiveContract>
ApiSession.getLive(LiveEntityType.Json, id): Promise<LiveJson>
The text was updated successfully, but these errors were encountered: