kurtosis-tech / near-package

A Kurtosis package that spins up a local near testnet
8 stars 2 forks source link

Allow users to fork NEAR mainnet #20

Open mieubrisse opened 2 years ago

mieubrisse commented 2 years ago

Requested via https://discord.com/channels/490367152054992913/912467453479616542/934379349229047849 :

It makes development and experimenting much easier. Its awesome to try out certain scenarios on blockchain without recreating everything from scratch, eg. debugging live protocols. But most importantly it makes the development for contracts with cross-contract functionalities much easier. 
For example you are building an aggregator and to test its functionality now you need to deploy dummy token, all kinds of dummy pools and routers on your local env or testnet. It is true that with these tests you can really test the edge cases and they don’t fail if onchain contract changes, but they can get really messy very fast and it is frustrating that you would need to recreate the whole state just to test a simple concept. Eg. suppose you want to test that your contract is working with token that uses fee on transfer, instead of looking at Github for that token contract, deploying it and creating a pool with it you could just use live token on the mainnet.

This same feature has been requested for various chains; we definitely want to consider how to build this as it seems very useful for users