flow-emulator icon indicating copy to clipboard operation
flow-emulator copied to clipboard

Bootstrap emulator service account with fewer contracts.

Open bluesign opened this issue 3 years ago • 2 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.

bluesign avatar Jun 28 '22 16:06 bluesign

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

devbugging avatar Jul 22 '22 09:07 devbugging

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

bluesign avatar Jul 22 '22 11:07 bluesign

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 ?

bluesign avatar Jun 23 '23 20:06 bluesign