Skip to content

Instantly share code, notes, and snippets.

@apurbapokharel
apurbapokharel / wormhole...Encoder.sol
Created August 25, 2022 06:00
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: Apache 2
pragma solidity ^0.8.0;
import "./Messages.sol";
contract Encoder is Messages {
uint8 public constant SOL_STREAM = 1;
uint8 public constant TOKEN_STREAM = 2;
uint8 public constant SOL_WITHDRAW_STREAM = 3;
uint8 public constant TOKEN_WITHDRAW_STREAM = 4;
@apurbapokharel
apurbapokharel / APM...PredictionMarket.sol
Created December 30, 2021 07:32
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.6.0+commit.26b70077.js&optimize=true&runs=200&gist=
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "./RealitioERC20.sol";
// openzeppelin imports
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;