....
mastercyb: Hello friend! The time has come. Are you ready?
cyberhead: Definitely ... It took us too long to get to this point. Do you remember how it all began?
pragma solidity ^0.6.0; | |
import { IERC20 } from "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; | |
library CTHelpers { | |
/// @dev Constructs a condition ID from an oracle, a question ID, and the outcome slot count for the question. | |
/// @param oracle The account assigned to report the result for the prepared condition. | |
/// @param questionId An identifier for the question to be answered by the oracle. | |
/// @param outcomeSlotCount The number of outcome slots which should be used for this condition. Must not exceed 256. | |
function getConditionId(address oracle, bytes32 questionId, uint outcomeSlotCount) internal pure returns (bytes32) { |
Cyber Unicorn Task
35 GCYB (~4 ETH)
// ___________________________________________________ | |
ch := make(chan int64, 100000) | |
var wg sync.WaitGroup | |
var lock1 sync.Mutex | |
var lock2 sync.Mutex | |
wg.Add(int(cidsCount)) | |
// the worker's function | |
f := func(i int64) { |
const { | |
Codec, | |
FieldOptions, | |
TypeFactory, | |
Utils, | |
Types, | |
WireTypes, | |
} = require('../index'); | |
let StdTx = TypeFactory.create('StdTx', [{ |
const { | |
Codec, | |
FieldOptions, | |
TypeFactory, | |
Utils, | |
Types, | |
WireTypes, | |
} = require('../index'); | |
let StdTx = TypeFactory.create('StdTx', [{ |
{ | |
"genesis_time": "2019-05-22T15:22:02.099215Z", | |
"chain_id": "euler-5-dev", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
{ | |
"genesis_time": "2019-05-16T10:14:50.944049Z", | |
"chain_id": "chain-f9koFo", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |