onflow/flow-emulator

Bootstrap emulator service account with fewer contracts.

Closed this issue · 3 comments

Issue To Be Solved

Currently emulator account has many contracts by default, and it is confusing.

Suggest A Solution

Contract: 'FlowIDTableStaking'
Contract: 'FlowServiceAccount'
Contract: 'FlowStakingCollection'
Contract: 'FlowStorageFees'
Contract: 'StakingProxy'
Contract: 'FlowDKG'
Contract: 'FlowEpoch'
Contract: 'FlowContractAudits'
Contract: 'LockedTokens'
Contract: 'FlowClusterQC'

I think it is safe to say most of the current 10 contracts can be removed.

Except FlowStorageFees and FlowServiceAccount, I am sure others have no use for emulator. ( if needed user's can deploy them )

Or we can simply change default to not deploy those and put them behind a flag for advanced usage.

I think we should put them behind already existing flag: --contracts

@sideninja that's a very good idea. I am waiting on onflow/flow-go#2812 After that I think it will be pretty easy.

I am a bit in favour of closing this one, with snapshot, it is pretty easy to start emulator from a state we want. And custom bootstrap became a bit unnecessary. What do you think ?