Skip to content

Instantly share code, notes, and snippets.

View michwill's full-sized avatar

Michael Egorov michwill

  • NuCypher
View GitHub Profile
from brownie import config, Contract, accounts, chain
config['autofetch_sources'] = True
def main():
convex = accounts.at("0x989AEb4d175e16225E39E87d0D97A3360524AD80", force=True)
aragon = Contract("0xe478de485ad2fe566d49342cbd03e49ed7db3356")
{
"address": "0xFe45baf0F18c207152A807c1b05926583CFE2e4b",
"msg": "I, @newmichwill / @CurveFinance, confirm ownership of this address used for yEarn multisig",
"sig": "0xff217bfac6994fcd4d821b568cf77be0e0dd7f314644514f3599863f30b169dd65574a157235f7d79ba2e234350207b7c2136cf250ec99c381041e0bb213900300",
"version": "2"
}
interface CurveFi {
function exchange(
int128 i,
int128 j,
uint256 dx,
uint256 min_dy
) external;
function exchange_underlying(
int128 i,
int128 j,
@michwill
michwill / log.log
Created November 23, 2019 20:22
availability check error
Ursula(0x26FD316) >>> Unhandled error in Deferred:
Traceback (most recent call last):
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1283, in run
self.mainLoop()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1292, in mainLoop
self.runUntilCurrent()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 913, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/task.py", line 239, in __call__
@michwill
michwill / fail.log
Created November 23, 2019 20:03
Availability fail
Unhandled error in Deferred:
Traceback (most recent call last):
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1283, in run
self.mainLoop()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1292, in mainLoop
self.runUntilCurrent()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 913, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/task.py", line 239, in __call__
@michwill
michwill / availability.log
Created November 23, 2019 19:27
Availability check traceback
Ursula(0x26FD316) >>> Unhandled error in Deferred:
Traceback (most recent call last):
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1283, in run
self.mainLoop()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 1292, in mainLoop
self.runUntilCurrent()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/base.py", line 913, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/internet/task.py", line 239, in __call__
@michwill
michwill / worker.log
Created August 29, 2019 17:37
Bugs in worker
WSGI application error
Traceback (most recent call last):
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/python/context.py", line 87, in callWithContext
self.contexts.pop()
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/hendrix/facilities/response.py", line 27, in run
return ran
File "/home/ubuntu/.local/share/virtualenvs/nucypher-fvStivKV/lib/python3.6/site-packages/twisted/web/wsgi.py", line 533, in run
self.started = True
@michwill
michwill / log.log
Created August 25, 2019 15:16
nucypher ursula init --provider ... --poa fails
the Untrusted Re-Encryption Proxy.
Traceback (most recent call last):
File "/home/ubuntu/nucypher/nucypher/blockchain/eth/interfaces.py", line 710, in get_interface
cached_interface = list(cls._interfaces.values())[-1]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
@michwill
michwill / log.log
Created August 25, 2019 13:11
Cannot create stake
$ nucypher stake create --hw-wallet
____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
@michwill
michwill / log.log
Created August 25, 2019 10:40
nucypher stake new-stakeholder fails
$ nucypher stake new-stakeholder --provider ipc:///home/michwill/.ethereum/goerli/geth.ipc --poa
The Holder of Stakes.
Traceback (most recent call last):
File "/home/michwill/Projects/nucypher-kms/nucypher/cli/characters/stake.py", line 134, in stake
registry_filepath=registry_filepath)
File "/home/michwill/Projects/nucypher-kms/nucypher/config/node.py", line 322, in from_configuration_file
assembled_params = cls.assemble(filepath=filepath, **overrides)
File "/home/michwill/Projects/nucypher-kms/nucypher/config/characters.py", line 277, in assemble