From ffe7f07d556641d32934b534017f796ff1c9af5b Mon Sep 17 00:00:00 2001 From: Nilupul Weerasinghe Date: Fri, 4 Apr 2025 11:06:03 +0530 Subject: [PATCH 1/3] Test --- basicERC1155.sol | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 basicERC1155.sol diff --git a/basicERC1155.sol b/basicERC1155.sol new file mode 100644 index 0000000..d3785d2 --- /dev/null +++ b/basicERC1155.sol @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; +import "@openzeppelin/contracts/access/Ownable.sol"; + +contract Basic is ERC1155, Ownable { + constructor(string memory uri) ERC1155(uri) {} + + // Mint tokens to an address (only callable by the owner or forging contract) + function mint(address to, uint256 id, uint256 amount, bytes memory data) external onlyOwner { + _mint(to, id, amount, data); + } + + // Burn tokens from an address (only callable by the owner or forging contract) + + function burn(address from, uint256 id, uint256 amount) external onlyOwner { + _burn(from, id, amount); + } +} From 28f1de27123e47d5aff03b3ffe499b5d79dbaa62 Mon Sep 17 00:00:00 2001 From: Nilupul Weerasinghe Date: Fri, 4 Apr 2025 11:14:52 +0530 Subject: [PATCH 2/3] Update Basic1155.sol --- Contracts/Basic1155.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Contracts/Basic1155.sol b/Contracts/Basic1155.sol index f6387c6..855bb84 100644 --- a/Contracts/Basic1155.sol +++ b/Contracts/Basic1155.sol @@ -8,10 +8,7 @@ contract Basic is ERC1155, Ownable { constructor(string memory uri) ERC1155(uri) {} // Mint tokens to an address (only callable by the owner or forging contract) - function mint(address to, uint256 id, uint256 amount, bytes memory data) external onlyOwner { - _mint(to, id, amount, data); - } - + // Burn tokens from an address (only callable by the owner or forging contract) function burn(address from, uint256 id, uint256 amount) external onlyOwner { _burn(from, id, amount); From d8aa8e94675a998a4bb348c88f80aa772ae8e13c Mon Sep 17 00:00:00 2001 From: Nilupul Weerasinghe Date: Fri, 4 Apr 2025 11:16:25 +0530 Subject: [PATCH 3/3] Add files via upload --- Profile.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Profile.html diff --git a/Profile.html b/Profile.html new file mode 100644 index 0000000..42f0360 --- /dev/null +++ b/Profile.html @@ -0,0 +1,23 @@ + + + + + + User Profile + + + + + +

Welcome, Guest

+ + + + + + +

+ Back to Home + + +