Skip to content

Instantly share code, notes, and snippets.

@youngkidwarrior
youngkidwarrior / ChallengeFacet.sol
Last active June 7, 2021 13:17
Challenge Diamond
pragma solidity ^0.8.0;
ChallengeStorage internal cs;
contract ChallengeFacet {
function _createChallenge() {
*/ .... */
ChallengeFactory factory = ChallengeFactory(cs.factory);
(, bool hasActiveChallenge) = factory.getCurrentChallengeInfo();
require(
did:3:kjzl6cwe1jw148jow51waoe2ha8pvbpx1yjrodga9407y0v8bn3xw6sabx08kvl
@youngkidwarrior
youngkidwarrior / Types.res
Last active March 25, 2022 01:16
Wrapping abstract types into Variants
open Discord_Snowflake
// Client
type clientT
type client = Client(clientT)
//Role
type roleT
type roleName = RoleName(string)
type reason = Reason(string)
{"746109423738683454":{"role":"Verified","name":"YoungKidWarrior's server","inviteLink":"https://discord.gg/xGKYyqFk","roleId":"979112056768839720"},"696853831476314204":{"role":"Particles","name":"Shenanigan🤸","inviteLink":"","roleId":"759132992336953344"},"804572119249059850":{"role":"Verified","name":"edgeofinnerspace"},"698287700834517064":{"role":"Bee 🐝","name":"1Hive 🍯","inviteLink":"https://discord.gg/SwD5p","roleId":"759191073943191613"},"721099581017948291":{"role":"Verified","name":"conector's server","roleId":"761961112563613696"},"553741558869131266":{"role":"Verified","name":"Pocket Network"},"675563742838390804":{"role":"Verified","name":"Madison Blockchain","roleId":"764295302110117900"},"636043769208242178":{"role":"Verified","name":"果子狸","roleId":"791708898708684801"},"740450057136111667":{"role":"Verified","name":"WhalerDAO","roleId":"761751397553012767"},"765586342351470593":{"role":"Verified","name":"SirBumpy's server"},"785687040430702612":{"role":"Verified","name":"wayway3's server"},"76

Keybase proof

I hereby claim:

  • I am youngkidwarrior on github.
  • I am youngkidwarrior (https://keybase.io/youngkidwarrior) on keybase.
  • I have a public key ASBuIr4EBktAIL9iY_J6HpoTMW_BYWVApFV2SSEonY4y8wo

To claim this, I am signing this object: