-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make generator contract upgradable and add write functions for extern…
…al contracts addresses. Use self deployed gunzip contract instead of ethfs.
- Loading branch information
1 parent
a1143d6
commit 52e9ab2
Showing
8 changed files
with
375 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity 0.8.19; | ||
|
||
// Created By: Art Blocks Inc. | ||
import "./libs/v0.8.x/BytecodeStorageV1.sol"; | ||
|
||
/** | ||
* @title Art Blocks Storage Writer | ||
* @author Art Blocks Inc. | ||
* @notice A simple contract that with a single function that uses | ||
* the BytecodeStorageV1 library to write a string to bytecode storage. | ||
*/ | ||
contract BytecodeStorageV1Writer { | ||
using BytecodeStorageWriter for string; | ||
|
||
event StorageContractCreated(address indexed storageContract); | ||
|
||
/** | ||
* @notice Write a string to bytecode storage. | ||
* @param _string The string to write to bytecode storage. | ||
* @dev This function emits an event with the address of the newly created | ||
* storage contract. | ||
*/ | ||
function writeStringToBytecodeStorage(string memory _string) public { | ||
address storageContract = _string.writeToBytecode(); | ||
|
||
emit StorageContractCreated(storageContract); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
packages/contracts/contracts/generator/scripty-support/ETHFSFileStorage.sol
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.