Closed DariusParvin closed 3 years ago
@indomitableSwan. As @jakinyele suggested, now self_delay
and min_confirmations
can be passed in as optional arguments. network
is a required argument that can be set to either 'testnet' or the uri.
@jakinyele thanks! I pushed the last change just before your comments, but I also responded to them above.
This PR unifies the pytezos functions we use (/will use) in zeekoe for calling the contract's entrypoints and the previous script (zkchannel_edo2net_broadcaster.py) for testing the various flows on testnet (or sandbox with some adjustments).
The first section of the script defines the functions for calling the entrypoints, and they can be lifted into zeekoe. The rest of the loads the variables from the sample_files directory and runs through various paths of the contract, testing all the entrypoints.
An outstanding issue is returning the
level
for an operation after it is confirmed. Thelevel
for an operation is the block height at which it was included in the blockchain. I think it would make sense for that to be in another PR though. An issue has been created for this https://github.com/boltlabs-inc/tezos-contract/issues/49