aleeusgr / potential-robot

minimal dApp testing suite
MIT License
3 stars 2 forks source link

refactor tx #116

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

I'm playing with the DSL to try approach a "literate" style, if that term makes sense... simple case:

const tx = new Tx()
  .addInputs(inputUtxos)
  .attachScript(mintProgram);
aleeusgr commented 1 year ago
aleeusgr commented 1 year ago

I should pass only Program instance in the context, and re-compile at each test. This will allow to change parameters in the tests. However maybe changing parameters in tests isn't something that I need, so should I maybe pass only hash and address?

https://github.com/aleeusgr/potential-robot/blob/86b947d0b799ca1b6feddc4a89a961c7b352fe6c/tests/vesting-cancel.test.ts#L67-L75