Skip to content

Instantly share code, notes, and snippets.

View bertil291utn's full-sized avatar
📺
WFH

Bertil Tandayamo bertil291utn

📺
WFH
View GitHub Profile
@bertil291utn
bertil291utn / Claimable.sol
Created November 8, 2022 22:25
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Claimable {
uint256 internal claimableAmount = 10 * 10e18;
function claim(IERC20 _tokenAddress/*,address stakingSMAddress*/) external {
require(msg.sender != address(0), "Invalid address");
@bertil291utn
bertil291utn / StakingToken.sol
Last active November 8, 2022 23:02
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./IERC20.sol";
contract StakingToken is ReentrancyGuard {
mapping(address => uint256) internal stakeholders;
uint256 private _totalSupply;
// IERC20 public stakingToken;
@bertil291utn
bertil291utn / NFTToken1155Claimable.sol
Created February 8, 2023 15:14
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IERC20.sol";
import "./IERC1155.sol";
contract MultipleEditionClaimable is ReentrancyGuard, Ownable {
//token buy with any erc20 token
// function mintUser(
@relation 'x'
@attribute 'instance_id' string
@attribute 'repetition' numeric
@attribute 'stacks' numeric
@attribute 'tiers' numeric
@attribute 'stack.tier.ratio' numeric
@attribute 'container.density' numeric
@attribute 'empty.stack.pct' numeric
@attribute 'overstowing.stack.pct' numeric
@attribute 'overstowing.2cont.stack.pct' numeric