Skip to content

Instantly share code, notes, and snippets.

View 0xGabi's full-sized avatar
🐝
Always learning

Gabi 0xGabi

🐝
Always learning
View GitHub Profile
@0xGabi
0xGabi / keybase.md
Last active February 20, 2019 17:37

Keybase proof

I hereby claim:

  • I am 0xgabi on github.
  • I am goliat (https://keybase.io/goliat) on keybase.
  • I have a public key ASDKMIdtQO6poynnAGMv4W6gVIUE8_j1LJt5-DxQ3Cha1Qo

To claim this, I am signing this object:

id title sidebar_label
guides-use-agent
How to use Aragon Agent
Agent app

Introduction

The Agent app (or Aragon Agent) is an Aragon app that can be installed in any Aragon DAO. It's main feature is its ability to perform arbitrary calls to contracts. This means it can be thought of as the external interface of a DAO.

This file has been truncated, but you can view the full file.
Attaching to oracle_bridge_senderforeign_1, oracle_bridge_request_1, oracle_bridge_affirmation_1, oracle_bridge_collected_1, oracle_bridge_senderhome_1, oracle_rabbit_1, oracle_redis_1
redis_1 | 1:C 08 Aug 07:02:00.165 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 08 Aug 07:02:00.167 # Redis version=4.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 08 Aug 07:02:00.167 # Configuration loaded
redis_1 | 1:M 08 Aug 07:02:00.226 * Running mode=standalone, port=6379.
redis_1 | 1:M 08 Aug 07:02:00.226 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1 | 1:M 08 Aug 07:02:00.226 # Server initialized
redis_1 | 1:M 08 Aug 07:02:00.226 # WARNING you have Transparent Huge Pages (THP) support enabled in y
Attaching to oracle_bridge_senderforeign_1, oracle_bridge_senderhome_1, oracle_bridge_request_1, oracle_bridge_affirmation_1, oracle_bridge_collected_1, oracle_rabbit_1, oracle_redis_1
bridge_senderforeign_1 | yarn run v1.15.2
bridge_senderforeign_1 | $ ./scripts/start-worker.sh sender foreign-sender true
bridge_affirmation_1 | yarn run v1.15.2
bridge_affirmation_1 | $ ./scripts/start-worker.sh watcher affirmation-request-watcher true
bridge_affirmation_1 | {"level":30,"time":1565314514262,"msg":"Connected to redis","validator":"0xD1569842E8f6409D926a85129b1745c1292b83B8","name":"watcher-erc-erc-affirmation-request","v":1}
bridge_affirmation_1 | {"level":20,"time":1565314514367,"msg":"Last Processed block obtained","validator":"0xD1569842E8f6409D926a85129b1745c1292b83B8","name":"watcher-erc-erc-affirmation-request","fromRedis":"4878967","fromConfig":"0","v":1}
bridge_affirmation_1 | {"level":30,"time":1565314514457,"msg":"Connecte
const namehash = require("eth-ens-namehash").hash;
const keccak256 = require("js-sha3").keccak_256;
const tldName = "open.aragonpm.eth";
const tldHash = namehash(tldName);
console.log(`Namehash: ${tldHash}`);

Keybase proof

I hereby claim:

  • I am 0xgabi on github.
  • I am 0xgabi (https://keybase.io/0xgabi) on keybase.
  • I have a public key ASCOP2VY8elMNdw_23Yew8Km8rf3aFoCS7Dpj7f1hE6nDwo

To claim this, I am signing this object:

@0xGabi
0xGabi / run-template.sh
Last active October 17, 2019 07:44
Aragon template bash script
#!/bin/bash
# MODE is 'ipfs' or 'http'
MODE=$1
echo RUNNING APP IN MODE: \"$MODE\"
# Exit script as soon as a command fails.
set - o errexit
# Executes cleanup function at script exit.
Agent created a vote to begin setup
Creating accounting component
Error: Node error: {"code":-32601,"message":"The method eth_sendTransaction does not exist/is not available"}
at Function.validate (/Users/gabi/code/playground/dao-fund-framework/node_modules/web3-providers/dist/web3-providers.cjs.js:117:18)
at HttpProvider._callee$ (/Users/gabi/code/playground/dao-fund-framework/node_modules/web3-providers/dist/web3-providers.cjs.js:792:61)
at tryCatch (/Users/gabi/code/playground/dao-fund-framework/node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (/Users/gabi/code/playground/dao-fund-framework/node_modules/regenerator-runtime/runtime.js:271:22)
at Generator.prototype.(anonymous function) [as next] (/Users/gabi/code/playground/dao-fund-framework/node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (/Users/gabi/code/playground/dao-fund-framework/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/Users/gabi/c
@0xGabi
0xGabi / arapp.json
Last active February 20, 2020 02:26
{
"environments": {
"rinkeby": {
"registry": "0x98df287b6c145399aaa709692c8d308357bc085d",
"appName": "test.aragonpm.eth",
"wsRPC": "wss://rinkeby.infura.io/ws/v3/infurakey",
"network": "rinkeby"
}
}
}
const namehash = require('eth-ens-namehash').hash
const tldName = 'conviction-experimental.open.aragonpm.eth'
const tldHash = namehash(tldName)
console.log(`Namehash: ${tldHash}`)