UNPKG

superfuse-wizard

Version:

Interactive smart contract generator based on Superchain 's interoperability standard.

25 lines (17 loc) 586 B
import type { DeployBuilder } from "./contract"; export const TAG_SECURITY_CONTACT = `@custom:security-contact`; export const infoOptions = [{}, { securityContact: 'security@example.com', license: 'WTFPL' }] as const; export const defaults: Info = { license: 'MIT' }; export type Info = { securityContact?: string; license?: string; } export function setInfo(c: DeployBuilder, info: Info) { const { securityContact, license } = info; if (securityContact) { c.addNatspecTag(TAG_SECURITY_CONTACT, securityContact); } if (license) { c.license = license; } }