This file contains hidden or 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
Hey, I'm extropyCoder-15907736 and I have contributed to the Semaphore Binary Merkle Root Fix MPC Phase2 Trusted Setup ceremony. | |
The following are my contribution signatures: | |
Circuit # 1 (semaphore-1) | |
Contributor # 102 | |
Contribution Hash: 5478df9d d6edaaa5 f6c12947 7e0c184f | |
3ff5efe3 0710bc4b 583ba8a8 01e188e3 | |
960e1b11 7b5e230d 202ed565 9d7133fb | |
34a62f1b ba6946c5 78dc1e20 64137db5 |
This file contains hidden or 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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.23; | |
import "@semaphore-protocol/contracts/interfaces/ISemaphore.sol"; | |
contract Feedback { | |
ISemaphore public semaphore; | |
uint256 public groupId; |
This file contains hidden or 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
// Minimal ERC20 interface | |
interface IERC20 { | |
function transfer(address recipient, uint256 amount) external returns (bool); | |
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); | |
function balanceOf(address account) external view returns (uint256); | |
} |
This file contains hidden or 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
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract GameItems is ERC1155, Ownable { | |
uint256 public constant GOLD = 0; | |
uint256 public constant SILVER = 1; |
This file contains hidden or 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
import { ActionGetResponse, ActionPostResponse } from "@solana/actions"; | |
import { serialize } from "wagmi"; | |
import { parseEther } from "viem"; | |
// CAIP-2 format for Monad | |
const blockchain = `eip155:10143`; | |
// Wallet address that will receive the donations | |
const donationWallet = `<RECEIVER_ADDRESS>`; |
This file contains hidden or 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
module 0x42::example { | |
struct Coin<T> { | |
amount: u64 | |
} | |
struct Receipt<phantom T> { | |
amount: u64 | |
} | |
public fun flash_loan<T>(_user: &signer, amount:u64): (Coin<T>, Receipt<T>) { | |
let (coin, fee) = withdraw(user, amount); |
This file contains hidden or 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
module 0x42::example { | |
struct Coin<T> { | |
amount: u64 | |
} | |
struct Receipt { | |
amount: u64 | |
} | |
public fun flash_loan<T>(user: &signer, amount: u64): (Coin<T>, Receipt) { |
This file contains hidden or 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
module 0x42::example { | |
struct Table<phantom K: copy + drop, phantom V> has store { | |
handle: address, | |
} | |
public fun add<K: copy + drop, V>(table: &mut Table<K, V>, key: K, val: V) { | |
add_box<K, V, Box<V>>(table, key, Box { val }) | |
} | |
} |
This file contains hidden or 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
// BAD CODE | |
module 0x42::example { | |
struct Subscription has key { | |
end_subscription: u64 | |
} | |
entry fun registration(user: &signer, end_subscription: u64) { | |
let price = calculate_subscription_price(end_subscription); |
This file contains hidden or 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
module my_addr::homework5 { | |
struct Asset has drop { | |
value : u64, | |
flag : u8 | |
} | |
public entry fun build_asset(value : u64, flag : u8) { |
NewerOlder