cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

suggestion for the Cashtoken introspection opcodes

Open mr-zwets opened this issue 3 years ago • 0 comments

The Cashtokens upgrade adds 6 new introspection opcodes, these would map cleanly to the following 6 new cashscript expressions. These are just a suggestion but might be helpful for other devs thinking already about new contracts enabled by the cashtokens upgrade

bytes tx.inputs[i].tokenCategory

bytes tx.inputs[i].nftCommitment

int tx.inputs[i].tokenAmount

bytes tx.outputs[i].tokenCategory

bytes tx.outputs[i].nftCommitment

int tx.outputs[i].tokenAmount

mr-zwets avatar Sep 07 '22 15:09 mr-zwets