Skip to content

Instantly share code, notes, and snippets.

@argctl
argctl / gist-44ff0e0a24741e3f35fd88bd7a503b4c...gitarg.sol
Created November 2, 2022 02:29
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.4;
// a system that uses passwords or a real world artifact as an interface to verify timestamp and optionally location
// "they'll try to use your workspace"
// permissions :
// 1 - id for internal address
// 2 - password for internal address
// 3 - id, token => password // pseudo oauth
//
@argctl
argctl / gist-44ff0e0a24741e3f35fd88bd7a503b4c...gitarg.sol
Created November 1, 2022 22:24
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.4;
// a system that uses passwords or a real world artifact as an interface to verify timestamp and optionally location
// "they'll try to use your workspace"
// permissions :
// 1 - id for internal address
// 2 - password for internal address
// 3 - id, token => password // pseudo oauth
//
@argctl
argctl / cryverify_ico.sol
Created October 29, 2022 20:50
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: GPL-3.0
// ICO for CryVerify Blockchain
pragma solidity ^0.8.4;
interface IERC20 {
function transfer(address _to, uint256 _amount) external payable returns (bool);
}
error InsufficientBalance(uint requested, uint available);
@argctl
argctl / gitarg.sol
Created October 29, 2022 20:46
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=
pragma solidity ^0.8.4;
// permissions :
// 1 - id for internal address
// 2 - password for internal address
// 3 - id, token => password // pseudo oauth
//
contract gitarg {
address private owner;
@argctl
argctl / gitarg.sol
Created October 29, 2022 07:39
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=
pragma solidity ^0.8.4;
// permissions :
// 1 - id for internal address
// 2 - password for internal address
// 3 - id, token => password // pseudo oauth
//
contract gitarg {
address private owner;
@argctl
argctl / cryverify_ico.sol
Created October 25, 2022 02:46
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: GPL-3.0
// ICO for CryVerify Blockchain
pragma solidity ^0.8.4;
error InsufficientBalance(uint requested, uint available);
contract CryVerify {
// The keyword "public" makes variables
// accessible from other contracts
uint startGlobal = 1666666666;
@argctl
argctl / .deps...remix-tests...remix_accounts.sol
Created October 25, 2022 02: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@argctl
argctl / .deps...remix-tests...remix_accounts.sol
Created October 25, 2022 01:22
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: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@argctl
argctl / cryverify_ico.sol
Created October 25, 2022 01:20
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: GPL-3.0
// ICO for CryVerify Blockchain
pragma solidity ^0.8.4;
error InsufficientBalance(uint requested, uint available);
contract CryVerify {
// The keyword "public" makes variables
// accessible from other contracts
uint startGlobal = 1666666666;
@argctl
argctl / cryverify_ico.sol
Created October 24, 2022 23:11
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: GPL-3.0
// ICO for CryVerify Blockchain
pragma solidity ^0.8.4;
error InsufficientBalance(uint requested, uint available);
contract CryVerify {
// The keyword "public" makes variables
// accessible from other contracts
uint startGlobal = 1666666666;