Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
BlinkyStitt / gist:7386c24b8dc294086f838b5c64bb2057
Created May 27, 2019 22:00
Mordau dedicated server logs May 27, 2019
+ docker pull bwstitt/mordhau
Using default tag: latest
latest: Pulling from bwstitt/mordhau
Digest: sha256:1a37d30c78cc03c04dcd6445879244d1983a4d90f01c99bc4641e4d19a0f0730
Status: Image is up to date for bwstitt/mordhau:latest
+ exec docker run --rm -it --network=host --storage-opt size=10G --device /dev/dri:/dev/dri -v /transcode/steamcmd:/home/steam/steamcmd -v /transcode/Steam:/home/steam/Steam -v /home/mgmt/mordhau/Game.ini:/etc/mordhau/Game.ini --mount type=tmpfs,destination=/tmp --name mordhau-server bwstitt/mordhau
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
$ docker run --rm -it --network=host --storage-opt size=100G gitlab-registry.stytt.com/docker/mordhau
Updating...
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
[ 0%] Downloading update...
[ 0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
DAI: token_address: 0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359;
USDC: token_address: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
ETH/DAI via Kyber best of 1 Ask = 0.006995959027496193
# 1 / 0.006995959027496193 = 142.939659319
# the above price of 142 DAI for 1 ETH looks correct to me
ETH/USDC via Kyber best of 1 Bid = 130.40041255
# the above price of 130 USDC for 1 ETH looks correct to me
pragma solidity 0.5.4;
// TODO: https://github.com/0xProject/dev-tools-truffle-example/issues/4#issuecomment-467639079
pragma experimental ABIEncoderV2;
/*
https://solidity.readthedocs.io/en/v0.5.0/050-breaking-changes.html#interoperability-with-older-contracts
https://github.com/0xProject/0x-monorepo/blob/development/contracts/exchange/contracts/src/interfaces/IExchange.sol
TODO: i don't think changing types will work. that changes the call signature. i need the original types for this to work!
{
"contractName": "IZrxExchange",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "orders",
"type": "bytes[]"
},
{
"schemaVersion": "2.0.0",
"contractName": "IZrxExchange",
"compilerOutput": {
"abi": [
{
"constant": false,
"inputs": [
{
"name": "orders",
{
"contractName": "IZrxExchange",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "targetOrderEpoch",
"type": "uint256"
}
{
"contractName": "GasToken2",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
pragma solidity 0.5.4;
/* https://docs.uniswap.io/smart-contract-integration/interface#factory-interface */
interface IUniswapFactory {
// Public Variables
// address public exchangeTemplate;
function exchangeTemplate() external view returns (address _exchangeTemplate);
// uint256 public tokenCount;
function tokenCount() external view returns (uint256 _tokenCount);
pragma solidity 0.5.4;
/* https://docs.uniswap.io/smart-contract-integration/interface#exchange-interface */
interface IUniswapExchange {
// Address of ERC20 token sold on this exchange
function tokenAddress() external view returns (address token);
// Address of Uniswap Factory
function factoryAddress() external view returns (address factory);