Skip to content

Instantly share code, notes, and snippets.

View ryanxyo's full-sized avatar

Ryan Pillsbury ryanxyo

View GitHub Profile
@ryanxyo
ryanxyo / Demo.md
Last active January 18, 2019 23:23
Demo

Demo

System Dependencies

Assumes nvm in use 10 LTS, this is because the node installs will fail if using the system node.

Additionally requires ganache-ui, sequel pro, docker, and a browser running metamask.

Steps

@ryanxyo
ryanxyo / Getting started wit the diviner.md
Last active June 4, 2019 12:15
Integrating XYO components

Getting an Diviner Environment setup

System dependencies

This guided assumes the user has Docker already installed.

If the user is using Ubuntu 18.04, then this guide that Digital Ocean has created can be followed to get Docker installed. Digital Ocean Docker Guide.

Otherwise, please follow the appropriate installation instructions for your system. The docker setup guide can be found here

@ryanxyo
ryanxyo / deployPayOnDelivery.sh
Last active January 4, 2019 00:10
Deploy PayOnDelivery smart contract
# Assumes ABOUT__ETH_ADDRESS environment variable is set and an Ethereum node is available at http://127.0.0.1:8545
curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{ "from": "'"$ABOUT__ETH_ADDRESS"'", "gas": "6721975", "gasPrice": "20000000000", "data": "0x60806040523480156200001157600080fd5b5060008054600160a060020a0319163317808255604051600160a060020a039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36200006f3364010000000062000075810204565b6200015a565b6200009060018264010000000062001974620000c782021704565b604051600160a060020a038216907f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2490600090a250565b600160a060020a0381161515620000dd57600080fd5b620000f2828264010000000062000122810204565b15620000fd57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000600160a060020a03821615156200013a57600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b611bb7806200016a6000396000f300608060405