Skip to content

Instantly share code, notes, and snippets.

View wusrichard's full-sized avatar
🎯
Focusing

吳語復 wusrichard

🎯
Focusing
View GitHub Profile
@wusrichard
wusrichard / RWA...PropertyNFT_Sapphire.sol
Created October 31, 2025 08:59
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
// [導師修正 v2.2.1]: 修正 ERC71 -> ERC721 的打字錯誤
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
/**
@wusrichard
wusrichard / RWA...IRofl.sol
Created October 30, 2025 21:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/**
* @title ROFL TEE oracle precompile interface
* @dev ROFL precompile is available at 0x000...0802
* @dev This is the manual import file to fix Remix import errors.
*/
interface IRofl {
/**
@wusrichard
wusrichard / RWA...PropertyOracle_Oasis.sol
Created October 30, 2025 21:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
// 導入 OpenZeppelin
import "@openzeppelin/contracts/access/Ownable.sol";
// [導師修正 v3.3]
// 導入我們 "手動創建" 的 "本地" IRofl.sol 檔案!
// 這 100% 會繞過所有網路導入錯誤。
import "./IRofl.sol";