Adds functionality on space factory to do an NFT check before creating a space (#1526)

This PR does a couple of things:
1. Adds a flag on `spaceFactory` to check if the `createSpace` function
is gated by a token address
2. Adds a flag on `spaceFactory` to pause the protocol when making
changes like updating the implementations or enabling the token gating
checks; if the protocol is paused, it will also prevent creating new
spaces.

---------

Co-authored-by: Tak Wai Wong <64229756+tak-hntlabs@users.noreply.github.com>
This commit is contained in:
Giuseppe Rodriguez 2023-02-21 13:47:18 -08:00 committed by GitHub
parent 590cf48031
commit a9d5e11e69
3 changed files with 434 additions and 29 deletions

View file

@ -1,4 +1,5 @@
{ {
"spaceFactory": "0x173b6a4Ec998A0e72656e0fc9Af2408B017C12f9", "spaceFactory": "0x173b6a4Ec998A0e72656e0fc9Af2408B017C12f9",
"spaceToken": "0xD7efA82c6CEa706B396F4FfA23f0D01726F675cc" "spaceToken": "0xD7efA82c6CEa706B396F4FfA23f0D01726F675cc",
} "pioneerToken": ""
}

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,5 @@
{ {
"spaceFactory": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0", "spaceFactory": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
"spaceToken": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" "spaceToken": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
} "pioneerToken": ""
}