Skip to content

Instantly share code, notes, and snippets.

pragma solidity 0.5.15;
pragma experimental ABIEncoderV2;
import "ROOT/trading/wrappedShareToken/WrappedShareToken.sol";
import 'ROOT/para/interfaces/IParaShareToken.sol';
/**
* @dev This is a factory that creates Wrappers around ERC1155 shareTokens generated by Augur
* @author yashnaman
* as shares on outcomes of a markets.
factory.transferCash(augurMarket, shareToken, fee, _user, address(this), _cash);
// Move 5% of cash to the balancer pool.
uint256 _cashToSendToPool = (_cash * 5 * 10**16) / 10**18;
uint _poolCashBalance = bPool.getBalance(address(cash));
uint _poolLPTokenTotalSupply = bPool.totalSupply();
uint256 _lpTokenOut = _cashToSendToPool.div(_poolCashBalance).mul(_poolLPTokenTotalSupply);
shareToken.publicBuyCompleteSets(augurMarket, _cashToSendToPool.div(numTicks));
#------------------------------------------------------------------------------
# solidity.rb
#
# Homebrew formula for solidity. Homebrew (http://brew.sh/) is
# the de-facto standard package manager for OS X, and this Ruby script
# contains the metadata used to map command-line user settings used
# with the 'brew' command onto build options.
#
# Our documentation for the solidity Homebrew setup is at:
#
// -*- mode: c++ -*-
// Copyright 2016 Keyboardio, inc. <[email protected]>
// See "LICENSE" for license details
#ifndef BUILD_INFORMATION
#define BUILD_INFORMATION "locally built"
#endif
/**
pragma solidity 0.5.15;
contract IAugur {
function createChildUniverse(bytes32 _parentPayoutDistributionHash, uint256[] memory _parentPayoutNumerators) public returns (IUniverse);
function isKnownUniverse(IUniverse _universe) public view returns (bool);
function trustedCashTransfer(address _from, address _to, uint256 _amount) public returns (bool);
function isTrustedSender(address _address) public returns (bool);
function onCategoricalMarketCreated(uint256 _endTime, string memory _extraInfo, IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feePerCashInAttoCash, bytes32[] memory _outcomes) public returns (bool);
function onYesNoMarketCreated(uint256 _endTime, string memory _extraInfo, IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feePerCashInAttoCash) public returns (bool);
function onScalarMarketCreated(uint256 _endTime, string memory _extraInfo, IMarket _market, address _marketCreator, address _designatedReporter, uin
-rw-r--r-- 1 justin staff 4.6M Jun 16 00:16 ./build/augur~4134d62c.9a4d17fa98bf064fa185.js
-rw-r--r-- 1 justin staff 2.7M Jun 16 00:16 ./build/vendors~3box-chat~3box-comments~augur-sdk~4134d62c.782313916c22b5efdd54.js
-rw-r--r-- 1 justin staff 2.5M Jun 16 00:16 ./build/augur~5a11b65b.625f60f0804e353a03ef.js
-rw-r--r-- 1 justin staff 2.5M Jun 16 00:16 ./build/20.10fe690b69339bbd8e9c.js
-rw-r--r-- 1 justin staff 2.1M Jun 16 00:16 ./build/augur-sdk~493df0b3.484cfedbfbc9cd8f78b6.js
-rw-r--r-- 1 justin staff 1.9M Jun 16 00:16 ./build/vendors~3box-comments~6fc94bb1.6dafe26d2ca47fa83f07.js
-rw-r--r-- 1 justin staff 1.9M Jun 16 00:16 ./build/vendors~3box-chat~3box-comments~493df0b3.d18cfba87c46d8ff9e00.js
-rw-r--r-- 1 justin staff 1.8M Jun 16 00:16 ./build/0.efee06417a716eaa50c0.worker.js
-rw-r--r-- 1 justin staff 1.2M Jun 16 00:16 ./build/vendors~web3~5b0bcb4a.afad79cfc6ceee275527.js
-rw-r--r-- 1 justin staff 1.1M Jun 16 00:16 ./build/vendors~torus~4134d62c.838fcf568fbdf9409a1
(function showIndexedDbSize() {
"use strict";
var db;
var storesizes = new Array();
function openDatabase() {
return new Promise(function(resolve, reject) {
//prompt for DB name
var dbname = prompt('Please enter your Database Name', '');
@justinbarry
justinbarry / dbSize.js
Created April 29, 2020 22:03
DB size code
(function showIndexedDbSize() {
'use strict';
var db;
var storesizes = new Array();
function openDatabase(dbname) {
return new Promise(function(resolve, reject) {
var request = window.indexedDB.open(dbname);
request.onsuccess = function(event) {
db = event.target.result;
[
{
"name": "MarketCreated",
"universe": "0x0fF6ee01f88145298761a29A0372Ed24E16E73B1",
"universe": "0xaAC01B4aaA2EBD04A4790c85b76e1749d8Ef8e13",
"endTime": 1351296002,
"endTime": 1351296004,
"extraInfo": {
"categories": [
"flash",
[
{
"name": "MarketCreated",
"universe": "0xaAC01B4aaA2EBD04A4790c85b76e1749d8Ef8e13",
"endTime": 1351296004,
"extraInfo": {
"categories": [
"flash",
"reasonable",
"categorical"