Skip to content

Instantly share code, notes, and snippets.

@arkhaminferno
arkhaminferno / challenge1.rsh
Created April 1, 2022 12:09
Ascent Reach Bootcamp Week - 1 assignment
'reach 0.1'
const Player = {
getChallenge:Fun([],UInt),
seeResult:Fun([UInt],Null)
};
export const main = Reach.App(()=>{
const Pat = Participant('Pat',{...Player});
const Vanna = Participant('Vanna',{...Player});
@arkhaminferno
arkhaminferno / Keybase.md
Created August 30, 2020 16:16
Keybase.md

Keybase proof

I hereby claim:

  • I am arkhaminferno on github.
  • I am infy (https://keybase.io/infy) on keybase.
  • I have a public key ASATitK-taYgB7V32WXXPTXoF-SPK5fqArUCztylB-R9lgo

To claim this, I am signing this object:

const assert = require('assert');
const TournamentContract = artifacts.require('./TournamentContract.sol');
before(async() =>{
tournament = await TournamentContract.deployed();
});
describe("Testing Create Tournament function", () => {
const assert = require('assert');
const TournamentContract = artifacts.require('./TournamentContract.sol');
before(async() =>{
tournament = await TournamentContract.deployed();
});
describe("Testing Create Tournament function", () => {
it("should return true after tournaments being created.", () => {
@arkhaminferno
arkhaminferno / hadcoin_ico.sol
Created October 2, 2019 07: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.4.26+commit.4563c3fc.js&optimize=false&gist=
pragma solidity ^0.4.11;
contract hadcoin_ico{
// Introducing the total number of hadcoin tokens available for sealed
uint public max_hadcoins = 1000000;
// Introducing the USD to hadcoin conversion rate
uint public usd_to_hadcoins = 1000;
@arkhaminferno
arkhaminferno / MultiNumberBettingV1.sol
Created September 30, 2019 21:01
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.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity ^0.5.1;
contract MultiNumberBettingV1{
uint8 loserCount;
uint8 winnerCount;
uint8[3] numArray;
constructor (uint8 _p,uint8 _p2, uint8 _p3) public{
numArray[0] = _p;
numArray[1] = _p2;
numArray[2] = _p3;
@arkhaminferno
arkhaminferno / OverflowandUnderflow.sol
Last active September 24, 2019 02: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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
contract OverflowandUnderflow{
function overflow() public pure returns(uint256){
uint256 max=2**256-1;
return max+1;
}
function underflow() public pure returns(uint256){
uint256 min=0;
@arkhaminferno
arkhaminferno / messenger.sol
Created September 24, 2019 01:17
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
contract Messenger{
address owner;
string[] messages;
constructor() public{
owner = msg.sender;
}