(For now, nobody is working on this. Just an open-discussion to collect feedback from the community)
Suibase is in position to implement the followings:
Specify a call with a single string "as-if" Move code. Example:
testnet call mypackage::myfunc(params1,params2)
Auto-resolve package name (e.g. mypackage is replaced with the last known published ID).
A new general purpose "Suibase Registry" module. This is an optional Key/value storage, with special handling for Sui objects. One storage per package instance. The registry can then be used both online/offline as follow:
devnet call mypackage::myfunc([myvar], some_params, [myobj.myfield])
where:
[myvar] is blindly replaced with the value stored in the registry.
[myobj.myfield] is replaced with an object field value (myobj is an address in registry)
Lookup and use object "by-type" created in init() of mypackage:
mainnet call mypackage::myfunc(init[UpgradeCap])
(For now, nobody is working on this. Just an open-discussion to collect feedback from the community)
Suibase is in position to implement the followings:
Specify a call with a single string "as-if" Move code. Example:
testnet call mypackage::myfunc(params1,params2)
Auto-resolve package name (e.g. mypackage is replaced with the last known published ID).
A new general purpose "Suibase Registry" module. This is an optional Key/value storage, with special handling for Sui objects. One storage per package instance. The registry can then be used both online/offline as follow:
devnet call mypackage::myfunc([myvar], some_params, [myobj.myfield])
where: [myvar] is blindly replaced with the value stored in the registry. [myobj.myfield] is replaced with an object field value (myobj is an address in registry)
Lookup and use object "by-type" created in init() of mypackage:
mainnet call mypackage::myfunc(init[UpgradeCap])
Display the return value on CLI. Related discussion: https://discord.com/channels/916379725201563759/1006322742620069898/1244660145599025183
Have response be "HTML interactive" in a "Sui Calls" panel in VSCode (e.g. collapsible JSON viewer, click to open explorer on address etc...).
Add display + on-chain edit of the registry in the VSCode extension (and through CLI).
Note: The registry can be modified only by its package code and package creator.