Scope creation
Scopes are claimed usingPatchworkProtocol:claimScope(). Typically you’ll call this in your contracts’ deploy script, but it can be manually called if desired.
When called, the owner of the claimed Scope is set to the party calling the function.
fooscope123.
deploy.s.sol
Scope permissions
Operators Scope Operators are added and removed by the scope owner. Operators may perform the following functions:- Add/Remove bankers
- Add/Remove whitelisted addresses
- Configure minting
- Set patch and assignment fees
- Withdraw fees collected by the protocol
Adding contracts to your Scope
Registering a contract to your Scope is a 2-part process. The first part is declaring the Scope in your contract’s Patchwork721 constructor, where the first param is the name of your claimed Scope.Foo.sol
deploy.s.sol
Adding and removing operators
Transfering Scopes
Scope transfers must first elect a new owner by callingtransferScopeOwner from the current owner’s address, then the new owner must call acceptScopeTransfer for the transfer to execute.
To cancel a transfer before the scope has been accepted, call cancelScopeTransfer