Initializing a Token Manager is simple. We have an approved, audited collection of managers available to deploy. This example will run through the deployment and initialization of a , and subsequent deposit of flaunched tokens.
The FlaunchToken object, containing the Flaunch ERC721 contract address and the tokenId that is being transferred in.
_creator
The address of the wallet that flaunched the token.
_data
3. Flaunch Tokens Directly to Manager
Rather than depositing an existing Flaunch ERC721, it's possible to transfer it directly to the manager when flaunching. When flaunching via the Flaunch Zap, the caller can specify TreasuryManagerParams in the call.
/**
* If the manager is an approved implementation, then it's instance will be deployed.
* Otherwise the flaunch token will be transferred directly to the manager.
*
* @param manager The manager implementation to use
* @param initializeData The data to initialize the manager with
* @param depositData The data to deposit to the manager with
*/
struct TreasuryManagerParams {
address manager;
bytes initializeData;
bytes depositData;
}
This will result in the flaunched token being sent directly to the manager; for a simplified example: