Super App Testing on Mainnet Forks
Learn how to test Super Apps on Hardhat mainnet forks
constructor(
ISuperfluid host,
string memory registrationKey
) {
uint256 configWord = SuperAppDefinitions.APP_LEVEL_FINAL |
SuperAppDefinitions.BEFORE_AGREEMENT_CREATED_NOOP |
SuperAppDefinitions.BEFORE_AGREEMENT_UPDATED_NOOP |
SuperAppDefinitions.BEFORE_AGREEMENT_TERMINATED_NOOP;
if (bytes(registrationKey).length > 0) {
// works on MAINNET
host.registerAppWithKey(configWord, registrationKey);
} else {
// works on TESTNET
host.registerApp(configWord);
}
}Simulating Creation of a Registration Key
Last updated