near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
44 stars 23 forks source link

Provide spooning example of testnet contract #72

Open mikedotexe opened 3 years ago

mikedotexe commented 3 years ago

The goal of this ticket is to use either an existing sandbox test or a new one to demonstrate "spooning" of a testnet contract written in AssemblyScript. 1. Use sandbox testing to deploy an AssemblyScript contract to a local sandbox instance 2. Take the testnet state of the same smart contract (that is populated) 3. Use the patch state functionality to apply those changes locally 4. Write a simple test that demonstrates some expected behavior