UNPKG

dop-stick

Version:

Source control tooling for versionable-upgradeable smart contracts

68 lines 1.77 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DIAMOND_CONSTRUCTOR_STANDARDS = void 0; exports.DIAMOND_CONSTRUCTOR_STANDARDS = { 'standard-type-1': { pattern: [ { name: '_diamondCut', type: 'FacetCut[]', isArray: true }, { name: '_args', type: 'DiamondArgs', isStruct: true, structFields: { owner: 'address' } } ], validation: (constructor) => { // Implementation of validation logic return true; // placeholder } }, 'standard-type-2': { pattern: [ { name: '_diamondCut', type: 'FacetCut[]', isArray: true }, { name: '_args', type: 'DiamondArgs', isStruct: true, structFields: { owner: 'address', init: 'address', initCalldata: 'bytes' } } ], validation: (constructor) => { return true; // placeholder } }, 'standard-type-3': { pattern: [ { name: '_contractOwner', type: 'address' }, { name: '_diamondCutFacet', type: 'address' } ], validation: (constructor) => { return true; // placeholder } }, 'custom': { pattern: [], validation: () => true } }; //# sourceMappingURL=diamondStandards.js.map